Blog
Notes on systems, retrieval, and machine learning.
The Leiden Algorithm: How GraphRAG Finds Order Inside Knowledge Graphs
From modularity and Louvain's disconnected-communities bug to Leiden's refinement phase, and why GraphRAG bets on it.
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.
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.
SWAR Parsing Internals
How SIMD-Within-A-Register turns ordinary 64-bit integers into 8-lane parallel byte processors.