Skip to content
p.06experiments · prototypes · weird stuff

The
lab.

safety goggles recommended

Terminal

it actually works. type 'help'.
visitor@diary: ~/lab
 

Experiments

small interactive widgets

specimen #001

Sort it out

watch algorithms argue with an array

steps: 0

specimen #002

Dot dash

text → morse / binary (with beeps)

.... . .-.. .-.. --- / .-- --- .-. .-.. -..

specimen #003

Human-scale latency

an engineering concept I love

  • L1 cache reference1.0 s
  • Branch mispredict3.0 s
  • Main memory reference1.7 min
  • Read 1MB from memory17 min
  • Compress 1KB (fast codec)33 min
  • SSD random read4.4 hours
  • Read 1MB from SSD14 hours
  • Round trip in datacenter5.8 days
  • Disk seek23 days
  • Packet CA → NL → CA4.8 years

approximate, after the classic “latency numbers” list.

Engineering notes

printed out and pinned to the wall

** ENGINEERING NOTES **

-------------------------------

01. terminal: input -> parse -> command table -> lines out

02. commands live in lab/commands.ts (pure fns, no server)

03. sorts are generators: one yield = one frame

04. morse beeps are synthesised with WebAudio, no files

05. everything here runs in your browser

-------------------------------

← keep adding to this list

sketch: how the terminal works

you typeparsecommandsprint linesrepeat ↺

Ideas I’m exploring

unfinished on purpose
  • prototyping

    Faultline

    Agentic root-cause investigation for Kubernetes: an alert in, a verified and cited RCA out, and any fix waits for a human. One thin path runs end to end.

  • prototyping

    TracePoint

    When an app slows under load, was it the app, the database or the cache? Drive all three on one clock and let the evidence decide.

  • reading

    Deterministic simulation

    One thread, one seed, a virtual clock, network and disk. Chronoscope found 18 real Raft and storage bugs this way.

Classified

eyes only
LAB-X / do not open
Classified

hint: the terminal knows a word for this.