Mechanical sympathy: cache, branches, and false sharing

Mechanical sympathy: cache, branches, false sharing

Three hardware ideas that decide whether your low-latency code is fast or pretending to be: how the cache hierarchy works, why branch prediction can change runtime by 5×, and how false sharing makes lock-free code slower than mutexes.

May 3, 2026 · 8 min · HFT Engineer's Roadmap
The single-writer principle

The single-writer principle

A short walk through the single-writer principle: why exactly one thread should mutate a piece of state, why this is faster than ‘real’ lock-free code in most cases, and how the Disruptor pattern operationalises it.

May 3, 2026 · 6 min · HFT Engineer's Roadmap