Writing

Code-level studies of security protocols, cryptography, performance, and the systems underneath.

Order Book Data Structures for a Matching Engine

Price levels, FIFO queues, direct cancellation indexes, fixed-point arithmetic, memory layout, partitioning, and the benchmarks that expose tail-latency problems.

Matching EngineOrder BookLow Latency

Micro Frontends vs Modular Monolith: How to Choose

A decision framework based on team autonomy, deployment contention, domain ownership, runtime cost, failure isolation, and the platform work micro frontends require.

Micro FrontendsReactArchitecture

How I Made G6K’s Spherical Code Generator 100× Faster

G6K’s SimHash filter depends on sparse spherical codes generated by a Python hill-climber that takes minutes per dimension. Rewriting it in Rust around one observation — a coordinate swap only modifies one row of the Gram matrix — turns that into seconds, with byte-identical output files.

RustLattice SievingPerformance