The Lab
The bench where things get built to be understood. Every experiment here runs live in your browser — nothing is a video, nothing is faked. Each one only computes while it's on screen.
Reaction–Diffusion
A Gray–Scott chemical system solved on the GPU. Paint reagent with the pointer and watch structure emerge.
Ping-pong framebuffers, fragment-shader PDE integration, emergent patterns from two local rules.
Flocking
Reynolds boids — separation, alignment, cohesion — with a spatial hash so hundreds of agents stay at 60 fps.
Spatial partitioning, steering behaviours, tunable emergent behaviour.
Pathfinding
Draw walls, move the endpoints, and race BFS, DFS, Dijkstra and A* across the same grid.
Graph search, heuristics, frontier management, why A* expands fewer nodes.
Sorting
Five sorting algorithms stepped one comparison at a time, with live comparison and write counters.
Generators as resumable algorithms; O(n²) vs O(n log n) made visible.
Tiny Neural Network
A small multilayer perceptron learning a 2-D classification problem in real time, trained from scratch in the browser.
Forward pass, backpropagation, gradient descent, decision boundaries.
DFA Minimization
A web re-implementation of GK-005: step through Hopcroft's partition refinement and watch equivalent states merge.
Partition refinement, splitter worklists, language-preserving state reduction.
Related artifact — GK-005 DFA Minimization →Cipher Bench
Encrypt with a Caesar or Vigenère cipher, then crack it with chi-squared frequency analysis — live.
Letter-frequency statistics, key search, why classical ciphers fail.
Related artifact — GK-006 Cryptography Toolkit →