New LevelHead: deskew before you classify Project page

Blog

Notes on systems, retrieval, and machine learning.

Jul 7, 202626 min read

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.

Jul 2, 202613 min read

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.

Jun 28, 202614 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.

May 7, 20263 min read

SWAR Parsing Internals

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