Archive
Blog
Technical notes, benchmarks, and build logs. 5 posts published.
Rewriting wc in Rust
A Rust rewrite of GNU wc that uses AVX2 SIMD to count words at 7.5 GB/s -- 27x faster than GNU coreutils on the default mode, discovered through 12 systematic experiments where branchless scalar was a dead end and SIMD was the only path past 1 GB/s.
Rewriting a Python web log parser in Go
I rewrote a Python web log parser as a Go HTTP service. On 1.89 million lines of real NASA access logs, the Go version parses 3.3x faster than the Python baseline. A parity harness verifies both implementations produce identical output before allowing performance claims.
Rewriting xxHash in Rust
A clean-room Rust reimplementation of xxHash: bit-exact parity across all four variants, NEON/SSE2/AVX2 SIMD paths, and comparable CLI-level throughput to the C reference on Apple Silicon.
Rewriting the Silver Searcher in Rust
A Rust rewrite of ag that replaces PCRE with the regex crate, reproduces the multiline print state machine, and cuts median runtime roughly 2x on the measured workload -- but rg and ugrep are still faster.
Building Optimus in Public
Why I built an autonomous homelab SRE, how it works under the hood, and what I learned from real incidents.