Working notes: 2026-11-02, #2635 brought up to date, undo measured, and Hazel on npm
A backfill: written by Claude on 2026-11-05, at Matthew's request, from the dashboard's tickets and the repositories' commits, not at the time. It covers the day's recorded work, 05:28 to 16:31 MST.
Where things are
- #2635 (livelits × modular editors,
integration/livelits-modular-editors) is at1d17541aaf, pushed 16:29: dev's merge day (2cab658ef1), two undo fixes (394552d5d0,bfa36a6ede) and the deck's build fix. CI passed on the merge (Fast checks, Full tests, Static checks). The Firefox deck run on the fix, 41545720854, started at 16:28; it takes about 40 minutes. - hazeljs 0.0.1 is on npm under
latest(published 11:03), with a placeholder version, 0.0.0-stage, still listed beside it. Its source is only the local repository~/hazeljs(bd3957f), not pushed anywhere. - Dress Up 0.0.474 is live (kids-choice-games
4d8384b6, tagdress-up-0.0.474); its speed run passed (41457849486). - Reports published as work in progress: ^report(36), What an Undo Costs, and ^report(37), the agenda for the meeting with Cyrus (then Wednesday 11-04). ^report(34) has a dated update.
- Local branches:
probe/undo-scaling(1d98b3aed7, the timing probe) andperf/665-cheap(the two undo fixes on top of the probe, before their cherry-picks to #2635).
Done
- ^ticket(662), Dress Up 0.0.474: where two beds met, the 💧 watering can could water the plant behind the friend.
plantNearnow ranks plants by how near they are to the can in the friend's hand, a tapped plant is the one watered, and a 🎒 card no longer starts with a stray comma.tools/checks/can660.mjschecks both; the oldplantNearwatered the wrong bed in three of its four set-ups. Pushed on Matthew's word at 07:00; speed run ok at 08:31. - ^ticket(663), #2635 up to date (Matthew, 07:05: "let's stick to hazel tickets"). Andrew's #2469 (modular editors) had not moved since 10-26 and #2635 already had it, so only dev was merged:
90d1005c9e, 149 commits with the 10-29 merge day, 20 conflicted files, dev's 26 new.reifiles matched to our implementations (2cab658ef1, pushed 07:33). The 8 long-known Full-test failures are gone. Dev's PerfBudgets test (#2678) found #2635 more than a quarter under budget (96,438 steps against 227,000), so its budgets were lowered on #2635, as the test asks. The Firefox deck failed at its build step:deck.ymlran dune throughopam exec, which dev's toolchain action leaves off the path. Fix1d17541aaf, pushed on Matthew's word at 16:29. - ^ticket(664), the meeting's list: Matthew's two asks became ^ticket(665) (the cost of undo, "in O(log n) time per edit and per undo, not O(N) time") and ^ticket(666) (how much sharing is lost passing data to and from the worker), and a list of seven tickets for him to cut or reorder (665, 666, 667, 642, 559 with 548, 554, 18). At 10:27 it went out as ^report(37), the agenda (homepage
6dc6057), in his three sections: performance (undo), the JS library for embedded Hazel ("Hazlet", his word) with a demo of Dress Up's scripts, and DSL tile editors as a kind of livelit. - ^ticket(665), undo against program size, in node: a chain of n lets, an edit in the middle one, each step through the app's loop. Every step is linear in n. The test runner's own checks were the first trap: DefStaticsCheck (whole-program statics after every calculation) made the first numbers quadratic, and NormalizeCheck (a global remold after every edit) added to them; the probe turns both off (
1d98b3aed7, then167247e61d). The true baseline at 3,200 definitions: an edit 92 ms, an undo 208, a redo 173 (medians of 12). On Matthew's word, cheap fixes first: the auto-probe's program root reads MakeTerm.Incr's cached top-level skeleton (459b029f68; its memo was keyed on the segment, which every edit changes), and no completion suggestions after a numeral (d06473240f). After: 68, 156 and 106 ms, 25 to 45% off each step, still linear. On #2635 at 10:10. - ^report(36), What an Undo Costs, with figures (10:46, homepage
451502d): five sizes, 400 to 6,400 definitions, three runs a build. At 6,400, after the fixes, an edit takes 106 ms, an undo 292 and a redo 184, each followed by about 78 ms of statics. Node's default 8 MB stack segfaulted in 4 of 6 runs at that size, so it ran with 64 MB. - ^ticket(667), half the steps, found in the merge: #2635's evaluator takes 96,438 trampoline steps on the PerfBudgets program, dev 206,834. Minted for the agenda.
- hazeljs, Hazel's JS library on npm (^ticket(668), Matthew's ask, with its tasks 669 to 674):
hazel-lib.jsbuilt from #2719 (Hazel in another page's frame, stacked on the JS library #2711) at0d66c36618, withrequireandimportentry points (^ticket(669)), TypeScript declarations (^ticket(670)), and a README and CHANGELOG (^ticket(671)): 9 files, 648 kB packed. Matthew chose the name hazeljs ("Hazlet" stays the pattern's name), unscoped, MIT. npm refused the first publish at 10:43 (two-factor authentication required); 0.0.1 was published at 11:03 on Matthew's account. At 13:23 a fresh project installed it from the registry and ran the README's examples throughrequireandimport; jsDelivr and unpkg both serve it (^ticket(672)). Found on the way: a module of about 150 members overflows Node's default stack, and themsfield always reads 0 under Node. - ^report(34), An Official Hazel JS Library?, has a dated section for Hazel's core team on what the release carries beyond dev (homepage
fe4cce1). Matthew's next ask, the trap room live in that report with its Hazel rule editable in tiles, is ^ticket(675) with 676 to 678.
Waiting on Matthew
- ^ticket(673): deprecating the 0.0.0-stage placeholder npm listed beside 0.0.1 (his two-factor code).
- ^ticket(664): the meeting's list, drafted for him to cut or reorder.
Next
- Read the deck run 41545720854 on
1d17541aaf; close ^ticket(663) when it passes. - ^ticket(667): run PerfBudgets at #2635's earlier merges and at #2469's head, to find what halves the count.
- ^ticket(666): measure what is lost at the worker boundary (bytes, the share hit rate, identity on the main thread).
- ^ticket(672): the browser and TypeScript examples, and the install check as a GitHub workflow. ^ticket(676): a link that opens the game at the trap room.