Topic

Programming

13 articles spanning 2006–2026

A Universe from Three Sectors

TradeWars 2002 built its universe from a random number and then threw the number away. The whole map, every warp and every port, turns out to be recoverable from three sectors, because the number was never random enough to hide.

Chasing a Phantom Compiler

I spent weeks hunting for the compiler that built a 1990s DOS game byte-for-byte. The instruction no Turbo Pascal would emit turned out to be a single overlay directive I'd never tested.

Writing a Shell in Go

Building a 22,000-line Unix shell from scratch in Go with a parser, pipeline executor, job control, and structured data pipes.

CS Homework from the Turn of the Millennium

A recovered home directory from New Mexico State University, circa 2001. Tokenizers, red-black trees, a Unix shell, parallel Mandelbrot sets, and a Dots-n-Boxes AI that knows it sucks.

Learning Pascal in the Canal Zone

A recovered archive of Turbo Pascal homework from Balboa High School in the Panama Canal Zone, 1993-1994. BBS door programs, blackjack games, sorting benchmarks, and a 16-year-old trying to get on the Internet.

Simulating Blackjack the Hard Way

Building a 28,000-line Python blackjack simulator with event-driven architecture, immutable state, and realistic shuffle physics to understand casino math.

Yet More Shelob Hacking

Refactoring a C++ web server: adding dynamic mime typing, CGI support, and hunting down a memory leak while keeping the design clean and extensible.

Java theory and practice

Explore how JVM garbage collection works and the escape analysis optimization technique that allows objects to be allocated on the stack instead of the heap.