HN Hall of Fame Weekly email

A lock-free ring-buffer with contiguous reservations (2019)

ferrous-systems.com Essays & writing Essays & articles Software engineering Candidate
Screenshot of ferrous-systems.com captured 2026-07-20
Page preview · captured 2026-07-20

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

Top comments

Oh hey, one of the authors of this post here (James), happy to answer any questions. This post has been discussed here a couple times, but AMA :) edit, the most commented version of this post was the original: https://news.ycombinator.com/item?id=20096946. This is what I'm up to these days: https://onevariable.com/

Looking at this blog-post more carefully... I'm not convinced that this ring buffer is actually correct unfortunately. > buffer.write.store(buffer.write.load() + write_len) This is... an atomic load, followed by an add, followed atomic store. A TRUE lock-free queue would be buffer.write.AtomicAdd(write_len), (which is a singular, atomic add). There are many other issues here, but this is the most egregious issue I was able to find. The whole thing doesn't work, its completely non-safe and incorrect from a…

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

HN stats

Breakout years
2

100+ points or 50+ comments

Total points
424

reference only — not used in Hall rules or ranking

Total comments
224

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2019-06-04Building a lock free continuous ring buffer in RustFirst breakoutArgorak200109
2022-07-19Building a lock free continuous ring buffermolbioguy30
2024-02-29A lock-free ring-buffer with contiguous reservations (2019)Best thread · Latest 20+ point returnsimonpure221115