atomic_queue (machine-ported from C++)

DanielG simpletangent at gmail.com
Sun Nov 15 10:55:52 UTC 2026


I needed a lock-free queue for a D project, and this kind of work 
is *way* beyond my skill level. So I pointed Gemini Carbon at it, 
and 45 minutes later, *voila!*

Not entirely one-shot - I did have to get it to fix a bug that 
was only manifesting on linux/macOS (versus Windows). But I've 
only tested on x86_64, no ARM testing yet.

So far it's working as a drop-in replacement for the C++ version 
(which I was using via a small D wrapper), but YMMV.

git: https://github.com/dewf/atomic_queue

dub: https://code.dlang.org/packages/atomic_queue

original: https://github.com/max0x7ba/atomic_queue



More information about the Digitalmars-d-announce mailing list