Building a lock free continuous ring buffer in Rust
>This is the story of how Andrea Lattuada (PhD student at ETH Zurich) and James Munns (from Ferrous Systems) designed and implemented (two versions!) of an high-perf lock-free ring-buffer for cross-thread communication. <i>If any of those words look scary to you, don't fret, we'll explain everything from the basics.</i><p>This is not the message I want to see introducing such a complex topic. Writing correct lock-free code is <i>incredibly</i> hard, and you're <i>not</i> going to get it right or even understand it from a single post. I've done a bit of reading on this subject, and I'm not even sure that it's possible to write a correct lock-free queue (of which this is a variant) in a non-garbage collected language without some pretty substantial trade-offs regarding memory management.