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.

Optimizing a Spin-Lock

Lobsters Hottest

The blog post details optimizing a spin-lock in C++ to achieve a 5.7x speedup and 5.4x energy reduction through step-by-step improvements and benchmarks.

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.