News for hackers. Stuff that matters.
Re:C++26 is done ISO C++ standards meeting, Trip Report by jcalvinowens on Tuesday March 31, 2026 @08:16PM (#47595206)
I'm not saying it doesn't matter. It just clearly doesn't matter enough on modern common non-tso CPUs enough to motivate anybody to add the compiler support. The history of the whole thing is very interesting.
Re:C++26 is done ISO C++ standards meeting, Trip Report by Joker_vD on Wednesday April 01, 2026 @12:06AM (#47596684)
As I understand it, it's the other way around: for x86 (which is TSO) the fence doesn't really matter because the "normal" load is already slowed down, but for ARM it does matter quite a bit, see e.g. [0] (admittedly old blog post) slightly lower on the page. But perhaps we did get to the point where even ARM CPUs and surrounding memory is already performant enough so that spurious fences aren't as noticeable.

[0] https://preshing.com/20140709/the-purpose-of-memory_order_co...

Re:C++26 is done ISO C++ standards meeting, Trip Report by gpderetta on Wednesday April 01, 2026 @06:05AM (#47598900)
arm64 added a load acquire instruction which I think it is fast enough on actual hardware that might not be worth bothering with consume. If it isn't, then load-relaxed plus atomic_signal_fence might be your best bet. Good luck!