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

Is compound assignment atomic in any major language?

it has been in Python due to the GIL.

It's not atomic even with the GIL, though: another thread can run in between the bytecode's load and increment, right?

The GIL's guarantees didn't extend to this.


Python and Javascript (in the browser) due to their single threaded nature. C++ too as long as you have a std::atomic on the left hand side (since they overload the operator).

no... but some languages may disallow simultaneously holding a reference in different execution threads

Autorotate everything

Thank you

I think cooling in a chip vs cooling in space are two orthogonal problems. In a chip, the problem is getting the heat to the heatsink where it can be efficiently dissipated into the much larger heatsink of the surrounding environment. In space, the problem is that the only way to dissipate heat is thermal radiation because you're in a vacuum.

> only way to dissipate heat is thermal radiation

Well, besides ejecting the heat as propellent (probably water?).

Thermal radiation is probably the best way, propellent runs out eventually.


People keep coming up with alternate measures and then finding that they correlate pretty well with GDP

And why shouldn't they? I would expect the components of GDP to correlate with living standards even if GDP does not measure it as accurately as possible.

The best-known alternative I am familiar with is HDI, here is a scatterplot vs GDP: https://ourworldindata.org/grapher/human-development-index-v...


It's harder then it first seems. The root problem is that for text like "hallo", correcting to "hello" may be fixing an error or introducing an error. In general, the more aggressive your error correction, the more errors you inadvertently introduce. You can try and make a judgement based on context ("hallo, how are you?"), which certainly helps, but it's only a mitigation. Light error correction is common and effective, but you can't push it to a full solution. The only way to fully solve this problem is to look at the entire document at once so you have maximum context available, and this is what non-traditional OCR attempts to do.

Okay, but there way more common errors that should be easy to fix. "He11o", "Emest Herningway", incorrect diacritics like the other person mentioned, etc.

AGI is when a computer can accomplish every cognitive task a typical human can. Given tools to speak, hear, and manipulate a computer, an AGI could be dropped in as a remote employee and be successful.

A human is agi when can accomplish all tasks of ChatGPT… how come the reverse doesn’t work?

Half the country is wrong. I agree that centralized ownership is a problem regardless of party, but putting on both sides blinders is not the answer.

In that case, do you agree a one-party state, run by Democrats, would be "correct"?

The "correct" setup is a loyal opposition during time out of power.

In the absence of that, a one-party state is probably better than a two-party state in which one party is actively trying to burn the system down.


You're talking about the mostly peaceful protesters who tried to burn down the Federal building in Portland for over 200 nights, right? Sedition and insurrection.

> tried to burn down the Federal building in Portland for over 200 nights

If you're pissing your pants in fear of people who fail to do something 200 nights in a row, I'd argue that says a lot more about you than it does them.


In the context of election security, absolutely.

After the wild amount of disproven claims made by republicans about election security, I don't trust them at all.


When did HN become so bad at false equivalencies?

Can I say Singletons are not recommended but also agree that there are contexts where it's an "okay enough" option? Singetons are never the "best option" in modern software, but it's not the "worst" in every case either.

Now, filling your code base with incorrect calculations: pretty much always a bad idea.


BTC means they can pull wealth out of the system at astonishing rates. Trump & Co are hardly the first to be corrupt, but the scale, the blatentness, and the damage being done to the country as a byproduct is unprecedented in modern history

Yep, I graduated and got my first job in 2022 when the market was hot and ChatGPT was a fun novelty. Very lucky


Claude (possible all LLMs, but I mostly use Claude) LOVES this pattern for some reason. "If <thing> fails/does not exist I'll just silently return a placeholder, that way things break silently and you'll tear your hair out debugging it later!" Thanks Claude


Optimizing for engagement? You will use Claude again for the debugging...


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: