Posts
Deriving Type Erasure
Ever looked at std::any and wondered what’s actually going on behind the scenes? Beneath the intimidating interface is a clean case of type …
Optimizing a Lock-Free Ring Buffer
A single-producer single-consumer (SPSC) queue is a great example of how far constraints can take a design. One writer, one reader, fixed …
Devirtualization and Static Polymorphism
Virtual dispatch is the basis of runtime polymorphism, but it comes with a hidden overhead: pointer indirection, larger object layouts, and …