Tags /

#Performance

4 posts

Cover for Beyond Unicorn: Why I Code-Gen Instead of Emulating
Programming 1248 words 6 min

Beyond Unicorn: Why I Code-Gen Instead of Emulating

Emulation is wrong when you call the same routine thousands of times. How Alicorn lifts x64 to C# and replaces Unicorn on the hot path.
Cover for Beyond PGN: Designing an Ultra-Efficient Chess Storage Format
Programming 2668 words 13 min

Beyond PGN: Designing an Ultra-Efficient Chess Storage Format

Every chess database begins with the same question: how do we store a game? PGN is the default answer — human-readable, portable, and surprisingly wasteful. A walkthrough of moving toward binary coordinates and legal-move indexing, and the engineering trade-off between the smallest format and the fastest one.
Cover for How to Merge PGN Files in F#: Streaming, Performance, and Discriminated Unions
Programming 709 words 4 min

How to Merge PGN Files in F#: Streaming, Performance, and Discriminated Unions

How I built a CLI tool to merge chess PGN files using F#'s type system, streaming I/O, and functional patterns — merging gigabytes of games with 64 KB of memory.
Programming 1069 words 5 min

Why I Built ZaString

On zero allocations, Span<T>, and the pursuit of performance without sacrifice.