Notes

Notes I write to think more clearly, mostly on systems and performance. RSS · Atom.

Graph view

drag · scroll to zoom · click a node to open

Writing C++ the Machine Can Run Fast

Cache locality, branch prediction, why the stack is cheap, what optimization flags actually do, and why the size of a variable matters. Notes on the gap between source and silicon.

· cpp, performance, systems · 11 min read

The Many Flavours of Constness in C++

const, const_cast, constexpr, consteval, constinit. What each one promises, how the compiler sees it, and when work moves from runtime to compile time.

· cpp, systems · 11 min read

SWAR Parsing Internals

How SIMD-Within-A-Register turns ordinary 64-bit integers into 8-lane parallel byte processors.

· systems, performance · 4 min read