Hacker Newsnew | past | comments | ask | show | jobs | submit | isitdopamine's commentslogin

> The Left still holds majority

This is factually incorrect.

Summing the votes of all parties that could be considered left (Green, S&D and The Left) you get 224 seats, which is about 31% of the European Union Parliament.


> C is a subset of C++

It is not, they diverged since decades now.

Still, even if this was the case, the programming styles are so different that there’s nothing to gain considering them as any more similar as any two other languages.


> It is not, they diverged since decades now.

AFAIK you always had to cast `void *` in C++ (like the return value of `malloc`).


Why on Earth would one use malloc in C++? Instead of using ’new’ if explicit allocation is desired.


If you need to change the buffer size afterwards.

My understanding is that most implementations of new call malloc under the hood (this may or may not be outdated at this point, I haven't kept up with C++ implementation) and both of these systems introduce a layer of record keeping, so if you're in an extremely memory constrained environment, you may want to use malloc directly.

If you want your code to be noexcept, you need to call malloc and handle the case where it returns null as new can throw (this is UB in theory, but in practice I'm pretty sure everything just aborts) to strip out all the stack-unwinding code.

If you want to avoid the constructor call (for whatever reason).


We are talking about the question if C is a subset of C++. `new` certainly isn't a part of C, so also not an element of the intersection of C and C++.

Idiomatic C code doesn't explicitly cast the return value of malloc

    foo *bar = malloc(sizeof *bar);
C++ did AFAIK never (certainly not with C++98, the question is if it had been allowed sometime before the standardization, but I think it never did) allow this, so you always had to do

    foo *bar = (foo *)malloc(sizeof *bar);
Therefore, C is not a subset of C++. But a (non-empty ;) intersection of C and C++ exists.


> Why on Earth would one use malloc in C++? Instead of using ’new’ if explicit allocation is desired.

That was the point of my original comment that C++ and C are not the same language :)


> If this let you at least ingest basically any eBook format, I'd be super interested.

Ever tried Calibre?


You could have at least read the rest of the comment first.

>For example, literally the only (OSS) tool I've found that can parse .lrf files is calibre


Words can’t describe how much I despise PR jargon!

“more relevant offers” now universally means “we’ll spy on you, so we can get more money from you!”


I never understood how Jung is more unscientific than Freud.

At least: I don’t see this choir of “but it’s antiscientific!!!” cries when Freud is discussed, but still there’s no evidence whatsoever for the tripartition of self which is at the very base of Freud’a theories.

The super-ego is no more scientific than synchronicities!


I think Freud's theories have all been pretty much considered 'surpassed' in academic psychology. I don't think they're considered valid anymore, outside of popular culture.


Then let me rephrase it this way: I don’t see how Jung is more antiscientific than any other psychological theory.


Well, even though there's a strong argument that around 50% of psychology studies fail to be reproduced when they try to, they are still studies which try to follow something as close as possible to the scientific method (some of the time, at least). Jung and Freud never did that. They just listened to a lot of patients and came up with explanations. Psychology today is still very far from the hard sciences, but it's more scientific than Freud ever was. And Jung.


Because he is a spiritualist and Freud (wrong as he may be) was still trying to find naturalistic explanations.


The tripartition of psyche is not naturalistic at all.


> Don’t use content likely to offend people based on race, gender, sexual orientation, religion, or political views.

Stating that I voted for Trump (I didn’t) is likely to offend many people.

The breadth and vagueness of these CoCs is astonishing!

The then-go-somewhere-else argument also does not apply, since de-facto monopolists are also starting to apply similarly silly CoCs…


Don't worry, you can just offend people based on non-protected status, like wealth, physical attractiveness, coding skill or artistic taste.


Exactly. You can arbitrarily enforce them for your own good.


For most religions this is a well established fact.

As for every spiritual/faith decision you are free to think otherwise, but calling it a bias seems very ungenerous.


It's about as good a "fact" as other "well established fact[s]" in most religions, i.e. not a fact at all, but merely a strong tradition/assertion from authority.


Still not a bias, but a consequence of a system of values.


There are so many peninsulas owned by rich people, and they get to choose who can enter. I don’t see a big difference here… It’s private, get over it!


There are many peninsulas owned by rich people. Of course they get to decide who can enter. Are you against that as well?


Oh very much so.


Are you against private property all together?

If not, where do you draw the line? Is a private villa acceptable? A private golf course? A hill? A small island?

Can I decide who enters my 220 square meters apartment?


I'm against the super rich, I think tax brackets on the high end should be much higher.


That’s not the point, you told me that you are not fine with a whole peninsula being owned by the same entity.

My question is: where do you draw the line?

Can someone own a 300 sq meters house? A castle? A golf course? A small island?


300 sqm yes, a castle yes, a golf course yes, a small island no.

I also just don't like the church, so there's double the hate at a super rich church.


Well, I suppose the last sentence kind of betrays your bias.


One of the things I love about leather is it’s extreme durability!

I’ve been wearing the same leather boots for 4 winters now, a leather jacket is steadily approaching the 10 years marks.

More generally: sustainability problems can be mitigated or solved by buying stuff that lasts, see for instance /r/BuyItForLife

Is mushroom leather as durable?


I just wonder how something like canvas compares. If it lasts 1/2 as long but nothing had to be killed and skinned it's kind of hard to compare the two. But canvas comes from plants, which seems nice. Mushroom leather, if it did not compare directly to animal leather, could be used in decorative applications, while durable plant based or synthetic materials could be used when longevity is needed.


It's nice having durable products, and frustrating when things succumb to unnecessary failure. I think that given the externalities of producing it, though, it seems increasingly short-sighted to look at that metric in isolation.

What about durability per hectare of dead forest or kilo of CO2?

Though I'm quite fond of leather shoes, I'd gladly take a slightly less durable product that's many times less harmful to produce.


> less durable product that's many times less harmful to produce.

A big citation needed here… I am not sure boots made from locally-sourced leather are less sustainable than boots made from synthetic fibers and petroleum derivates some place in South-East Asia.


> locally-sourced leather

Transportation costs are negligible compared to the direct and indirect impacts of raising cows

https://ourworldindata.org/explorers/food-footprints?stackMo...

> A big citation needed here…

Oh the irony...


That link about beef explains what, exactly?


> the direct and indirect impacts of raising cows


Uhm, and this is relevant to discussion because…

I am sorry but I don’t really get it.


Citation needed for what? I don't think such a product exists yet.

I was talking about the calculus of how you appraise products.


I have a biker leather jacket since 20 years ago. Still as good as new.


I find that, for leather sneakers and boots, the soles often wear out and the rest still looks new.

Makes me miss the old days of going to the cobbler to get new soles put on.


Some shoe brands still do this, such as Allen Edmonds:

https://www.allenedmonds.com/discover/our-story/recrafting.h...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: