Seven principles.
One point of view.
Not a list of tricks.
A way to frame the problem.
01
The memory wall is a transport problem.
Arithmetic units are useful only when data reaches them. Pointer chasing, fragmented allocations, and unpredictable access turn a high-throughput processor into an expensive waiting room.Computation vs. transportation · The factory bottleneck
02
Design for the grain of silicon.
Cache lines, vector widths, memory banks, and prefetchers are not implementation trivia. Contiguous buffers and predictable AoSoA strides give hardware the clear path it was engineered to follow.Structural congruence · Hardware sympathy
03
Low-level code is not automatically fast code.
Rust or C++ cannot rescue a design that spends its frame budget navigating scattered memory. The job is not merely to remove language overhead; it is to reduce the mechanical distance between algorithm and machine.The abstraction trap · The sieve fallacy
04
Make state transitions cheap and explicit.
Bitmasks, CTZ/CLZ intrinsics, and bitwise flags compress slot allocation, occupancy checks, and lifecycle states into deterministic single-cycle instructions without branching overhead.Bitwise primitives · Deterministic design
05
Fix the road, not the wheel.
When multi-core simulation slows down, adding thread synchronization or complex graph-coloring isn't the answer. Spatially partitioned lanes and Single-Writer Multi-Reader (SWMR) ownership eliminate simulation islands and lock contention at the structural level.Spatial concurrency · Eliminating graph coloring
06
Feed accelerated computing properly.
GPUs demand dense, contiguous batches of memory. Host-side spatial indexing and broadphase memory layouts are an essential part of the compute pipeline, pre-digesting workloads before streaming to GPU execution units.Host-side preparation · CPU ↔ accelerator data flow
07
Change the frame. Simplify the operation.
A good mathematical representation turns an irregular search into arithmetic. Prefix-and-offset spatial bijection maps multidimensional physical space directly into linear memory offsets via bit-shifting.Prefix matrix · Spatial bijection