Deep dives
Writing
Long-form notes on the work — methodologies, design arguments, things that went wrong, and why each tooling choice beat the alternatives.
- 16 May 2026 22 min
Haversine: three Pythons, seven Zigs, and the knowledge tax
Three Python implementations across the expertise gradient, then seven Zig steps into vectorised + threaded native. The last step is analyzer-driven: read the compiled assembly, find that LLVM isn't emitting FMA, fix it in the source, and pool the threads instead of spawning per call. Lands at 150 GB/s on a 9950X3D.
Optimization - 14 May 2026 18 min
Right-sizing 2,600 Jenkins pipelines without breaking production
How I went from 'agents waste 92% of allocated memory' to a phased migration with per-build telemetry, defensible bin sizing, and a rollback at every stage.
DevOps Observability Optimization Data - 28 Apr 2026 11 min
Locking a Polars hot loop with source-level invariants
Optimisations get reverted when someone refactors them later. Nine source-level invariants guard the inventory-arena simulator's hot loop from regressing, and from being fixed by accident.
Optimization Data - 12 Apr 2026 7 min
Moving a join out of an inner loop: a 5.7× scanner speed-up
The regime frame was joined onto OHLCV inside every strategy. Moving it up one nesting level (joining once per ticker instead of once per strategy-ticker pair) was the whole optimisation.
Optimization Data