News for hackers. Stuff that matters.
Re:Optimizing a Lock-Free Ring Buffer by amluto on Thursday March 26, 2026 @10:16AM (#47530771)
Huh? Other languages that compile to machine code and offer control over struct layout and access to the machine’s atomic will work the same way.

Sure, C++ has a particular way of describing atomics in a cross-platform way, but the actual hardware operations are not specific to the language.

Re:Optimizing a Lock-Free Ring Buffer by dalvrosa on Thursday March 26, 2026 @10:23AM (#47530839)
Yeah, different languages will have different syntaxes and ways of using atomics

But at the hardware level all are kindof the same