Tagged “Cpp”

  1. How the standard library achieves a space-optimized boolean vector without giving up container semantics, and why that optimization still surprises people.

  2. Benchmark results for two popular reader-writer lock implementations, with tentative explanations for the patterns they reveal.

  3. Using C++20 coroutines to hide memory stall latency during bulk lookups on a hashtable larger than last-level cache.

  4. Building an awaitable timer on top of native system timer facilities, as a template for integrating coroutines with any asynchronous system event.

  5. Exploring the semantics of coroutine composition through a deliberately simplified implementation of the task type.

  6. An introduction to a series on C++20 coroutines, and why they offer an elegant solution to the problem of asynchronous state management.