News for hackers. Stuff that matters.
Re:Memory Ordering in CPUs by AbbeFaria on Wednesday August 26, 2026 @02:18AM (#49444739)
As a measly backend programmer, I only have a good mental model of a “lock”, think a sync.Mutex in Golang.

But I wanted to go deeper into the rabbit hole and understand concepts like memory ordering and how atomic operations are actually implemented using the abstractions hw provides.

Any book recommendations or exercises I could do to learn more about this. Thanks.

Re:Memory Ordering in CPUs by matt_d on Wednesday August 26, 2026 @03:06AM (#49445074)
I'd recommend "A Primer on Memory Consistency and Cache Coherence, Second Edition" - Synthesis Lectures on Computer Architecture 15:1 (2020) - Vijay Nagarajan, Daniel J. Sorin, Mark D. Hill, David A. Wood - (open access, freely available): https://doi.org/10.2200/S00962ED2V01Y201910CAC049

For more see: https://github.com/MattPD/cpplinks/blob/master/atomics.lockf...

Re:Memory Ordering in CPUs by afdbcreid on Wednesday August 26, 2026 @10:05AM (#49449447)
Rust Atomics and Locks by Mara Bors (https://mara.nl/atomics/) is a very good book and available for free online. It does require knowing Rust at least in a basic level, but it explains things very well.