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

> Multithreaded by default seems like it would be an insane choice without all the safety machinery

You're describing golang, and somehow it's fine. Bugs are possible, but not super common


Isn't that "somehow" super attributable to the fact that Go is garbage collected?

Garbage collection is the one other known way to achieve memory safety.


You raise a good point here. When I think about writing multi-threaded code, three things come to mind about why it is so easy in Java and C#: (1) The standard library has lots of support for concurrency. (2) Garbage collection. (3) Debuggers have excellent support for multi-threaded code.

Not really, especially as garbage collection doesn't achieve memory safety. Safety-wise, it only helps avoid UAF due to lifecycle errors.

Garbage collection is primarily just a way to handle non-trivial object lifecycles without manual effort. Parallelism happens to often bring non-trivial object lifecycles, but this is not a major problem in parallelism.

In plain C, the common pattern is trying to keep lifecycles trivial, and the moment this either doesn't make sense or isn't possible, you usually just add a reference count member:

    struct some_type {
        uint32_t refcnt;
        uint32_t otherfields;
    };

    struct some_type *some_type_ref(struct some_type *a) {
        a->refcnt++;
        return a;
    }

    void some_type_unref(struct some_type *a) {
        a->refcnt--;
        if (a->refcnt == 0) {
            free(a); // or some_type_destroy(a);
        }
    }
In both Go and C, all types used in concurrent code needs to be reviewed for thread-safety, and have appropriate serialization applied - in the C case, this just also includes the refcnt itself. And yes you could have UAF or leak if you don't call ref/unref correctly, but that' sunrelated to parallism - it's just everyday life in manual memory management land.

The issues with parallelism is the same in Go and C, that you might have invalid application states, whether due to missing serialization - e.g., forgetting to lock things appropriately or accidentally using types that are not thread safe at all - or due to business logic flaws (say, two threads both sleeping, waiting for the other one to trigger an event and wake it up).


Kind of, but Go isn't memory-safe in the face of concurrent data races.

But why, couldn't he just fly there on an eagle?

Torrenting is easy, but what are you goung to do with the torrented files then? Without additional external hardware you probably won't be able to play your downloaded files on your large TV, and most people prefer a laggy simple route over having to do more work. I do torrent from time to time, but the hassle associated with the whole process really highlights why streaming apps took over.

What additional hardware? If you're torrenting you have a PC or laptop, plug said device into your TV and you're good to go

Are you finding and setting up a remote that works on your PC/Laptop, or are you getting up every time you want to change shows or play/pause?

Wireless keyboard with a trackpad.

I do not understand what hassle. There has never been a hassle associated with it, not even back when I had to burn DVDs... Oh well.

> The way that orcs are dehumanized

Orcs aren't human, though. If anything, they were deelfized


I'm glad somebody is doing it, even if it's Meta. The world really needs more energy and nuclear is a great option

As technology improves, we have less and less need for nuclear. The continent with the greatest need for nuclear is Europe, and these German grid modelers have taken a look at the EU grid with the latest data and decided that additional baseload generation (like nuclear) is not required and will likely increase costs if built:

https://www.cell.com/cell-reports-physical-science/fulltext/...


Germany took it's last three nuclear reactors offline in 2023 and now the primary source of their electrical generation is coal.

See https://world-nuclear.org/information-library/country-profil...


That is factually incorrect. The primary source is wind at 132 TWh in 2025, followed by solar with 70 TWh.

Lignite was third with 67 TWh and hard coal sits at 27 TWh.

https://www.energy-charts.info/downloads/electricity_generat...


Lignite is coal, so that'd make coal #2

Official source for 2025 Q3: 64,1% renewable 20,6% coal 12% gas

https://www.destatis.de/DE/Themen/Branchen-Unternehmen/Energ...


Your claim about current electrical generation is incorrect and obviously not supported by your source, which shows data from 2021.

In addition to the other corrections here, I'd like to add one more remarkable fact: in 2025 the share of German electricity generated by solar increased to 18% from 14%. That's in a single year, in a country with terribly low levels of sun! Nuclear generated 5% of electricity before it was shut down, and had generated that same percentage for more than a decade (that's as far back as the chart I saw went).

It's remarkably easy to scale solar to very large amounts in short time periods. Far easier than building a new nuclear fleet.


Is it though? Do we need more ads and more social media company AI?

[flagged]


Not the OP, but I think the argument is that even if they're doing it for the wrong reasons, it might still end up being a good thing.

A core assumption of capitalism is that when individuals act in their own self-interest, their actions tend to produce outcomes that are beneficial for society as a whole. This seems like a compelling piece of evidence!

> This seems like a compelling piece of evidence!

Bit of a premature celebration here, we won't know if it is for 10-30 years.


I think that's, generally speaking, not true, as evidenced by the fact that climate change is still happening almost entirely due to selfish motivations of oil companies and bribed politicians.

I think it's probably a good thing in this case.


Yet, globally, the world is moving towards renewables regardless of big-oil interests. I don't think even the most hard core activists are expecting to close everything coal, gas and oil related overnight, so we need to wait until the energy transformation is finished. It won't be led by the US, Russia and the Middle-East, that's for sure, but it will happen.

Even if that's true, we're already facing negative consequences from climate change, and it's affecting developing countries the most. The oil companies knew about the risk of climate change in the 70's, and actively suppressed it and pushed pro-petroleum narratives instead.

Certainly the selfish greedy ambitions of corrupt politicians and short-sighted corporations aren't good for the people dying and being displaced. I mean, we can play with numbers and try and argue a "greater good", sure, but it does seem a little convenient that we can act like greedy self-interests are helping everyone when there are current victims.


I think the idea behind that concept is not that it's true. The idea is we will never change human self-interest and greed. So we build systems where even with that as the primary motivation, it still has more important secondary effects that probably benefit us.

And I'm saying that that hasn't historically been the case.

There are plenty of quarries that effectively condemned land that destroyed entire ecosystems because of greedy mineral companies. Pretty much anyone using this forum is using a product that was produced by unethical and/or child labor. We're already seeing negative effects from climate change, effecting many, many people, mostly in poor countries, and it's likely to get worse before it gets better.

You could argue that these systems benefit some people; I certainly benefit from having cheap electronics, but of course you can always cherry pick good examples from pretty much anything. This is with the current system that we built.

Now sure, there might be some hypothetical system that maybe fixes these problems, but due to the use of the word "evidence" in the comment I was responding to I didn't think we were talking political theory.


What kind of logic is that? It reminds me some people I know that vote to extreme-right parties because "well, we know that the regular parties are not gonna change anything. These new guys may do something new. Who knows, let's vote them and find out"

Well, no, I think that the claim is that having nuclear power plants is better than not having them. If they're not sucking energy off the grid (like what is happening right now), that at least will help avoid regular people like us having to pay the increased prices and indirectly subsidizing them.

And nuclear energy is clean (from a climate change perspective at least), and so if they're going to keep spending huge amounts of energy AI training anyway, it's probably better to do that in a way that isn't going to keep boiling the planet.

Also, if there is any kind of excess energy then it can be fed back into the grid, meaning that grid power can be fed from something relatively clean compared to something dirty (like coal).

I'm not entirely sure how this relates to the party thing. I'm saying that sometimes something selfish in a capitalistic system can occasionally still be a net good. I didn't think that was controversial. I'm not saying we give Zuckerberg a trophy or anything.


hell yeah!

The name predates the standardisation. The committee did not come with the whole thing themselves, rather they adopted and expanded already existing library implementations. You could move in C++, with this exact name, long before C++11.

See, for example, this implementation https://stlab.adobe.com/group__move__related.html


Howard Hinnant's original move proposal for C++ is from 2002. And by then even the destructive move (the more useful operation and the semantic provided in Rust) was well understood.

Hinnant said they couldn't find a way to do destructive move and have the C++ inheritance hierarchy. To me it's obvious what loses in this case, but to a C++ programmer at the turn of the century apparently C++ implementation inheritance ("OO programming") was seen as crucial so C++ 11 move semantics are basically what's described in that proposal.


And in Russian we use "jad" ("яд" in cyrillic) for both. Although there is the word "отрава", which can be used for poisons and "яд" is closer to "venom" the difference is almost non-existant and both are often used interchangeably.

Just "food". Any kind of Dutch food fits the description.

This is true, notably a kroket is both looping and badly compressed.

> we're showing we have no care for anything but ourselves in this moment in time

This is very consistent with the whole history of our species, and I don't think there ever was a moment in time when this was any different


those who remember the past are doomed to repeat it?

seriously, this doesn't seem like a useful argument, regardless of whether true. the fact that humans have committed ecocide in the past doesn't seem like a reason to continue...


> this doesn't seem like a useful argument

It's not. It's a comforting lie to justify inaction. You see it a lot when people justify not voting or civically engaging.

To be clear, I am doing jack shit about deep-sea mining. But that's a choice I'm making and I own it, even if it makes me uncomfortable. (And there are plenty of cases where that discomfort drives folks into action, however minor.)


I didn't read it as a justification for inaction but rather a reality check. The tone of the parent seemed to imply that the current situation is somehow unusual or unexpected.

The difference between "he's gone mad" which seems to imply that an urgent response is warranted versus "unsurprisingly, his long standing madness continues".


It's genetic, you can't change the character of an exploitative predator by just wishing for it.

It is inconsistent with our history but feel free to lie about it.

I know, right? Almost 30 years and no progress in the speed of light? What are all these engineers even doing?


Right right! Like we used to have concord back in the day and we are just getting slower innit.


For real


I believe that FTL communication (if it's achievable) will start out in data centers at small scales. Perhaps millimeters.

Possibly as an extension of Quantum Computing where some probabilistic asymmetry can be taken advantage of. The QC itself might not be faster than classical computing, but the FTL comms could improve memory and cache access.

Also MetaGoog will use it to serve up hyper personalized ads in their Gemini based Metaverse.


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

Search: