04 · A GALAXY OF NOTES

Articles.

Field notes from the bench — on code, AI, ComfyUI and whatever else is being built this week.

  1. Notebook · Simulation 27 min

    Every drop, every three metres

    Skybrudd floods a Norwegian town with a cloudburst or a river in flood, in your browser, on your own graphics card. How the water is calculated, from laser terrain and Horton soil to the catchments above town, the sea, NVE's flood zones and today's river discharge, the equations, the bugs that looked like floods, every data source it calls, and the WGSL that runs it all in seconds.

    • simulation
    • webgpu
    • rust
    • hydrology
    • wasm
  2. Notebook · Search 8 min

    What the search agent searches with

    Our legal assistant has no embeddings and no vector database. A model searches with words, in Postgres, and a small classifier makes the quick calls around it. This is the search engine underneath, from how a passage is stemmed to how a statistics table becomes something it can quote.

    • search
    • postgres
    • agents
    • full-text search
    • llm
  3. Notebook · Games 13 min

    BeastWars, an arena shooter in four and a half days

    Low-poly animals, Quake 3 movement and all nine Quake 3 weapons in the browser. How I built BeastWars in 243 commits, and the optimization day that took it from 140 to 700 frames per second.

    • games
    • three.js
    • performance
    • netcode
    • webgl
  4. Notebook · Speech 10 min

    A wake word that lives in the browser

    How we trained "Hei Alpha", a 415 KB wake-word model that listens in five languages, without recording a single human voice. It took synthetic speech, an hour of GPU time and about five dollars.

    • machine learning
    • speech
    • wake word
    • onnx
    • tts
  5. Notebook · Small models 10 min

    Teaching a 144M model to decide like a big one

    How we took CHEF, a large decision model, and trained a custom 144M-parameter model that makes the same calls in a fraction of the time, on one GPU, in under half an hour per run.

    • machine learning
    • distillation
    • small models
    • onnx