Working notes: 2026-11-08 evening to 2026-11-10 morning, the page's work around a compiled step
Claude, 06:09 MST on 11-10, on Matthew's ask to update this repository; one session throughout, as he asked.
In short
A slider's step on the Witch slide now shows in the picture in about 20 ms, against 1.3 to 1.7 s before hazel-jit, and a drag of a slider runs at 55 to 58 frames a second, its view 5 to 6 ms a frame (^report(50), ^report(51)). The page's own work after a step, which the compiled run left as the next wall, came down from 0.43 to 0.60 s (build 14) to 167 to 183 ms (build 38), over builds 9 to 39 on trial/694-view-jit, each measured in Firefox on GitHub's machines and written into ^report(51). For M and N, Dress Up gained weather with a weather report in the backpack (0.0.493, ^ticket(723)) and the deep ocean with diving (0.0.494 and 0.0.495, ^ticket(724)).
Matthew, these two days
I only ever want one session.
please stop making child sessions.
please keep going and stop asking for permission to continue.
the ocean diving animation (especially back up?) leaves behind limbs sometimes
please update https://github.com/matthewhammer/hazel-work-notes when you can
What was done
- 11-08 evening,
^ticket(722), the compiled run in the page. At a livelit's event the slide's compiled run draws every livelit, each livelit's view folded into the run (^report(49): a step 10 to 12 ms in Firefox). Then the drag fast path, three cuts: no editor action per frame (A), only the livelits whose answers changed redrawn (B), the projectors' data and views reused (C): a compiled drag 9.8 to 48.4 frames a second.^report(50), Toward 60 fps, gathers reports 45 to 49, revised on 11-09 around eight numbered builds. - 11-09,
^report(51)builds 9 to 26 (^ticket(694)and its next steps). The run compiled once and its answers kept when the worker catches up (9); the comparison after the paint (10, then 1 ms from 33 to 43 on build 17); the edit made after the paint, so a step shows in 19 to 24 ms (12); each editor's decorations and probes reused across a drag (12); the outline built on its own after the paint (13); livelits kept across an edit (15: the page after a step 0.24 to 0.30 s, from 0.43 to 0.60); the autosave on its own (16); after a worker's answer 4 projectors drawn, not 56 (19); the answer as data, 198 KB from 590 (20); the parts timed (21 to 24) and the page's work at the answer taken on (25, 26). Samples as data (^ticket(718)) was tried and turned off: the answer grew. - 11-10 night, builds 27 to 39, at the worker's answer and after an edit. At the answer: the cell's syntax worked out once; 51 of the 53 livelits keep their finished views; a livelit's shape kept by its definition and model; the sidebar's problem list kept; the projectors' views 11 to 16 ms (16 to 41 on build 26), the whole view about 30 to 35 ms. A drag regressed twice on the way (builds 31 and 33) and both were found and fixed (32, 34); build 32's own fast drag turned out not to be a fair mark. After an edit: the outline's search for rows that open no cell kept per top-level tile (10 to 11 ms to 0 to 2), the probes kept by their own statics, the view cache's value compares made pointer checks, a projector's hidden-error check kept. Left at the answer: a 20 to 35 ms pause once a step that lands somewhere else each time, most likely the browser collecting the answer's garbage.
- Dress Up, for M and N (
kids-choice-games). 0.0.493: 🌦️ weather, each day's own by date and season, and 📻 the weather report in 🎒 (^ticket(723), for M). 0.0.494: the deep ocean, a world under the open water, with diving (^ticket(724), for N); 0.0.495: a dive moves the far leg and arm too, so no limbs are left behind on the way down or back up.^ticket(725): the waterfall's moon counted only when shown. The speed run after the release: 0.0.495 ok at 04:22 on 11-10, once two older checks (world260, worlds406) were brought up to the deep ocean. - Crashes: 59 (11-08 18:10) and 60 (11-09 10:34), both a few seconds into a dune type-check in
~/hazel-694-jit; since then no local dune builds, onlydune fmt, with every type-check on GitHub (see the crash log). - Lessons kept: a green Witch check builds only the app, so read CI's checks for every push (builds 26 to 29's tests did not compile); CI's full tests take about an hour, so a build tried while they run goes to a side branch (
trial/694-view-jit-35) rather than cancel them; andgh run watchpolls every 3 s, which at 05:57 on 11-10 ran out the hour's GitHub API limit on Matthew's token: watchers now poll every 60 s.
Where things are
trial/694-view-jit(worktree~/hazel-694-jit): build 38,19ecb75694. CI on build 34 passed, full tests in 57 minutes (so build 32's 100-minute timeout was a slow run, not a hang); build 38's CI (run 42817691270) was in its full tests at 06:09.trial/694-view-jit-35, the side branch: two commits ahead, build 39 (9a5a3e7a64) and build 40 (f5b7a65cf2, timers only). To be fast-forwarded into the main trial branch once build 38's CI is green.^report(51), Hazel-JIT Status Report, work in progress, revised in place with builds 27 to 39, atmatthewhammer.org/hazel/reports/051/; source in~/hazel-perf-report/051(gen051.py,body.html, each run'sjit.jsonandjit.log).- Not ours, left alone:
docs/hazel-architecture-july-2024.tldris modified in the worktree;dress-up/reports/005's edits;dashboard/update.pyhere. - Waiting:
^ticket(721)'s choice for a slider's step (leaning on a model-only fast path) is Matthew's;^ticket(719)waits on Alexander's reply on #2493. - Servers: localhost:8000 only.
Next
- The outline's mark for the cursor, 5 to 14 ms in the view after each edit and 0 at the answer (build 40's timers): keep it while the cursor and the outline's rows are the same.
- Read build 38's CI; then fast-forward
trial/694-view-jitto builds 39 and 40. - After an edit, what is left is the editor's core: the update that makes the edit (16 ms), the statics (16 to 20), the syntax cache (11 to 12);
^ticket(721)would take most of it away, on Matthew's choice. - At the answer: the probes redrawn (7 to 9 ms) and the once-a-step pause.