lab
Experiments. Raw WebGL, Canvas2D, no libraries.
GPU

Gray-Scott model. Two chemicals, simple rules, emergent complexity.

Signed distance fields. A 3D renderer in a fragment shader.

120k particles in curl noise. Transform feedback, zero CPU.

147k slime mold agents. Sense, turn, deposit, repeat.

Navier-Stokes in six shader passes. Pressure, advection, vorticity.

150k particles tracing Thomas' chaotic orbits in 3D.

Fractal zoom. Click to dive, smooth coloring, infinite detail.
Simulation

Verlet integration. Drag to interact, pull hard to tear.

Flocking. Separation, alignment, cohesion. No leader, no plan.

Six species, random forces, emergent chemistry.

Four rules. Gliders, guns, and Turing-complete computation.

Chaos in two arms. Tiny initial differences, wildly different paths.
Math
Algorithms

Eight algorithms race side-by-side. Pick three, tune the input.

A* vs Dijkstra vs BFS. Draw walls, watch the search.

AVL insertions with animated rotations and rebalancing.

Edit distance. Watch dynamic programming fill a table.

Tarjan's algorithm. Find strongly connected components.
ML / AI

Multi-head self-attention. Different heads learn different patterns.

Key-value caching turns O(n²) generation into O(n). Watch it grow.

Temperature, top-K, top-P. How LLMs choose the next word.

Draft fast, verify once. Cascade rejection on mismatch.

Sparse routing. Each token activates a fraction of the network.

Words as vectors. Semantic clusters, nearest neighbors, vector arithmetic.

Byte-pair encoding. How text becomes tokens before the model sees it.

Tree of candidates, pruned by score. Greedy vs beam width comparison.
Data Structures

Recursive alphabet splitting. Bitvectors at every node, rank queries in O(log σ).

Hypergraph peeling builds a fingerprint table. Three XORs answer membership.

ALEX. Piecewise linear models replace B-tree pages. The CDF is the index.

Fingerprints in a cuckoo hash table. Insertions kick, chains cascade.




































