Zig author builds slotted pages buffer pool

charlesfonseca.substack.com13 min read

The author explores database internals by building a slotted page format and buffer manager in Zig. The guide covers how variable-length rows are stored using a slotted page layout with a stable slot directory, how a buffer manager handles page pinning and dirty write-backs, and how replacement policies like Clock approximate LRU. Open article →