Projects
Things I've built to understand how they work.
6502 Emulator
ShippedA MOS 6502 CPU written from scratch in C++, with a debugger, a memory-mapped console and timer interrupts. Compiled to WebAssembly and paired with an assembler in TypeScript, it runs entirely in your browser.
C++, WebAssembly, TypeScript
Open the playgroundThompson's NFA
ShippedA regex engine in Go, built the way Ken Thompson described in 1968: compile the pattern to an NFA, then follow every path at once, so matching stays linear in the input. Compiled to WebAssembly, it animates its own state machine reading your string.
Go, WebAssembly, JavaScript
Watch it runGrain
ShippedA falling-sand sandbox: sand, water, fire, acid, gas and oil, each following a few local rules. The world is split into 16×16 chunks and only the ones where something moved get simulated, so a settled pile costs nothing.
JavaScript, Canvas
Play with it