Building a Fast Lock-Free Queue in Modern C++ from Scratch

Hacker News Top Tools

Summary

A guide to implementing a fast lock-free queue in modern C++, covering techniques for concurrent data structures without locks.

No content available
Original Article

Similar Articles

Your code is fast – if you're lucky

Hacker News Top

This article presents a branchless Quicksort implementation using sorting networks and discusses how modern compilers, especially Clang, optimize loops with branch-free instructions when written in the right style.

const_cast: A Necessary Evil

Lobsters Hottest

The article explains why const_cast is sometimes necessary in C++, specifically for moving objects out of a std::priority_queue, and how to do it safely.

Neoclassical C++: segmented iterators revisited

Hacker News Top

Revisits Matt Austern's 2000 paper on segmented iterators, which enable hierarchical algorithms to exploit data structure segmentation for performance, and discusses modern adoption in libc++ and Boost libraries.