Hazel Work Dashboard

A copy of the Hazel Work Dashboard that Matthew runs on his laptop, published at most ten minutes after each change to its notes, and to the status from GitHub, which it reads every 15 minutes. Its localhost links work only there.

Updated 2026-11-25 06:15 MST, by ~/localhost-index/update.py (PR titles and status from GitHub).

History: every change to this page, each a commit of one file (^ticket(417): no longer a file a change), also pushed to matthewhammer/hazel-work-notes (public). Published at most ten minutes after each change to our notes, and to the status from GitHub (read every 15 minutes): matthewhammer.org/hazel/dashboard/. How we work with this page: agent-instructions.md. This is version 0.0.4: VERSIONS.md lists what each version has. Closed tickets: their own page. This page reloads itself when it changes (checked every 90 s while it is open).

📖 What Claude has written to Matthew, since 2026-08-27 (as far back as the session transcripts go): 7,142 replies, 1,565,848 words, ~109.7 h to read at 238 words a minute, 🎧 ~163.1 h to hear at 160; a reply takes ~55 s to read, ~82 s to hear. Each ticket's replies and their times are in its log in data.json.

Current ticket: ^ticket(847)

hazel-jit / Hazel: records more native, as for List: a labeled tuple held as a JS object by its labels · from Matthew, 2026-11-23 ~14:0x, in chat, answering converters or Seq first: "Converters first / before Seq, let's explore making records more \"native\" in the interpreter, as we are doing now for List."

Started Tue Nov 24, 1:36 PM MST · elapsed

Records the page's way: a labeled tuple (x = 1, y = 2) as a JS object {x: 1, y: 2}. Today compiled code holds it as an array carrying its labels and a page as an object, so a list of records costs its length to cross even as arrays (^report(54) #lists-crossing: ~0.3 s for a million, against 6 ns page-shaped). Explore both places a record lives: compiled code's runtime and shapes (objects by label; tuples without labels stay arrays; what $R.tup, dot, eq and the value boundary become), and the interpreter's own values (a labeled Tuple of TupLabel terms: what holding a record natively there would take, and what it would buy at the crossing and in mixed mode). Measure the crossing at every size, as for lists, and the games.

Now: 20:59: ^ticket(847): records work merged into hazel-jit #2859 and hazeljs #2857, CI green on both; next a package with the new shapes

Work Queue (Active Tickets)

What we mean to do next, in order: a few tickets, not the backlog. We push a ticket onto the front or the back, and reorder as we go; a ticket leaves the queue when it closes. Each links to its full row in the backlog.

show:
NextTicketAreaTicket
1^ticket(847) current
hazel
performance
hazel-jit / Hazel: records more native, as for List: a labeled tuple held as a JS object by its labelsRecords the page's way: a labeled tuple (x = 1, y = 2) as a JS object {x: 1, y: 2}. Today compiled code holds it as an array carrying its…
2^ticket(761)
hazel
performance
hazel-jit: probes and its other limits, overcome in the coming days (its step limit: ^ticket(763))hazel-jit's limits, one at a time. Probes (the values a probe shows, which compiled code would have to record as the interpreter does), and…
3^ticket(762)
hazel
performance
hazel, performance: a function with no declared result type costs 5-7x a step at run time (the casts), measured in the TarotHazel code that declares what a function takes but not what it returns runs several times slower. Measured in the hazeljs-oracles Tarot…
4^ticket(764)
hazel
hazel, bug: int_mod, sint_mod, nat_mod and float_mod by zero crash the interpreter (InvalidBuiltin "mod")Dividing by zero in a modulo builtin crashes the interpreter. BuiltinsBase.re's int_mod, sint_mod, nat_mod and float_mod each answer a zero…
5^ticket(760)
hazel
performance
hazel-jit: still nothing with holes compiled; the stepper's filters excludedWhat hazel-jit leaves to the interpreter, kept and written down: code with holes (empty holes, multiholes, dynamic error holes, invalid…
6^ticket(759)
hazel
performance
hazel-jit: divide by zero stops at a stuck term with the error, as the interpreter's DivideByZeroDivide by zero, as the interpreter has it. Integer division by zero in the interpreter is InvalidOperationError.DivideByZero…
7^ticket(757)
hazel
performance
hazel-jit: Int and Nat arbitrary precision in the compiled code (JS BigInt), as the interpreter's BigintInt and Nat as big integers in hazel-jit's output. The interpreter's Int and Nat are Bigint.t (Atom.re); hazel-jit makes them JS numbers.…
8^ticket(763)
hazel
performance
hazel-jit: a step limit for compiled code, so a function that diverges stops instead of hanging, before more compiled functions run on the main threadA step limit for hazel-jit's code. The interpreter counts its steps (EvaluatorState.step_count) and stops a run that goes on too long…
9^ticket(756)
hazel
performance
hazel-jit: semantic consistency with the interpreter, checked in CIWhat hazel-jit's code computes is what the interpreter computes, for every program it compiles: the same values, the same errors (stuck…
10^ticket(721)
hazel
performance
hazel, performance: a slider step is an input to the program, not an edit to its code: no syntax, no staticsWhen only a livelit's model changes, skip everything about syntax. On trial/694-view-jit (238144b4b8, run 42535123022), one slider step on…
11^ticket(694)
meeting 2026-11-13
hazel
performance
hazel, performance, livelits: hazel-jit, a livelit's view compiled to JSA livelit's view, compiled to JS (a JIT). Decided at the meeting with Cyrus, 2026-11-05: look into compiling Hazel to JS just in time for…
12^ticket(729)
hazel
hazel, hazeljs example, ancient-oracle: the I Ching app, its casting and reading in Hazel, its lines revealed one by oneThe I Ching app (i-ching/): a reading cast in Hazel, its six lines revealed one at a time, bottom to top. In Hazel: a line's value (6 old…
13^ticket(731)
hazel
hazel, hazeljs example, ancient-oracle: the Tarot cards' faces, the 1909 Rider-Waite-Smith scansThe 1909 cards, scanned, as the Tarot app's faces. Pamela Colman Smith's 78 cards (1909) are in the public domain in the US (the copyright…
14^ticket(732)
hazel
hazel, hazeljs example, ancient-oracle: the Tarot cards' faces, our own SVG deck, a switch away from the scansOur own deck, in SVG, a switch away from the 1909 scans. Simple faces in the series' look: the 56 minor arcana generated (a suit's sign…
15^ticket(733)
hazel
hazel, hazeljs example, ancient-oracle: the oracles' texts, Legge's I Ching (1882) and Waite's card meanings (1910)The words of each reading, from public-domain books. For the I Ching, James Legge's translation (Sacred Books of the East, vol. XVI, 1882):…
16^ticket(719)
waiting on Alexander (replied on #2493, 11-08)
hazel
hazel, modules II, review: Alexander's pinned programs from the fixes on modules-ii/1-sig-types since 10-26 (to 948361efe7, with #2735): understand, check, respondUnderstand Alexander's message on Slack (Thursday 2026-11-05, about 10:51 MST) and respond. He went through the test diffs of every fix…
17^ticket(697)
meeting 2026-11-13
hazel
dress-up
hazel, hazeljs, report: how MUDU uses hazeljs for its scripts, written for another JS developerA Hazel report: scripting a JS app in Hazel, the way Messed Up Dress Up does. How MUDU uses hazeljs for its script support (the rooms'…
18^ticket(696)
meeting 2026-11-13
hazel
hazel, hazeljs: a PR to dev whose README links the experimental npm packageA PR to dev that links to hazeljs. Hazel's README (on dev) gets a short section on the experimental npm package (npmjs.com/package/hazeljs,…
19^ticket(666)
meeting 2026-11-05
hazel
performance
hazel, performance: how much sharing is lost passing data to and from the eval workerSharing across the worker boundary. How much structure sharing and identity is lost as data goes to the worker and back, and what that…
20^ticket(665)
meeting 2026-11-13
hazel
performance
hazel, performance: the cost of undo, and O(log n) per edit and per undo instead of O(N)Undo in O(log n). Measure what an edit and an undo cost as the program grows, and design undo so each costs O(log n), not O(N). Today, on…
21^ticket(681)
hazel
performance
hazel, Hazlet, performance, report 34: convert JS values directly at the call boundary, and a report measuring what it savesConvert JS values directly. ^report(34)'s What next, step 4: convert JS values directly into Hazel values at the call boundary, not through…
22^ticket(669)
meeting 2026-11-05
hazel
hazel, Hazlet, npm: the package's build (hazel-lib.js for node and the browser)Hazlet package: the build. Part of ^ticket(668). A folder with package.json and the release bundle of hazel-lib.js from #2719 (one…
23^ticket(676)
meeting 2026-11-05
hazel
dress-up
hazel, Hazlet, Dress Up: the trap room on another page (a deep link, then a messed-up-dress-up package)The trap room outside the game. Part of ^ticket(675). First step, small: a link that opens the game at the trap room with its Scripting…
24^ticket(678)
meeting 2026-11-05
hazel
hazel, Hazlet, report 34: the report's page wires the room, the tiles and hazeljsThe wiring. Part of ^ticket(675), after ^ticket(676) and ^ticket(677). The report's page posts the trap room's module text (and Common's)…
25^ticket(673)
meeting 2026-11-05
hazel
hazel, Hazlet, npm: the name, license, versions and who publishesHazlet package: name and publishing. Part of ^ticket(668); decisions for Matthew, some for the meeting with Cyrus. (1) The name: unscoped…
26^ticket(683)
hazel
dress-up
hazel, Hazlet, dress-up: what a Hazel edit box gives over a JS one: typed completion and errors in placeHazel edit boxes over JS ones. Two advantages to make real in Messed Up Dress Up's tiles, and to say in hazeljs's README: (1) type-directed…
27^ticket(655)
tracking
hazel
hazel: where things stand after merge day (2026-10-29), to keep trackMatthew's tracking ticket for the state of things at the end of merge day: what landed, what waits on whom, and what to pick up next.…
28^ticket(685)
hazel
hazel, livelits, DSL: programs in the grammar's language, as tiles (^report(41) What next, step 2)Programs in the language, as tiles. ^report(41)'s What next, step 2: a second livelit whose literal is a program in the grammar's language…
29^ticket(701)
before sharing ^report(43)
hazel
hazel, hazeljs: Hazel's tile editor in the package, not only in a branch buildAn editor in hazeljs. Today the package analyzes and runs text; Hazel's own tile editor, as Messed Up Dress Up and ^report(43) use it, is…
30^ticket(702)
before sharing ^report(43)
hazel
hazel, hazeljs: undo and redo in the editor, not left to each appUndo and history in hazeljs's editor. Today the library keeps no history: the embed frame posts {type: "history", redo} for Ctrl+Z and…
31^ticket(704)
hazel
performance
hazel, hazeljs, report 44: many Hazel listings on a page without a Hazel app per listingMany listings, one Hazel. Today hazel-lib's listings script (^report(44)) gives each listing its own frame, and each frame starts a whole…
32^ticket(706)
hazel
hazel, hazeljs, petri: hazeljs-petri-example on hazeljs 0.0.5, and its listings from the packageThe Petri example on hazeljs 0.0.5. matthewhammer/hazeljs-petri-example still loads hazeljs 0.0.4: js/live.js's LIB address and…
33^ticket(708)
hazel
performance
hazel, livelits, performance: a Petri net livelit that redraws the net from its Hazel definition, fast enoughA livelit that redraws a Petri net, fast enough. In matthewhammer/hazeljs-petri-example the net (places, transitions, arcs, where each is…
34^ticket(700)
blocked on Cyrus
hazel
hazel, hazeljs, report 43: what the Cambridge group's Petri net tools would want from a Hazel ruleAsk the Cambridge group what their Petri net tools would want from a Hazel rule. ^report(43), What next, step 1…
🪷 Blocked on Matthew: waiting for his response
35^ticket(852)
🪷 blocked on Matthew
Gnome world 0.0.104-0.0.105: no zoom in full screen (iPad: only sky and hills); 🐞 what the game sees under Advanced; a 🔊 in villagers' bubbles in their own voicesMatthew, 2026-11-24: N and M on the iPad (a broken screen, touch input maybe odd): while walking 'the screen zooms into some form that gets…
36^ticket(846)
🪷 blocked on Matthew
hazel
performance
hazel-jit / Hazel: explore a builtin sequence type, Seq, beside List: a balanced tree with JS arrays at its leavesA Seq type beside List: a container whose representation is a balanced tree with JS arrays at its leaves. Check first whether JS has one…
37^ticket(795)
🪷 blocked on Matthew
hazel
hazeljs (npm): one big package that includes Hazel's tile editor; the open questionsThe hazeljs npm package, next version: one package that includes the tile editor (for now), built with #2837 (IBM Plex Sans in place of…
38^ticket(811)
🪷 blocked on Matthew
hazel
Hazel report (public WIP): Checkers, Hazel playing itself 6 moves ahead: how much of the search is repeated, across the two players and across the game's moves; would a shared memo table explore it fasterInstrument Checkers' 6-ahead search (the compiled rules' own search, mirrored in JS step for step): every position searched, keyed by board…
39^ticket(718)
for dev
🪷 blocked on Matthew
hazel
performance
hazel, performance, dev: a first-order data form, closed values with no holes and no closures, so data stops paying for open termsA first-order data form for dev: closed values with no holes and no closures, carried as data, not as open terms. Hazel holds every value…
40^ticket(667)
🪷 blocked on Matthew
meeting 2026-11-05
hazel
performance
hazel, performance: why #2635's evaluator takes half dev's steps on the PerfBudgets programHalf the steps. Dev's new PerfBudgets test (#2678: Matthew's, with two commits of Cyrus's, who merged it) counts the evaluator's trampoline…
41^ticket(664)
meeting 2026-11-05
🪷 blocked on Matthew
hazel
performance
hazel, the meeting with Cyrus on Thu 2026-11-05, 10:00 MST (moved from Wed 2026-11-04): a list of specific tickets to grind on togetherTickets for Wednesday. Find or create a list of specific tickets to work through with Cyrus. Two to start: (1) the cost of undo, and ways…

Special minutes

Each time Matthew had to remind Claude to keep going (his rule, 2026-10-20): 18 so far, 175 minutes idle in all. Newest first.

WhenHis wordsWhat Claude had stopped onIdle
Mon Oct 26, 6:05 PM“keep going”^ticket(637): sent mid-turn, while closing it (0.0.460 speed run green 18:03)2 min
Mon Oct 26, 1:22 PM“go”0.0.459 released; every open ticket but 616 blocked on Matthew, 616 waiting on #2597's deck run25 min
Thu Oct 22, 7:42 PM“AFK -- keep going.”ended the turn on a question (Auto-fix for Adapton/fumola#150, which he then turned on) while 559's counter-build timing run and the no-counter build's Deploy ran in the background1 min
Thu Oct 22, 12:05 AM“AFK -- keep going please.”ended the turn after posting 531's results; only 0.0.408's speed run was left running0 min
Wed Oct 21, 11:51 PM“AFK -- keep going please.”ended the turn after starting 527's archive run; everything else was waiting on GitHub0 min
Wed Oct 21, 10:55 PM“AFK -- keep going please.”ended the turn after re-arming the PR watch; waiting on GitHub (521's final measurement, 531's comparison) with 527 not before 23:470 min
Wed Oct 21, 10:15 PM“AFK -- keep going please.”had just started 531's workflow and ended the turn; nothing else was startable (521 waiting on GitHub, 527 not before 23:47)0 min
Wed Oct 21, 9:22 PM“AFK -- keep going please.”ended the turn after re-arming the PR watch while three GitHub runs went, instead of building 521's c7 (the chip box) and c8 (People in boxes)30 min
Wed Oct 21, 7:15 PM“did you stop? special time?”ended the turn after pushing 521's c2/c3 while workflows and CI ran, instead of starting the next movable piece (518's prep, 517's furnishings plan, or 526's rename check)0 min
Wed Oct 21, 6:53 PM“keep going, don't wait on me”ended the turn with a status report while five workflows ran, instead of starting the next queued ticket (518)0 min
Wed Oct 21, 6:52 PM“continue. / special time entry.”ended the turn after the resume (and a /compact) while five workflows ran, instead of reviewing the commits they had already made (523 at 0aed09b, 520 B at cf9206c)6 min
Wed Oct 21, 4:04 PM“have you stopped? is this special time?”ended the turn after minting ^ticket(522), waiting on background work (the round-room workflow 516, hazel.org serving #2719's embed build for 520, 0.0.398's speed run) instead of starting the next unblocked work13 min
Tue Oct 20, 11:18 PM“http://localhost:8000/ isn't up --- very special.”at 22:22 I said the servers had survived the app's restart, from ss alone (ports listening); the five the app had started (8000, 8131, 8133, 8361, 8482) were alive but answered nothing, their log pipe gone with the app. Restarted 23:17; all eight ports answer56 min
Tue Oct 20, 11:17 PM“keep going. AFK.”reported the dashboard update and ended the turn, with 0.0.394's speed run and PR ^ticket(1)'s tests still on GitHub and no next ticket taken4 min
Tue Oct 20, 10:15 PM“Why are you "stopped" -- ? The opposite of what I want now.”held still after writing ^ticket(508), reading his 'Please stop.' (said while I relaunched watchers on coming back) as stop all work, though the CI runs, the archive run and the agenda could move0 min
Tue Oct 20, 10:12 PM“Keep going.”the archive-494c push: the shell was killed (exit 137) right after it went through, and the session ended there; the archive run had started on GitHub2 min
Tue Oct 20, 9:18 PM“why did you stop....AGAIN?”Ended the turn at 21:17 while my own two fixer agents (^ticket(507): farm502's drag, pasture503's horse size) ran in the background, instead of checking both in the browser pane myself meanwhile: the same mistake as 20:00, with my own agents in place of CI.1 min
Tue Oct 20, 8:35 PM“why did you stop working?”Ended the turn after reading 0.0.390's speed run and fixing horse438, to wait for 0.0.392's speed run (OBJECTS.md, ^ticket(494)), though the queue had work that needed no run (^ticket(387)'s visual check, done after the reminder).35 min

Localhost ports

Every port this laptop serves, and every ticket waiting on Matthew, in the order we would like him to look.

🪷 Blocked on Matthew's decision (63)

Every open ticket tagged blocked on Matthew, the ones we most want looked at first.

#TicketWhat you decideWhere to look
1^ticket(600)
dress up reports: ^du_report(18), the 🎬 story scripts and 🚶 paths, a guide for the kids with examples, and a zine with more coloring pages
M and N: read ^du_report(18) and the zine, color a page; their feedback, then the work-in-progress mark comes off. Matthew 10-24: maybe by tomorrow; they are not playing with the game right now.—
2^ticket(389)
hazel, meetings (Cyrus, Wed 2026-10-21)
Matthew: what the Cyrus meeting decided (to record in the agenda, ^report(20))—
3^ticket(465)
hazel, the meeting with Cyrus on 2026-10-21: the plan
Matthew: what the Cyrus meeting decided (to record against the plan)—
4^ticket(468)
hazel, Gamma: a type in full, on several lines
Matthew (also agenda item 4): which way to offer Γ's unfold: always (the default), on hover, or by right-click? The setting is ^unfold on the Colors slide. Try it on 8312 (0113e420d0), or 8311 (#2597 at 2cd7b96f24, which has the same setting).—
5^ticket(395)
hazel, types, right-click to expand a type
Matthew: the exploration is on the ticket; pick: a box above vs expansion in place, #2635 (refractors) vs dev (inspector, Γ), one level per click vs all; then a prototype.—
6^ticket(587)
hazel: the JS library and embed expose modular editors' outline and navigation, for the game's ⛶ script view
Say whether the game should load lib-outline-587's build (its outline types then come from Hazel), and whether that branch goes into #2719 / #2711.—
7^ticket(481)
hazel, a draft PR: Hazel as a JS library
Matthew: push js-library-tagcheck (a bare tag from JS checked against a sum) to #2711, or leave it; the mountable editor waits on the meeting's word on the direction (^report(20) item 12).hazelgrove/hazel/pull/2711
8^ticket(574)
hazel modules: a module exports its sum types' constructors, so other modules can use them (a PR against the modules PR), the game's Common
#2729 now waits on 7h3kk1d's review (follow-on tests in #2749, issue #2751 filed). Still yours: whether to post the note to Alexander on #2495.—
9^ticket(484)
hazel, #2613 (Colors): its review
Matthew: re-request review from 7h3kk1d on #2613 and resolve the label-header suggestion thread (CI green, mergeable, 0 behind dev); the --G5 pill (style.css:402) stays @disconcision's call.hazelgrove/hazel/pull/2613
10^ticket(485)
hazel, #2583 (Deep links): the agreed refactor, and dev
Matthew: re-request review from 7h3kk1d on #2583 (green, mergeable, 0 behind dev at 077a68f9f8; his 12 threads still unresolved); optionally reverse Copy URL in every mode, or selection-or-caret.hazelgrove/hazel/pull/2583
11^ticket(541)
hazel, #2681: is #2661 a real dependency, and should #2681's base be #2661's branch? (Alexander's suggestion)
Matthew: share ^report(26) with Alexander; and the merge-and-retarget of #2681, on your word.hazelgrove/hazel/pull/2681
12^ticket(572)
hazel: new reviews on our open PRs, not yet integrated: a WIP report (one, with a subsection per PR) for Matthew's review
Read ^report(31) at https://matthewhammer.org/hazel/reports/031/ (public since 10-23 14:13) and say which reviews to answer first: #2608 (changes requested 10-21) and #2651 (Alexander's question of 10-23) have had no reply.localhost:8131/031/
13^ticket(521)
dress up, panels: knolling the whole panel system again; ^du_report(16) against ^du_report(5), the whitespace before and after, a PR
see the ticketlocalhost:8133/report-016/reports/016/
matthewhammer.org/kids-choice-games/dress-up/reports/016/
14^ticket(160)
dress up, performance, touch, testing
Tonight, on the iPad and the Ubuntu laptop: open https://matthewhammer.org/kids-choice-games/dress-up/ (0.0.429), ⚙️ Advanced, 🧪 this computer's speed (about 76 s, hands off), then 📋 copy the line and paste it here. Its 🌲 part puts the forest by a controller and by holding the on-screen arrows side by side.matthewhammer.org/kids-choice-games/dress-up/reports/001/
15^ticket(589)
fumola: expose the Core state's vm_defs (the definition outline) through the wasm API, for the game's ⛶ outline
Say whether to open PRs for defs-parse-590 and wasm-defs-589 on Adapton/fumola (then the game pins the new build and its outline reads Fumola's defs).—
16^ticket(590)
fumola: keep parse information for every AST form in the Core's definitions (types too), for ^ticket(589)'s API
Say whether to open a PR for defs-parse-590 on Adapton/fumola.—
17^ticket(571)
fumola semantics: fix the traps scripting the game found (^report(28) #traps): text != inverted, text patterns, Nat and Int, Float compariso
Review Adapton/fumola#151 (https://github.com/Adapton/fumola/pull/151). ^report(28)'s revision is public: https://matthewhammer.org/hazel/reports/028/#trapslocalhost:8131/028/#traps
matthewhammer.org/hazel/reports/028/#traps
18^ticket(549)
fumola wasm: an answer over ~1,000 deep crashes the instance (recursive JSON)
see the tickethttp://matthewhammer.org/hazel/reports/029/#step-4
19^ticket(315)
fumola.org, light mode
Matthew: OK to merge Adapton/fumola#147 (fumola.org's light theme)? Open, mergeable, build-and-test green (10-18 21:31Z), head 96f267f; merging to main deploys it (Publish wasm to Pages runs on push to main).—
20^ticket(559)
hazel evaluator: a fast path for terms already final, skipping the five stages when nothing is probed or reused (^report(29) What next, step
see the tickethttp://matthewhammer.org/hazel/reports/029/#step-5
21^ticket(548)
hazel evaluator: push a type through a list without minting an id per element (list loops are quadratic)
see the ticketmatthewhammer.org/hazel/reports/029/#re-type
22^ticket(550)
hazel evaluator: a term already known to be a value evaluates in O(1) (a value memo)
see the ticketmatthewhammer.org/hazel/reports/029/#re-walk
23^ticket(553)
hazel: a map for Dress Up's rules, and the World rule timed with it (^report(27) What next, step 2)
see the ticketmatthewhammer.org/hazel/reports/027/#step-2
24^ticket(545)
hazel × fumola: why the same rule runs 2.4x to 10x faster in Fumola: steps, cost per step, the boundary, wasm vs js (a report, work in progr
see the ticketmatthewhammer.org/hazel/reports/029/
25^ticket(588)
hazel reports: ^report(32), the 📜 Scripting tab's speed run with JS, Fumola and Hazel as the default
Review ^report(32), public as work in progress since 2026-11-04: https://matthewhammer.org/hazel/reports/032/#correctlocalhost:8131/032/
26^ticket(570)
hazel reports: two days of game scripts in Hazel for MUDU, since the 10-21 meeting: where we are against the goal
Read ^report(30), public as work in progress: the code boxes (https://matthewhammer.org/hazel/reports/030/#rules) and the Languages of Play section (https://matthewhammer.org/hazel/reports/030/#lop).localhost:8131/030/
27^ticket(533)
hazel, performance: what a call into Hazel costs (^report(25), from Dress Up's ^ticket(531))
Matthew: look at the draft (localhost:8131/025/#code): do the tile boxes draw in your browser (click 'show Hazel's tiles'; the line beside it says how far it got)?matthewhammer.org/hazel/reports/025/
28^ticket(537)
hazel, JS library (#2711, #2719): a review of it, in ^report(25), as this report uses it
Matthew: read the library review in ^report(25): https://matthewhammer.org/hazel/reports/025/#librarymatthewhammer.org/hazel/reports/025/
29^ticket(538)
hazel, JS library: tiles in a page that show reliably (a read-only mount without a frame, or a frame that draws off screen)
Matthew: in ^report(25)'s tile boxes (https://matthewhammer.org/hazel/reports/025/#code), click in the tiles, then drag or use the arrows: do the tile shapes show? Then: propose embed-selectable on #2719?matthewhammer.org/hazel/reports/025/
30^ticket(398)
hazel, performance, correctness: the #2609 PRs
Matthew: read ^report(21), public as work in progress (https://matthewhammer.org/hazel/reports/021/). The tests half is ^ticket(411).localhost:8131/021/
31^ticket(408)
hazel, Hazel Weekly: how its agent credits the team
Matthew: read ^report(22), public as work in progress (https://matthewhammer.org/hazel/reports/022/), and say whether to pass the ten corrections to Andrew.localhost:8131/022/
andrewblinn.com/hazel/weekly/
32^ticket(573)
hazel reports: a 🔊 Listen button on every report, read by the reader's own browser voice
Try 🔊 Listen on any report (a device with voices: Mac, iPad, desktop Chrome); every published report already carries it.localhost:8131/030/
33^ticket(411)
hazel, correctness tests for the performance PRs (a PR to dev)
Matthew: the Cyrus meeting's word: which of the 19 PRs get their own tests first, and who reviews #2700?—
34^ticket(470)
hazel, performance: opening each documentation slide, timed on GitHub
Matthew: the Cyrus meeting's word: keep the slide-timing job running per PR and on dev?—
35^ticket(388)
hazel, the syntax explainer (RHS)
Wednesday's meeting: one shared read-only, selectable view for every look-only surface (as ^report(19) suggests), or the explainer's examples alone first?—
36^ticket(462)
hazel, #2635: Fumola out, into its own PR
Matthew: #2650 (Fumola, shelved) is red at 69b8509173 (run 39481873576); your 07:38 ask said CI green for all three, so: fix it, park it, or close it? And close #2616? Its head c4ec888b82 is inside #2650.—
37^ticket(16)
CI
see the tickethttp://localhost:8131/series/006/#today
38^ticket(17)
performance, CI
see the tickethttp://localhost:8131/series/006/#pr2161
39^ticket(18)
performance
see the tickethttp://localhost:8131/series/005/#where
40^ticket(102)
hazel
see the tickethazelgrove/hazel/pull/2583#issuecomment-6197659505
41^ticket(401)
hazel, livelits, #2635: pictures full screen
Matthew, on your own machine (not 8341: this laptop's worker times out on Scenes at the fixed 20 s eval_timeout_ms, still 20000 on 9933091a99): open the Scenes slide on #2635's public build, hazel.org/build/integration/livelits-modular-editors/ (the same code as 9933091a99), click the full-screen button at the top right of the drawn picture, and press Esc to leave.http://localhost:8341/?slide=livelit-playground-scenes
42^ticket(166)
dress up, fumola, infrastructure
Matthew: whether to build the family-only access first (Claude's part, per 07:00 10-17), then deploy to mainnet (your cycles); or to deploy the open telemetry log now, as the pad is.pad.riseup.net/p/LgBrn8VRzEJxrsmMW82I
43^ticket(276)
dress up, archives
Matthew: make a fine-grained token (resource owner matthewhammer; only the repositories dress-up-pictures and dress-up-music; permission Contents: Read and write), then add it to matthewhammer/kids-choice-games as the Actions secret ARCHIVE_TOKEN (Settings, Secrets and variables, Actions; or: gh secret set ARCHIVE_TOKEN -R matthewhammer/kids-choice-games). The next archive run then lands by itself.matthewhammer.org/kids-choice-games/dress-up/reports/004/#step-3
44^ticket(397)
operations, the work laptop: its battery
Matthew: reseat the battery's connector; if the kernel still sees no battery, replace it (maybe also a stronger USB-C adapter and cable). Then Claude checks journalctl, upower and the clock.matthewhammer.org/hazel-work-notes/crash-log.html
45^ticket(534)
operations: move our work to the spare laptop from Cyrus, so this one can be fixed
Cyrus: send the spare laptop (Matthew expects it in about two weeks). Matthew: set it up, then move our work onto it.matthewhammer.org/hazel-work-notes/crash-log.html
46^ticket(423)
dashboard, hazel-work-notes: a weekly git gc
see the ticket—
47^ticket(429)
matthewhammer.org, its repository: the dashboard's history in it
see the ticket—
48^ticket(591) (not ranked yet)
hazel #2711 (Hazel as a JS library): unit tests seeded from the game's real scripts and their JS equivalence
Say whether to merge js-library-591 into #2711 (js-library).—
49^ticket(602) (not ranked yet)
operations, the Claude desktop app: after its window hung it stayed gone until a reboot (2026-10-24); reinstalling did not help
Only if you want Anthropic to know: report that the desktop app's own kill-and-reload never brought its window back (in the app's Help menu, or an issue on github.com/anthropics/claude-code); this ticket has the times and log lines. Otherwise close it.—
50^ticket(609) (not ranked yet)
hazel reports: writing MUDU's game scripts: Globals as it is (a per-rule view), RoomState, a full Globals as a Hazel type, and one address f
Read on in ^report(33), Game Scripts in Hazel, a Case Study (work in progress): https://matthewhammer.org/hazel/reports/033/ , and send the next notes.—
51^ticket(611) (not ranked yet)
dress up: a 🌍 Start World button beside Start over: the start world's start square, the friend put there, and a pop-up saying what the game
R: try 🌍 Start World on his phone (0.0.433+); his feedback goes into ^du_report(20), then its WIP mark comes off—
52^ticket(633) (not ranked yet)
dress up: ^du_report(21), the dungeon rooms and the friend from every side: every costume from above (front, side, back) and asleep in the t
see the ticket—
53^ticket(634) (not ranked yet)
dress up: agent-instructions.md cut from 380 KB to a short checklist; the explanation moved to a new public report, ^du_report(22), readable
see the ticket—
54^ticket(635) (not ranked yet)
hazel reports: ^report(34), the pros and cons of an official Hazel JS library (#2711, #2719): for game scripting (MUDU's 📜 rules) and for ot
see the ticket—
55^ticket(654) (not ranked yet)
hazel merge day (10-29), end of day: your approvals and the Slack post
Approve https://github.com/hazelgrove/hazel/pull/2756 and https://github.com/hazelgrove/hazel/pull/2626 (LGTM notes on ^ticket(652), ^ticket(653)); then post ~/hazel/experiments/slack-end-of-day-2026-10-29.txt to Slack.—
56^ticket(664) (not ranked yet)
hazel, the meeting with Cyrus on Thu 2026-11-05, 10:00 MST (moved from Wed 2026-11-04): a list of specific tickets to grind on together
Your answers to the agenda's questions for Wednesday's meeting with Cyrus (you said this morning you had some).localhost:8131/037/
57^ticket(667) (not ranked yet)
hazel, performance: why #2635's evaluator takes half dev's steps on the PerfBudgets program
see the tickethazelgrove/hazel/pull/2793
58^ticket(718) (not ranked yet)
hazel, performance, dev: a first-order data form, closed values with no holes and no closures, so data stops paying for open terms
see the ticketmatthewhammer.org/hazel/reports/047/
59^ticket(769) (not ranked yet)
hazel-jit: holes across the boundary, a starter project for John on the Hazel team (^report(55))
see the ticket—
60^ticket(795) (not ranked yet)
hazeljs (npm): one big package that includes Hazel's tile editor; the open questions
Decide: the Noun Project icons in the package. (Publishing 0.0.10 to npm: decided 11-24, it waits until the representation questions settle, ^ticket(847) in particular.) Try: http://localhost:8152/examples/listings/ (packaged editor) and ?pkg=http://localhost:8153/ (as from a CDN).localhost:8152/examples/listings/
localhost:8153/
61^ticket(811) (not ranked yet)
Hazel report (public WIP): Checkers, Hazel playing itself 6 moves ahead: how much of the search is repeated, across the two players and acro
see the ticket—
62^ticket(846) (not ranked yet)
hazel-jit / Hazel: explore a builtin sequence type, Seq, beside List: a balanced tree with JS arrays at its leaves
After ^ticket(847)'s decisions: how Seq enters Hazel (builtin type and operations; the treap, or funkia's list behind a page edge that copies), https://matthewhammer.org/hazel/reports/054/#seq—
63^ticket(852) (not ranked yet)
Gnome world 0.0.104-0.0.105: no zoom in full screen (iPad: only sky and hills); 🐞 what the game sees under Advanced; a 🔊 in villagers' bubbl
Try Gnome world 0.0.105 on the iPad (reload; ⚙️ Advanced shows 0.0.105); if the view goes wrong again, ⚙️ Advanced → 🐞 write down what the game sees → 📋 copy → paste into the etherpad. https://matthewhammer.org/hazeljs-examples/world/—

Livelits and Γ's types (1)

The two livelits PRs (#2635, #2597) and Γ's long types to try (^ticket(468)); on the agenda of the 10-21 meeting with Cyrus.

PR # and titleRepo and branchLocalhost
— Hazel reports (the series, local)~/hazel-perf-report (public: matthewhammer/hazel-reports)
main serving the series locally again since 07:38 11-19 (for ^report(58)); everything published
localhost:8131/060/ (^report(60), How Fast Is Hazel? Five Games, Three Ways; published, work in progress)
localhost:8131/058/ (^report(58), What Could Merge Today; published, work in progress)
localhost:8131/050/ (^report(50), Toward 60 fps: hazel-jit So Far; published, work in progress)
localhost:8131/049/ (^report(49), The Witch's Run, Compiled, in the Page)
localhost:8131/ (the series index)

Other ports open (4)

Everything else served on this laptop, to show the work.

PR # and titleRepo and branchLocalhost
— this dashboard~/localhost-index (data.json, update.py)
local
localhost:8000 (the Hazel Work Dashboard, this page; public copy at matthewhammer.org/hazel/dashboard/)
— hazeljs-examples (the Hazel activities)~/hazeljs-examples (public: matthewhammer/hazeljs-examples)
main
localhost:8141/ (the Hazel activities' front page, 0.0.102, 1a64fdb, pushed)
localhost:8141/world/ (Gnome world 0.0.102: the bigger world, trees 3x, Clover the rabbit, music by place and a dub under the water)
localhost:8141/dig/ (Gnome dig 0.0.74: the love blast, slower falls under the water, the level-cleared party)
localhost:8141/astrology/ (astrology: saved charts; today's sky with a time, following the clock)
localhost:8141/i-ching/ (the I Ching)
localhost:8141/tarot/ (the Tarot)
localhost:8141/go/ (Go, against Hazel)
localhost:8141/checkers/ (Checkers, against Hazel)
— Dress Up (kids-choice-games, main)~/kids-choice-games (public: matthewhammer/kids-choice-games)
main
localhost:8133/dress-up/index.html (the game's working copy, 0.0.502)
— hazeljs 0.0.11 on editor-in-package (^ticket(795))~/hazeljs (public: hazelgrove/hazeljs)
editor-in-package 0.0.10 (581ae27, pushed, not on npm): hazel-lib.js and the editor from hazelgrove/hazel 7274df28a5 (#2857): Hazel.jit/compile, IBM Plex Sans and Material Icons shipped, editor/licenses/. 8152 the listings page with the packaged editor (same site), 8153 the package as from a CDN; since the 11-23 08:12 power cut, 8153 runs from the shell (setsid), as the app allows five preview servers
localhost:8152/examples/listings/ (same site: package beside the page)
localhost:8152/examples/listings/?pkg=http://localhost:8153/ (as from a CDN)

Other PRs we are tracking

Not about performance: features, fixes, docs, CI.

PR # and titleBranch → baseStateCIReviewMergeUpdatedNote
#2857 hazeljs: what the npm package is built from (the library, the editable embed, the font and icons, hazel-jit)hazeljs → devdraft✓ 6 passedreview requiredmergeable2026-11-25hazeljs: everything the npm package is built from, one branch (hazeljs): the library (#2711, #2719), the editable embed (#2814), dev to just before Core, the font (#2837) and icons (#2842), hazel-jit's compiler, and the new Hazel.compile/jit (^ticket(795)). Draft, CI green.
#2818 A frame-rate HUD, off by default, turned on from the Flags configuration slidefps-hud → devdraft✓ 6 passedreview requiredmergeable2026-11-19A frame-rate HUD, off by default, turned on from the Flags configuration slide (Matthew 11-19 13:0x: "the HUD is off by default; a new configuration flag on configuration slide toggles it on/off"). Branch fps-hud: 806c4cd47e adds the Flags slide (FlagsConfiguration.re, (hud = false) in a checkbox), window.hazelHud in index.html, startup apply in Main; ?hud still forces it for a page. Cyrus merged dev into it at 11:56 (f5e0b1bb91). Preview: https://build.hazel.org/fps-hud/ 13:51: CI green on f5bce97cda (after a Flags case for reconcile_colors); preview checked in the browser pane: HUD off at first, ticking hud on the Flags slide shows it, unticking hides it, and a reload in Tutorial mode with the slide saved ticked shows it at startup (left unticked after). 1e77468749 renames the settings section to "Colors, keys and flags"; its CI running.
#2842 Ship Material Icons with Hazel, so the command palette works offlineui-icons-shipped → devopen✓ 6 passedreview requiredmergeable2026-11-19Ship Material Icons with Hazel, so the command palette works offline (^ticket(774)'s finding). Branch ui-icons-shipped from dev 2538e56479, commit 9d8d393fa6: the same woff2 Google Fonts serves (v145, 128 KB, byte-identical), Apache 2.0 license, Google Fonts links gone from index.html. Opened 2026-11-19 12:0x on Matthew's word ("Yes, its own PR"). Preview: https://build.hazel.org/ui-icons-shipped/
#2837 Ship IBM Plex Sans as Hazel's interface font, in place of Helvetica Neueui-font-installed → devopen✓ 6 passedreview requiredmergeable2026-11-19Ship IBM Plex Sans as Hazel's interface font, in place of Helvetica Neue (Matthew's pick 11-19 from ^report(59)). Branch ui-font-installed: 183db5978f drops Helvetica Neue, 6736849247 adds Plex 400/700 (Latin, 22 KB each, OFL-1.1). Preview: https://build.hazel.org/ui-font-installed/
#2819 livelits x jitlivelits-x-jit → devdraft✗ 1 failing: checks / Full tests (cancelled); ✓ 8 passedreview requiredconflicts2026-11-09livelits x jit: a DRAFT against dev for hosting the build only, not for merging (Matthew, 11-09: "the idea of this PR is to host the build, not to merge to any other branch"). Branch livelits-x-jit = #2817's head 61f3f01a15 (#2635 + hazel-jit + the ?hud overlay). Opened 2026-11-09 05:37. Build: https://build.hazel.org/livelits-x-jit/?hud ; the description links all 15 Livelit Playground slides with the HUD, compiled and not. Conflicts with dev are expected.
#2817 non-`dev` (`integration/livelits-modular-editors`): hazel-jit: livelit views and a slide's whole run compiled to JavaScript; try it with a frame-rate HUDtrial/694-view-jit → integration/livelits-modular-editorsdraft✓ 11 passedno review yetmergeable2026-11-19hazel-jit for the team to try: trial/694-view-jit against integration/livelits-modular-editors (#2635), draft, opened 2026-11-08 on Matthew's word. Try it: https://build.hazel.org/trial/694-view-jit/?slide=livelit-playground-witch&hud (and &jit=off) (^ticket(722), ^report(49)).
#2815 Goto first use and Goto next use, in the context menugoto-uses → devopen✓ 6 passedreview requiredmergeable2026-11-06Goto first use / Goto next use in the context menu, against dev (^ticket(705)), opened 2026-11-06 on Matthew's word.
#2814 non-`dev` (`js-library-embed`): Embed mode: editable cells, one module at a time, and go to definition across cellsembed-editable → js-library-embeddraft✓ 5 passedno review yetmergeable2026-11-06DRAFT, stacked on #2719 (js-library-embed): the editable embed (embed-editable): editable cells, focus one module, theme/lines/font, reveal/goto/caret for go to definition across cells, history keys to the page; docs section added; #2719's branch merged in (007cd6e601). Used by MUDU's Scripting panel and ^report(43)/^report(44). Opened 2026-11-06 on Matthew's word (^ticket(677)).
#2812 README: link the experimental hazeljs npm packagedocs/readme-hazeljs → devdraft✓ 6 passedreview requiredmergeable2026-11-19README PR to dev (^ticket(696)), opened 2026-11-06: a short section linking the experimental hazeljs npm package, saying it is a 0.0.x prototype that will track dev but does not yet (built from #2711 and #2719). Branch docs/readme-hazeljs, worktree ~/hazel-696-readme. Needs a reviewer.
#2700 Test: incremental evaluation agrees with evaluation from scratch, on recursive lets and over the slide corpustest/incremental-matches-fresh → devmerged✓ 5 passedapprovedunknown2026-10-29Tests PR to dev, ready for review since 13:33 10-20, no reviewer requested (the agenda asks) (^ticket(411), from ^report(21)): incremental evaluation agrees with evaluation from scratch: the property back on for values, recursive-let templates, and the slide corpus (150 edits). Mutation-checked.
#2699 non-`dev` (`integration/livelits-modular-editors`): Exploratory: per-member module analysis on Modules II, after Andrew's stdlib portexplore/2635-per-member-modules-ii → integration/livelits-modular-editorsmerged✓ 5 passedno review yetunknown2026-10-19Exploratory DRAFT into #2635 (^ticket(400)): per-member module analysis on Modules II, Andrew's stdlib port (a6b5478f52 / 00bc805ca1) fitted to #2635. 12:06 10-19: #2635's 1131a457e4 merged in and its own corpus failure (color-fig3.hz, livelit definitions taken for modules) fixed in 223357135a: DefStaticsParity 43 of 43 locally. Merging it into #2635 is Matthew's call.
#2676 The cursor inspector can show a long type whole, on several linescursor-inspector-full-types → devopen✓ 5 passedreview requiredconflicts2026-10-29The type-expansion panel (issue #2674). Its fix for module signatures' parentheses is only on #2635: dev prints a signature as a labeled tuple.
#2698 non-`dev` (`cursor-inspector-full-types`): Gamma can show a long type whole, on several linescontext-inspector-long-types → cursor-inspector-full-typesdraft✓ 5 passedno review yetmergeable2026-10-19Draft, stacked on #2676 (^ticket(386)): Gamma's long types. Not served on its own since the 10-24 reboot; its unfold is in the build on localhost:8312 (^ticket(468)).
#2583 Deep links: the URL can say which slide, which panel, and where the cursor isdeep-links → devopen✓ 5 passed⚠️ changes requestedconflicts2026-10-29
#2613 Colors: every var() a stylesheet reads is one the theme definesconfiguration-undefined-colors → devmerged✓ 6 passedapprovedunknown2026-11-19
#2605 Substitution: a let's definition sees the outer binding, not its ownsubstitution-let-def-scope → devmerged✓ 6 passedapprovedunknown2026-11-06
#2608 Leave the source's whitespace and comments out of elaborationselab-no-secondary → devdraft✓ 5 passed⚠️ changes requestedmergeable2026-11-19
#2592 Report each error once, not once per wrappererror-dedup-wrappers → devdraft✓ 5 passedreview requiredconflicts2026-09-23
#2491 docs: research-paper implementation status reportdocs/research-status-report → devclosed✓ 7 passedreview requiredmergeable2026-10-29Docs.
#2577 Serve the release web build from an Internet Computer canisteric-canister → devdraft✓ 7 passedreview requiredconflicts2026-09-22
#2616 non-`dev` (`integration/livelits-splicerefs-full`): Remote refs: splices a Fumola instance reads and writesremote-splices → integration/livelits-splicerefs-fulldraft✗ 2 failing: checks / Fast checks (failure), checks / Full tests (failure); ✓ 1 passedno review yetconflicts2026-11-19Remote splices, into #2597's branch. Superseded by #2650, which holds its commits and since 13:15 10-20 targets #2635's branch (^ticket(462)); red, and closing it is Matthew's call.
#2650 non-`dev` (`integration/livelits-modular-editors`): Hazel's state and Fumola instances on an Internet Computer canisteric-canister-fumola → integration/livelits-modular-editorsdraft✗ 2 failing: checks / Fast checks (failure), checks / Full tests (failure); ✓ 1 passedno review yetconflicts2026-11-19The IC canister demo and the Fumola work moved out of #2635 (^ticket(462)). Into #2635's branch since 10-20; red at 69b8509173; shelved, Matthew's call.
#2536 non-`dev` (`integration/modules-livelits`): experimental language integrationsexperimental-lang-integration → integration/modules-livelitsdraft✓ 5 passedno review yetmergeable2026-09-22Fumola-in-Hazel, shelved since 2026-09-16 (its issues go to Adapton/fumola).
#2806 non-`dev` (`integration/livelits-modular-editors`): A grammar livelit: IMP's production rules, in orderlivelit-dsl-grammar → integration/livelits-modular-editorsdraft✓ 6 passedno review yetmergeable2026-11-04Draft: a grammar livelit, IMP's production rules in order (^ticket(684), ^report(37) idea 8). Into #2635's branch.
#2807 non-`dev` (`js-library-embed`): Library calls bind their argument in the environment, so it is not stepped againlib-floor → js-library-embedopen✓ 5 passedno review yetmergeable2026-11-04lib-floor: a JS call's argument bound in the environment, not stepped again (^ticket(539)). Into #2719's branch.
#2808 non-`dev` (`lib-floor`): A function the library hands back keeps its closure, and a test holds a call's cost to what it doeslib-complexity-552 → lib-flooropen✓ 5 passedno review yetmergeable2026-11-04the closures kept whole, with the complexity test (^ticket(558), ^ticket(547), ^ticket(552)). Into #2807's branch.
#2809 non-`dev` (`lib-complexity-552`): Hazel.value: a JS value converted once, as a handle a call takes in its placelib-handles → lib-complexity-552open✗ 1 failing: Deploy branch preview (failure); ✓ 4 passedno review yetmergeable2026-11-04handles, Hazel.value (^ticket(551)). Into #2808's branch.
#2810 non-`dev` (`integration/livelits-modular-editors`): The explainer colors nothing under a projector, so the caret on a livelit no longer fails the viewfix-explain-color-projector → integration/livelits-modular-editorsopen✓ 6 passedno review yetmergeable2026-11-04Fix: the caret on a livelit failed the view while the explainer's highlighting was on (find_shards: sel_of_tile). Into #2635's branch. Found with ^ticket(684).

Repositories we deploy

Pushed to directly, without PRs. The version is the newest in each project's VERSIONS.md. Deployed means Pages has built the branch's latest commit; a repository without a Pages site runs where its links point.

Repository and branchLatest commitVersionDeployedOpen PRsNote
matthewhammer/kids-choice-games
main
2f79657 Dress Up speed, after the release: 0.0.532: ok (2026-11-22)Messed Up Dress Up 0.0.532 (2026-11-21)✓ deployed 2f79657
Messed Up Dress Up
localhost:8133/dress-up.html
🎵 the tunes (MP3s)
#3 Dress Up: less empty space in the panels: no empty columns, packed boxes, one chip for long choices (ticket 521)The kids' toys, prototyped in plain JS with real players before the Hazel slides formulate them as user-defined livelits (#2635, #2597; ^report(1) on). Each version is tagged dress-up-X.Y.Z.
matthewhammer/hazeljs-petri-example
main
dc4d538 Moved: the page sends you to hazeljs-examples/petri-net/, with its query and anchor (2026-11-20)hazeljs-petri-example 0.0.10 (2026-11-06)✓ deployed dc4d538
the app
noneThe second app with rules in Hazel, after Messed Up Dress Up: a Petri net whose firing rule is a Hazel program run by hazeljs (^report(43)). Its Pages site is live since 2026-11-06 (the page as it is); the redesign in the game's style is planned (PLAN.md). Versions are tagged vX.Y.Z. Moved 2026-11-19 into hazeljs-examples at petri-net/, with its history (0.0.31); the old address forwards each page there.
matthewhammer/hazeljs-examples
main
7049a0e 0.0.105: Gnome world's full screen shows the whole view whatever the zoom: the frame laid over the part of the page in sight (2026-11-24)hazeljs-examples 0.0.105 (2026-11-24)✓ deployed 7049a0e
the Hazel activities
the I Ching
the Tarot
Hazel AI opponents: Go, Checkers
Petri nets
localhost:8141
noneThe third app with its core logic in Hazel, after Messed Up Dress Up and the Petri example: a series of ancient oracles, each its own page, the I Ching and the Tarot first (^ticket(728) to ^ticket(735)). Public and on Pages since 2026-11-15 (0.0.2).
matthewhammer/dress-up-pictures
main
1e15712 archive.mjs: the team set in its places before the picture, not where the walk in had got to (ticket 819) (2026-11-22)—… not yet: live is 1694bbc
every picture, by day
localhost:8133/screenshots/
noneThe Dress Up picture archive, apart from the game (^ticket(106)): each day, every background and chip menu at its defaults, as PNG + SVG + settings. Unchanged files are symlinks to the day they last changed. ~/du-shots/tools/archive-today.sh makes a day.
matthewhammer/dress-up-music
main
a6fce8e 2026/11/21: Messed Up Dress Up 0.0.530 (2026-11-22)—✓ deployed a6fce8e
every tune, by day
localhost:8133/music/
noneThe Dress Up music archive, apart from the game (^ticket(106)): each day, every tune at its defaults, one loop each, as MP3. Unchanged tunes (by fingerprint) are symlinks to the day they last changed.
matthewhammer/hazel-work-notes
main
1c9bebc Dashboard 2026-11-25 06:02 MST: index.html (2026-11-25)Hazel Work Dashboard 0.0.4 (2026-10-23)✓ deployed 1c9bebc
the dashboard, published
the dashboard, localhost:8000
its history, localhost:8000/notes/
noneThis page's code (dashboard/, run in place: ~/localhost-index links to it), its history and agent-instructions.md. PUBLIC since 2026-10-13. Since 2026-10-16 (^ticket(181)) the public copy of this page (noindex) is at matthewhammer.org/hazel/dashboard/, in the homepage's repository: site_publish.py commits it there at most every ten minutes, without touching the homepage's checkout (so pull there before pushing). This repository's root and matthewhammer.org/hazel/work-dashboard/ redirect to it. Cron commits and pushes a snapshot and data.json here when the page changes; the code is committed by hand.
matthewhammer/hazel-performance-analysis
main
5aeeb2b 054: the records work merged into hazel-jit (#2859, 9ec865976d) and hazeljs (#2857, 20febee548), both CI green (2026-11-25)—no Pages site
the series, published
drafts, localhost:8131/series/
noneThe performance analysis series, for outside readers (^report(1) on), with its history since 2026-10-09 and its own agent-instructions.md. Public since 2026-10-12. Published by copying a report to the homepage repo; a push here is public too, so drafts wait for review.

Performance Analysis and Improvement

Tracked in hazelgrove/hazel#2609 (performance challenges). Write-ups: the performance analysis series (local sources).

Performance PRs

Against #2609; the last three (#2606, #2603, #2490) are from before it.

PR # and titleBranch → baseStateCIReviewMergeUpdated
#2689 Test: statics analyzes each expression within a budgetci/statics-passes-dev → devdraft✓ 5 passedreview requiredconflicts2026-10-17
#2690 Test: a re-run beside a library with recursive members stays within its step budgetci/recursive-let-budget → devdraft✓ 5 passedreview requiredconflicts2026-10-21
#2691 Test: what the eval worker sends and gets back stays within a byte budgetci/byte-budgets → devdraft✓ 5 passedreview requiredconflicts2026-10-17
#2681 A value known to have a type is not walked again for itascriptions-has-type → devopen✓ 5 passedreview requiredconflicts2026-10-29
#2679 An ascription pushed through a value gives the value back when it already has the typeascriptions-copy-on-change → devmerged✓ 5 passedapprovedunknown2026-10-19
#2678 CI fails when an evaluation does more work than its budgetci-perf-budgets → devmerged✓ 5 passedapprovedunknown2026-10-29
#2675 Incremental evaluation reuses expressions around a recursive letrecursive-let-reuse → devopen✓ 5 passedreview requiredmergeable2026-10-29
#2673 Incremental evaluation recognizes an unchanged expression by its Merkle hashreuse-check-merkle-hash → devopen✓ 5 passedreview requiredconflicts2026-10-20
#2661 Types get a Merkle hash; the evaluator asks is_consistent once per pairtyp-hash-consistent → devopen✓ 6 passedreview requiredmergeable2026-11-19
#2651 Statics: a module binding analyzes its definition once, not twicestatics-module-def-once → devclosed✓ 6 passedreview requiredunknown2026-11-19
#2652 Eval worker: start it at load, and do not time out a reply that is queuedeval-worker-start-at-load → devmerged✓ 6 passedapprovedunknown2026-11-19
#2614 Load text about 2.5× faster: whole tokens, one re-groutparser-perf → devopen✓ 5 passedreview requiredconflicts2026-09-29
#2610 Parse the load fallback with the segmented parser, projectors keptparse-fallback-segmented → devopen✓ 5 passedreview requiredconflicts2026-10-20
#2671 MapPiece keeps unchanged pieces as the same objectsmappiece-keep-identity → devopen✓ 5 passedreview requiredconflicts2026-10-10
#2672 Measuring the font scrolls to the caret only if it was in viewfont-metrics-keep-scroll → devmerged✓ 6 passedapprovedunknown2026-10-29
#2608 Leave the source's whitespace and comments out of elaborationselab-no-secondary → devdraft✓ 5 passed⚠️ changes requestedmergeable2026-11-19
#2606 Keep the incremental cache in the eval workereval-worker-held-cache → devopen✓ 6 passed⚠️ changes requestedconflicts2026-11-19
#2603 Statics: a let is analyzed once unless it refers to itself, plus three smaller speedupsdev-statics-perf → devopen✓ 6 passedreview requiredconflicts2026-11-19
#2490 SPIKE: compile the Hazel evaluator with wasm_of_ocaml and benchmark itwasm-eval-bench-spike → devclosed✓ 7 passedreview requiredconflicts2026-11-19
#2793 Fewer trampoline bounces: half the evaluator's steps on the PerfBudgets programperf/fewer-trampoline-bounces → devopen✓ 6 passedreview requiredconflicts2026-11-03

The integration branches also carry these fixes:

PR # and titleBranch → baseStateCIReviewMergeUpdated
#2635 Livelits × modular editors: merge #2469 into the livelits branchintegration/livelits-modular-editors → integration/livelits-splicerefs-fulldraft✓ 10 passedno review yetmergeable2026-11-05
#2597 User-Defined Livelits, as in PLDI '21, and beyond.integration/livelits-splicerefs-full → integration/livelits-splicerefsdraft✗ 1 failing: Deck in Firefox (failure); ✓ 5 passedno review yetmergeable2026-11-19

Full Backlog (All Tickets)

All our open tickets: important and not done; the few we mean to do next are in the work queue. Numbered in our own sequence from #1; a number is never reused. A closed ticket moves to the closed tickets, with how it ended.

show:
TicketAreaTextFrom
^ticket(16)CI
🪷 blocked on Matthew
meeting 2026-10-21
hazel
Ask the maintainers to require the test jobs for merging into dev: today no check is required, so a red budget is a signal, not a gate.^report(6)
^ticket(17)performance, CI
🪷 blocked on Matthew
hazel
performance
A timing report that informs and doesn't fail: base and head on one runner, repeated, phase by phase, perhaps from #2161's harness (David's call).^report(6)
^ticket(18)performance
🪷 blocked on Matthew
meeting 2026-10-21
meeting 2026-11-05
hazel
performance
Option B from ^report(5): evaluate each livelit's view in the worker, keep the last Html sent per livelit, and post patches to it, so view evaluation leaves the main thread. Needs the view runner (ViewCmdRunner) in the worker, a patch format, an element on the page that owns each livelit's DOM and applies patches, and handlers dispatched by id. Keep the page's own path for an interaction's immediate redraw, or every drag waits a round trip. Its condition is now met (2026-10-12, see ^ticket(10)): evaluating the view is about 69% of the main thread in a woods figure move, and C would save about 2%. Weigh it against making the view itself cheaper first (^ticket(1), ^ticket(2)). PROTOTYPED 2026-10-14 (local branches, nothing pushed; work notes http://matthewhammer.org/hazel-work-notes/work-notes/2026/10/14/2026-10-14T2120-0600.html): MvuShape and ViewCmdRunner moved to the language library (61d031fd93, no change in behavior); the worker runs view commands to Html, reusing an unchanged view per projector (fast_equal), and whole programs fold their views in too (experiments on experiment/2635-views-in-worker-all, ede920b07e). Full Body: the main thread about 540 ms (UX mode) / 220 ms (whole program) less per change, the redraw no later; Kids' Choice: release about 45 ms later (144 → 187–196 ms). Waits for Matthew's design calls: which livelits' views move (all, or the costly ones), and the on-screen ids in the request. 2026-10-15T18:52: tagged 🪷 blocked on Matthew: its next step is his call (see above).^report(5)
^ticket(102)hazel
🪷 blocked on Matthew
meeting 2026-10-21
hazel
Reply to Alexander on the deep links PR (#2583; Matthew writes the reply by hand). Alexander (7h3kk1d) replied today at 11:00 to our comment of 10-14 linking the plan page; he couldn't comment on that page, so he left his notes on the PR. His two points on the plan's sketch: (1) name `target`'s constructors `Documentation` and `Scratchpad`, not `Slide` and `Share`, and use records instead of tuples where there are several fields (`Scratchpad({name, share})`); (2) the `request` record allows a `position` without a `target`: he'd like a type that rules it out. Fact for the reply: on the branch as pushed (09-22), `?caret=` without `?slide=` puts the caret in whatever opens (the reader's last slide or scratchpad), so such a link depends on the reader's saved state. That supports nesting the position inside the place, e.g. `{place: option({target, position: option(position)}), panel: option(panel_request)}`. A panel-only link stays meaningful. Then revise the plan, and later the branch, to match whatever is agreed. He liked the rest. Also worth an answer: where he should comment on plans next time (the PR itself, or the PR description). 2026-10-15T15:59: tagged 🪷 blocked on Matthew (his reply, written by hand), at the end of the queue.Matthew, 2026-10-15
^ticket(160)dress up, performance, touch, testing
🪷 blocked on Matthew
dress-up
performance
Dress Up: audit every place with the on-screen controller: walk across each, at 60 frames a second. Matthew, 2026-10-16, to follow ^ticket(158) (the living room, the empty room and the imagination with the on-screen controls): for each of the 24 places (and the castle's room styles and the tree house's rooms), hold the on-screen ◀ ▶ (and ▲ ▼) to walk the friend across it, measure frames a second, and fix or make optional (⚙️ Advanced, off by default) whatever keeps one under 60. The gate's coverage grows by what this finds (^du_report(1), What next).Matthew, 2026-10-16, in chat
^ticket(166)dress up, fumola, infrastructure
🪷 blocked on Matthew
dress-up
Replace the "public whiteboard" (a Riseup Etherpad) with a Fumola canister we control more tightly. Matthew, 2026-10-16: on the black laptop he does not have easy access to Claude or any of his usual accounts, most times, by design. For now Dress Up's 🧪 this computer's speed links https://pad.riseup.net/p/LgBrn8VRzEJxrsmMW82I to paste its line into (0.0.83), and Claude reads it back from /export/txt; it bridges the gap until there is a better solution, long term. The pad is public (anyone with the address can read and write; the address is in the game's public source) and is deleted after 60 days with no edits. Matthew, 2026-10-16 (later), planning ^du_report(2): we'd prefer a canister to gather telemetric data, in a way that preserves privacy, and people continue to opt in.Matthew, 2026-10-16, in chat
^ticket(259)dress up, designer, components
later: after more script support
dress-up
Dress Up: a component designer, along the lines of the world designer, for the objects baked into each place: adjust each one's default position and every setting of how it is drawn that its place in the scene doesn't fix (scale, layering, and so on). Matthew: "we want to think about a feature built on this -- for adjusting the default position and settings of each of those objects, including every rendering param that isn't fixed by its position alone in the scene (for scale, or layering, etc)." "that would be another feature along the lines of the existing world designer interface, but geared towards designing re-usable components -- let's mint a ticket and put 'blocked on matthew' on it." Builds on ^ticket(258) (🔬 🧩: each place's objects boxed and named, its plants by the procedure that drew them). Blocked on Matthew: his design of it first. Amended 16:30 10-24, Matthew: "we want to still do this, but not yet. more script support (especially connecting the new, super-high level language for stories with the ones for game engine customization)". So it waits on, and should be built with: the 🎬 story scripts (^ticket(440)) and 🚶 paths (^ticket(599)), the director's guide ^du_report(18); the three-way script boxes, JS / Hazel / Fumola (^ticket(566)), with ⚙️ script editor settings (^ticket(580)) and the 🪵 event log (^ticket(592)); ^du_report(17); and ^report(30) on game scripts in Hazel. The designer's settings for a placed thing would then be one more thing a script can set.Matthew, 2026-10-17, in chat (building on ^ticket(258))
^ticket(276)dress up, archives
today (2026-10-25)
🪷 blocked on Matthew
dress-up
Archive runs without the laptop: the archive workflow commits and tags its run itself, with a token that can write to the two archives (dress-up-pictures, dress-up-music); the laptop's step (a 140 MB download, tools/add_run.sh) goes away. Making the token is Matthew's.^du_report(4), What next, step 3 (Matthew, 2026-10-18 09:30: "all four next steps look good -- let's enqueue them in that order") Then, 2026-10-25 08:06: "okay, after get this report draft published, let's elevate the ticket we had for the missing required token."
^ticket(315)fumola.org, light mode
🪷 blocked on Matthew
fumola.org: with ☀️ light chosen in the nav bar, the page stays dark. Matthew, with a screenshot at 14:32 (kept locally, ~/du-shots/ticket-315/fumola-light-mode.webp): "light mode bug". The nav bar is light, its "☀️ light" chip pressed, but fumola.org's page is black with light text: the page's own colours do not follow the nav bar's theme choice (likely only prefers-color-scheme).Matthew, 2026-10-18, in chat
^ticket(388)hazel, the syntax explainer (RHS)
🪷 blocked on Matthew
meeting 2026-10-21
hazel
Why does the right-hand side that explains each syntax form not show its example syntax as read-only tiles? Matthew: "related, but separate ticket, and new -- why is the RHS that explains each syntax form not showing example syntax with read-only tiles as well? Cyrus wondered that in Friday's meeting, and it predates my being on the team."Matthew, 2026-10-19 09:14, in chat, from his Friday meeting with Cyrus (2026-10-16)
^ticket(389)hazel, meetings (Cyrus, Wed 2026-10-21)
meeting 2026-10-21
🪷 blocked on Matthew
hazel
Meeting with Cyrus, Wednesday 2026-10-21: the tickets to bring. The agenda: ^report(20), public and kept up to date until the meeting (generated from 020/data/agenda.json; republished with tools/publish_agenda.py). Matthew: "My next meeting with Cyrus is Wed -- let's make a ticket that links to all related tickets for that meeting please. For now, it's just a bulleted list based on what you know now."
  • ^ticket(385): why CI fails on the livelits x modular editing branch (#2635, into ...full): Cyrus's question on Friday; ANSWERED 10-19 09:31: it is the merge (Modules II on the livelits branch meeting #2469's per-member DefStatics; one table test input), neither branch broken: ^report(18), published 2026-10-19 with a dated update (each cause now has a fix).
  • ^ticket(386): the type syntax expansion for types in Gamma too, as for the result type (long types on one line): ideas.
  • ^ticket(387): livelits' model sub-editors as read-only tiles, with tiles' selection UX (right click and the rest); it follows his 10-03 call, the revealed model read-only and selectable.
  • ^ticket(388): why the right-hand side that explains each syntax form shows no example syntax as read-only tiles (older than Matthew's time on the team).
  • ^ticket(398): do the performance PRs (against #2609) keep typing and evaluation correct? Cyrus wants more analysis and coverage of functional correctness: an argument for each PR in a report, and more correctness tests (a new PR to dev, and tests on each of our PRs). Deadline: the morning of 2026-10-20 (met: ^report(21) drafted 13:16 10-19; it waits on Matthew's reading).
  • ^report(19), published 10-19 (^ticket(393)): the Hazel UI draws syntax as tiles on 22 of 39 surfaces, but only 6 take a caret.
  • Open and waiting on Matthew, in case they come up: ^ticket(18) (option B: livelit views evaluated in the worker), ^ticket(102) (the reply to Alexander on #2583), ^ticket(16) (asking the maintainers to require the test jobs for merging into dev).
More to come from Matthew.
Matthew, 2026-10-19 09:15, in chat
^ticket(395)hazel, types, right-click to expand a type
🪷 blocked on Matthew
hazel
Explore: every type offers "right-click, expand its definition, show it in a box above it". Matthew: "Mint and enqueue a related ticket to explore an idea --- every type offers a 'right-click and expand the def and show it in a box above it,' feature, based on this expansion feature we are doing now." Builds on ^ticket(394) (aliases expand), ^ticket(386) (Gamma's unfold, #2698) and #2676 (the full view); the context menu is ContextMenu.re. An exploration: where types appear (code, inspector, Gamma, explainer), what the box shows, how it closes.Matthew, 2026-10-19 10:18, in chat ("mint and enqueue")
^ticket(397)operations, the work laptop: its battery
🪷 blocked on Matthew
operations
Fix the work laptop's battery, so it stops crashing. Matthew: "fix my framework laptop to reconnect the battery, replace it, etc -- so we can avoid these crashes in the future. obviously that's blocked on Matthew." The Framework Laptop 13 (13th Gen Intel) has reported ACPI: battery: Slot [BAT1] (battery absent) on every boot since 2026-08-18. It runs on the adapter alone, and the crash log has 40 crashes since then, at idle and under load, none leaving a reason in the journal. The steps are Matthew's, since they need his hands: reseat the battery's connector; if the kernel still sees no battery, replace the battery; and maybe use a stronger USB-C adapter and cable. Then Claude checks: journalctl -b 0 -k -g BAT1 shows the battery present, upower -i shows it charging, and the hardware clock keeps time with the adapter out. After that, the crash log's evidence section gets updated, and we watch whether the crashes stop.Matthew, 2026-10-19 10:33, in chat, after the 10:26 crash (the 40th since 08-18)
^ticket(398)hazel, performance, correctness: the #2609 PRs
deadline: morning of 2026-10-20 (ideally)
🪷 blocked on Matthew
meeting 2026-10-21
hazel
performance
Do the performance PRs keep typing and evaluation correct? An argument for each one, and the tests to back it. Matthew: "Cyrus wanted more analysis and coverage of functional correctness -- do our performance PRs (the ones from issue #2609) compromise any sense of correctness of typing or evaluation?" For the meeting with Cyrus, ^ticket(389). Two parts:
  • The arguments, in a report. Go through each PR against #2609 (the dashboard's Performance list) and check whether it changes what the type checker or the evaluator computes. For each one, write down why it is sound: what it caches, skips or shares, and why the result is the same as without it (the key it is looked up by, what invalidates it, what it assumes). Compile all of them in a new ^report in the performance analysis series, with any PR whose argument does not hold called out.
  • The tests. "add a new PR to dev that does even more correctness tests, if they aren't complete enough as is. -- ditto for our PRs -- add coverage of the features that they add." So: a new PR to dev with correctness tests where today's are thin (for example, typing and evaluation results with an optimization on and off, compared). And on each of our perf PRs, tests that cover what that PR adds.
Matthew, 2026-10-19 10:37, in chat, from Cyrus (for ^ticket(389), the 2026-10-21 meeting)
^ticket(401)hazel, livelits, #2635: pictures full screen
🪷 blocked on Matthew
hazel
Full screen for a livelit's picture: the final scene, and any other SVG a livelit draws. Matthew: "a way to full-screen a SVG image like the final scene, but in general, any of them." On #2635 only, for now (livelits × modular editors). His screenshot: Documentation > Livelit Playground > Scenes, the drawn livelit (type Picture) showing the haunted-hut scene inline at about a third of the pane's width. So: a control on any livelit view that draws an SVG (or on the view itself) that shows it full screen, scaled to fit, with a way back (Esc), and the same for every such view, not only Scenes.Matthew, 2026-10-19 11:10, in chat, with a screenshot of #2635's Scenes slide
^ticket(408)hazel, Hazel Weekly: how its agent credits the team
low priority
🪷 blocked on Matthew
hazel
A report on the Hazel Weekly agent: how it credits each team member's contributions, with a list of corrections where it is plainly wrong. Matthew, "separate, and even lower priority": "maybe you could also do a report --- a hazel 'agent' performance report, cross-checking how it refers to different team member's contributions, and offering a list of corrections, if you find obvious mistakes." Even lower priority than ^ticket(407), whose reading of the issues it can share. A ^report(N) in our series (~/hazel-perf-report), drafted locally; published only on Matthew's word.Matthew, 2026-10-19 12:04, in chat
^ticket(411)hazel, correctness tests for the performance PRs (a PR to dev)
meeting 2026-10-21
🪷 blocked on Matthew
hazel
performance
A tests PR to dev that checks the performance PRs keep types and values the same, plus each PR's own missing tests. The second half of ^ticket(398); ^report(21)'s "What to add":
  1. turn the incremental-against-fresh property back on for completed results (#2457's stuck ones skipped), fixed seed, with recursive lets in the generator;
  2. a corpus comparison: every program in hazel-programs analyzed and evaluated with each optimization on and off, incrementally after an edit and from scratch (types, marks, elaborations ignoring ids, values, probes, test results);
  3. hash checks: equal hash implies equal term, for the type hash (#2661, #2681) and the term hash (#2673), plus a census over the corpus;
  4. a parser comparison: the load fallback against character-by-character typing at every split offset (finds #2610's case);
  5. budget tests that also assert results.
And on each of our PRs, the tests ^report(21) lists in its section.
split from ^ticket(398), 2026-10-19 13:16 (Matthew's ask there: "add a new PR to dev that does even more correctness tests ... ditto for our PRs")
^ticket(423)dashboard, hazel-work-notes: a weekly git gc
🪷 blocked on Matthew
hazel
dashboard
A weekly git gc of hazel-work-notes, from cron, holding the publish lock (^ticket(417)'s plan: "a weekly git gc keeps .git packed"; once by hand on 2026-10-19, .git 40 MB to 16 MB). The line, for Matthew to approve, as it changes his crontab: 17 4 * * 0 cd ~/hazel-work-notes && flock ~/localhost-index/.publish.lock git gc -q.^ticket(417)'s last step
^ticket(429)matthewhammer.org, its repository: the dashboard's history in it
🪷 blocked on Matthew
low priority
dashboard
The homepage's repository holds the dashboard's whole public history: how to keep it lean? Found in ^ticket(428): GitHub puts matthewhammer/matthewhammer.github.io at 764 MB (most of it the music's mp3s); the dashboard's folder, hazel/dashboard/, held ~111 MB of its packs after four days (121 commits on 10-18 alone, each rewriting both pages). Since 428 a page goes up only when it really changed, and the closed page goes by month, so the growth is much slower. For Matthew to choose:
  • leave it so;
  • publish the dashboard from a repository of its own (a project site under matthewhammer.org, so its addresses stay), and the homepage stops growing with it;
  • also rewrite the homepage's history without the dashboard's old versions (a force-push to his site: only on his word).
Claude, 2026-10-19 20:22, from ^ticket(428)'s measurements
^ticket(462)hazel, #2635: Fumola out, into its own PR
meeting 2026-10-21
🪷 blocked on Matthew
hazel
Separate the Fumola work from #2635 into its own PR, into #2635's branch. Matthew: "For the first PR (modular editing x livelits): separate the fumola work, including the 'cloud/canister storage' idea into a separate PR, which is set to merge into modular editing x livelits. It was a mistake/oversight/miscommunication that these were not kept separate: rationale --- meetings with Cyrus should only focus on livelits and modular editing, until the conversation has space for Fumola discussions --- it's distracting to have in there, and likely won't be merged into dev near the time that modular editing or livelits are (sooner); it's not clear if Fumola will ever be merged to dev; it may remain experimental forever. That's okay, and we should prepare for that situation now. Bring all PRs (all three I just mentioned) up to date with dev, and mergeable. CI green for all, of course." So: every Fumola part of #2635 (the Fumola tiles and VM, the ^fumola livelits, the cloud/canister storage idea, their slides and tests) leaves #2635 and goes into a new PR whose base is integration/livelits-modular-editors, mergeable into it; #2635 keeps livelits and modular editing only; both green.Matthew, 2026-10-20 07:38, in chat
^ticket(465)hazel, the meeting with Cyrus on 2026-10-21: the plan
meeting 2026-10-21
🪷 blocked on Matthew
hazel
After ^ticket(462) to ^ticket(464): review every open Hazel ticket blocked on Matthew, and summarize a work plan for the meeting with Cyrus tomorrow (2026-10-21). Matthew: "after you do this work, please review all hazel tickets that are open and blocked on me. Summarize a work plan, given that we meet with Cyrus tomorrow and we want to fill out the meeting notes with a polished set of PRs (ready to merge, when he chooses; tho likely not tomorrow) and answers about: functional correctness regressions --- how can we guard more in the future, within CI, against this, especially as we do performance PRs (the ones for issue 2609) and they change the behavior of Hazel to cache things and reused cache data." Builds on ^report(20) (the agenda; items 5 and 7) and ^report(21) (the performance PRs' correctness, a draft).Matthew, 2026-10-20 07:39, in chat
^ticket(468)hazel, Gamma: a type in full, on several lines
meeting 2026-10-21
🪷 blocked on Matthew
hazel
Offer the full view's "several lines" layout on each type in Γ, by right-click or on hover, with toggles on the configuration slide to try the designs. Matthew: "Let's offer this 'expand type into multiple lines' button (better name?) to each type in Gamma --- as a right click option, or a hover-over option? Can we have some toggles to play with that design in the configuration slide?" Γ's per-entry unfold is ^ticket(386)'s #2698 (a draft into #2676, toward dev), not on the livelits branches; the configuration slide is the Colors slide (hazel-programs/config/colors.hz), whose ^choice already picks the livelit reveal's glyph (`livelit-reveal`), on #2597 and #2635 only.Matthew, 2026-10-20 08:5x, in chat, after the full view's screenshot ("latest screenshot looks good")
^ticket(470)hazel, performance: opening each documentation slide, timed on GitHub
meeting 2026-10-21
🪷 blocked on Matthew
hazel
performance
Time opening every documentation slide on each PR, on GitHub's machines, say what dominates each one's cost, and keep tracking it with the performance PRs applied. Matthew: "timing on Github (not my machine): * time to open the documentation slides on each PR, including each livelit slide. * for each one, what is the dominate time cost? Or is it heavily mixed? * let's start tracking this (all with our performance PRs applied), and see if we can keep improving things, in terms of loading time." So: a CI job (no browser on the laptop) that opens each slide of the documentation and livelit decks on each of our PRs (#2597, #2635, and the #2609 performance PRs, stacked), records the time to a settled view, and splits it by phase (parse, statics, elaboration, evaluation, measure and draw); a series of these runs over time, in the reports series.Matthew, 2026-10-20 09:3x, in chat
^ticket(481)hazel, a draft PR: Hazel as a JS library
meeting 2026-10-21
🪷 blocked on Matthew
hazel
A draft PR to hazel exposing Hazel as a JS library, to analyze and run programs and to mount editor panels in other pages, used by Dress Up's Scripting panel (^ticket(482)). Matthew: "let's do this MUDU integration as a PR for MUDU, not hazel. On the hazel side, let's draft a PR (and use it) for exposing Hazel as a JS library we can use this way." First: compile a program once and call its functions from JS with JS values, results back as JS values (rules return command trees the game interprets); then an editor to mount.Matthew, 2026-10-20 11:4x, in chat, after ^ticket(480)
^ticket(484)hazel, #2613 (Colors): its review
🪷 blocked on Matthew
hazel
#2613's review (7h3kk1d, 2026-10-19, changes requested): (1) cursor-inspector.css:263 draws the label header's text on a band of its own color (--surface-label = --token-label); the reviewer's suggestion drops the line: apply it. (2) style.css:367 and :434 give the probe stack's focused breadcrumb a light green pill where --G5 was never defined: @disconcision's call, keep the pill or drop the two background lines. Then dev merged in (no conflicts), CI, re-request review.from ^ticket(483)'s status, 2026-10-20
^ticket(485)hazel, #2583 (Deep links): the agreed refactor, and dev
🪷 blocked on Matthew
hazel
#2583: the refactor Matthew planned on 10-15, as the reviewer shaped it, then dev merged in. One DeepLink request type, parsing kept apart from applying (testable without a browser), handled as an action in Main.re, slide_name off Globals (a CopyDeepLink action), panel names in one switch in Sidebar.re; the reviewer's 10-15 shape: constructors Documentation and Scratchpad (not Slide and Share), records for several fields, and a construction where a position needs a target. Then dev (293 commits; conflicts in Editors.re and Globals.re), CI, re-request review.from ^ticket(483)'s status, 2026-10-20
^ticket(508)operations, the Claude desktop app: the session turns cloud-only
operations
A record: this session fails in a funny way, becoming a very useless cloud-based session, then coming back with its desktop abilities. Twice so far. Matthew: "Log in our records -- you fail in a funny way where you become a very useless \"cloud-based\" session, and then you come back with desktop abilities. It happened last night." "You're wasting a lot of my time by doing that." "It happened just now." (1) 2026-10-19 about 19:10: after a desktop app update, a cloud-only session with none of our local context; the laptop did not crash. (2) 2026-10-20 about 22:10: right after the archive-494c push went through (its shell killed, exit 137), the session ended; back at 22:12 on "Keep going." (special minutes, 2 min), same boot (up since 15:27). Each time the background watchers were lost.Matthew, 2026-10-20 22:13, in chat, after it happened again
^ticket(521)dress up, panels: knolling the whole panel system again; ^du_report(16) against ^du_report(5), the whitespace before and after, a PR
for Dress Up time, after Hazel time
🪷 blocked on Matthew
dress-up
Knolling the entire panel system of Messed Up Dress Up again (or for the first time where it never was), with a new report comparing it with the last audit, ^du_report(5), and a PR, to be merged, that reduces the whitespace between panels. Matthew: "re-Knolling (or Knowlling for the first time) -- the entire panel system of MUDU. Please do a new report, comparing the last audit (see report https://matthewhammer.org/kids-choice-games/dress-up/reports/005/) --- and notice how the panels have expanded, and many still lack knowlling, esp non-FS. But even some FS panels could get some help. The prior effort created panels that leave a lot of \"whitespace\" between them in common zoom levels and screen sizes. Do an audit of that for the new report, and try to reduce that (before vs after) with a PR that we plan to merge with improvements." So: audit every panel (full-screen and not) against ^du_report(5)'s; measure the whitespace between panels at common zoom levels and screen sizes, before and after; the improvements as a PR (not a release), the report as ^du_report(16).Matthew, 2026-10-21 14:00, in chat ("mint and enqueue (dress-up)")
^ticket(533)hazel, performance: what a call into Hazel costs (^report(25), from Dress Up's ^ticket(531))
🪷 blocked on Matthew
hazel
dress-up
performance
Why a Hazel rule called from the game costs ~40 ms on a 16x16 world map (2 ms at 3x3, 0.003 ms in JS): analysis, and a new report. Matthew: "why is Hazel so slow here for 16 x 16 map? do more analysis please, and draft a new report."Matthew, in chat
^ticket(534)operations: move our work to the spare laptop from Cyrus, so this one can be fixed
🪷 blocked on Matthew
blocked on Cyrus
operations
Do our work on a spare laptop from Cyrus, one without power problems, while this one is fixed. Matthew: "Cyrus will be sending me a spare laptop without any power issues; when that arrives -- maybe a couple of weeks? -- I can fix this one while that one does our work and this protocol." And: "mint and enqueue -- blocked on Cyrus/Matthew -- use replacement laptop for this work". This laptop has crashed 45 times since 2026-08-18 (the crash log), and its kernel sees no battery (^ticket(397)). The move covers the worktrees and branches in hand, the dashboard (~/localhost-index, its cron publish.py, ~/hazel-work-notes), the local servers on the ports the dashboard links, the reports and Dress Up checkouts, and Claude's memory of this project. Then this laptop's battery repair (^ticket(397)) can go ahead without stopping the work.Matthew, 2026-10-22 07:01, in chat, after crash 45 (06:20 that morning)
^ticket(537)hazel, JS library (#2711, #2719): a review of it, in ^report(25), as this report uses it
🪷 blocked on Matthew
hazel
Review Hazel's JS library through ^report(25): each way the report uses it (Hazel.run in node for the timings; a function back from Hazel called from JS; the embed frame for read-only tiles; the library loaded in a page for the run boxes), what works, what was awkward, what is missing. A section of the report, for Matthew's review of the library, with the integration points named (docs/hazel-as-a-js-library.md).Matthew, 2026-10-22 09:26, in chat: "Let's use it to help me really review our JS library for Hazel, and how well it integrates when required or wanted." "Let's push that library forward where needed." "mint and enqueue tickets if you think of any you want."
^ticket(538)hazel, JS library: tiles in a page that show reliably (a read-only mount without a frame, or a frame that draws off screen)
🪷 blocked on Matthew
hazel
Make the read-only tiles dependable in a page. ^report(25)'s tile boxes use #2719's embed frame (protocol 1): a whole Hazel app per frame, which says ready, but draws, measures and reports status only while it can render (no tiles in a hidden or background tab: height 0, no status). Options: Hazel.mountEditor (the library's planned next feature, #2711) for a read-only view in the page's own DOM; or the frame applying a program and reporting status while off screen (^ticket(520)'s question 1).Matthew, 2026-10-22 09:26, in chat: "Let's use it to help me really review our JS library for Hazel, and how well it integrates when required or wanted." "Let's push that library forward where needed." "mint and enqueue tickets if you think of any you want."
^ticket(539)hazel, JS library: the call boundary's floor (of_js to final values, no re-step; a cheaper Id.mk)
hazel
Take the call boundary out of N. ^report(25): every call converts the JS argument to unevaluated syntax with a fresh UUID per node, re-steps it into the value it was, and checks it against the parameter's type: about 31 us per cell, the floor every rule pays (8.5 ms at 16x16). Fixes 1 and 3 of the report: of_js producing final values (or binding the argument in the environment), and an Id.mk without Uuidm's byte copy under jsoo. Measure with the report's driver; the depth-limited #2681 memo (^ticket(535)) leaves this floor where it was.Matthew, 2026-10-22 09:26, in chat: "Let's use it to help me really review our JS library for Hazel, and how well it integrates when required or wanted." "Let's push that library forward where needed." "mint and enqueue tickets if you think of any you want."
^ticket(541)hazel, #2681: is #2661 a real dependency, and should #2681's base be #2661's branch? (Alexander's suggestion)
🪷 blocked on Matthew
hazel
Double-check that #2681 depends on #2661, and whether to retarget #2681's base to #2661's branch (typ-hash-consistent). What in #2681's own commit uses #2661 (TypHash), what retargeting would show reviewers (the diff against #2661's branch: #2679 is in dev now), whether #2661's branch is up to date with dev, and the steps either way. Written as a draft report to share with Alexander.Matthew, 2026-10-22 10:19, in chat, forwarding Alexander: "Looks like it needs https://github.com/hazelgrove/hazel/pull/2661 as a dependency. Might be worth just changing the parent branch of the pr to that branch"; Matthew to him: "It seems like a real dep, but I'll double check -- thanks!"; to Claude: "Mint and enqueue that double-check please, and make a report draft to share."
^ticket(545)hazel × fumola: why the same rule runs 2.4x to 10x faster in Fumola: steps, cost per step, the boundary, wasm vs js (a report, work in progress)
🪷 blocked on Matthew
hazel
Attribute the Hazel/Fumola gap. For the same programs (^report(27)'s World rule: passed, held, neighbours; plus small kernels), split each system's time into steps taken, cost per step and the call boundary; step counts by kind (Hazel's trial/r25-stats, Fumola's counts), profiles of each, and, where native builds exist, native against wasm and js, to separate the compilation target from the evaluator's design.Matthew, 2026-10-22 14:24, in chat, on ^report(27)'s Figure 1: "seems to say that Hazel and Fumola are less than 3x apart in this situation. How would you attribute the difference in performance? Is it Wasm vs JS -- or more than that? Both use a small-step evaluation system, for a language with purely-functional, higher order data. Let's draft a report WIP --- looking more into the contrast and how it shows up with actual analysis of each system, while running the same programs."
^ticket(547)hazel js library: keep closures whole across the boundary (a held value costs O(size) per call from JS)
hazel
Hand JS the closure, not its finished form. Evaluator.evaluate finishes every result with Substitution.in_exp(env) |> Exp.replace_all_ids, so a function the library returns has its environment written into its body: a held list becomes a literal, re-evaluated element by element at every call (n+8 passes from JS, 27 from inside Hazel, at n = 100 to 3,000; ^report(29) #re-walk). Return the evaluator's raw final value for functions (to_js's Fun/Closure case), stacked on ^ticket(539)'s argument binding, on a trial branch; measure h_ref and ^report(27)'s held World rule again; they should go flat. Unblocks ^ticket(540)'s tree map. How, in order of preference: (a) a library-only evaluate that skips finish for values handed back: Evaluator.evaluate gains ~finish=false (or an evaluate_raw), and to_js works on the raw final value: data converted as now, a Fun/Closure/FixF kept as the evaluator left it, environment and all, for function_of to apply; (b) if raw values carry forms to_js cannot read, finish only the data and keep closures closed (a finish that stops at Closure). Also drops Exp.replace_all_ids' walk over every returned value. Measure: ^report(29)'s h_ref and variants (passes a call flat in n), ^report(27)'s held World rule, and the library's tests.Found under ^ticket(545), 2026-10-22 14:52; Matthew had asked: "mint and enqueue tickets if you think of any you want" (for the library work, ^report(25)). Matthew, 2026-10-22 14:54, in chat, after ^report(29)'s finding: "mint and enqueue -- your best ideas for what to try next to fix this asymptotic issue with the JS library" (then AFK).
^ticket(548)hazel evaluator: push a type through a list without minting an id per element (list loops are quadratic)
🪷 blocked on Matthew
meeting 2026-11-05
hazel
Ascriptions.re's list case wraps every element in a fresh Asc with a fresh id, then throws them all away when nothing changed. An accumulator loop meets [Int] every iteration, so building and summing 3,000 numbers costs 4.6 s (25 ms in Fumola); 60% of the time is inside the push, ids included (^report(29) #re-type). Check before wrapping (an Int that is an Int needs nothing) and mint ids only for parts that change; measure sumbuild and mapinc again on a trial branch: they should become linear.Found under ^ticket(545), 2026-10-22 14:52; Matthew had asked: "mint and enqueue tickets if you think of any you want" (for the library work, ^report(25)).
^ticket(549)fumola wasm: an answer over ~1,000 deep crashes the instance (recursive JSON)
🪷 blocked on Matthew
A deep answer overflows wasm's stack. fumola_eval_top of build(2000, null) (a list of option pairs) traps with "memory access out of bounds" while turning the answer into JSON, which recurses; holding the same list in the instance is fine. Make the answer's serialization iterative (or depth-limited with a clear error), with a test at depth 100,000. For Adapton/fumola; file the issue after Matthew's OK (^report(29) #fumola-step).Found under ^ticket(545), 2026-10-22 14:52; Matthew had asked: "mint and enqueue tickets if you think of any you want" (for the library work, ^report(25)). Then Matthew, 2026-10-22 16:11: "Mint a ticket for this step: Hazel reports, ^report(29), What next, step 4: 'Fumola's deep answers'. http://matthewhammer.org/hazel/reports/029/#step-4" (this ticket is that step: attached here rather than minted twice).
^ticket(550)hazel evaluator: a term already known to be a value evaluates in O(1) (a value memo)
🪷 blocked on Matthew
hazel
Make re-evaluating a value free, wherever it comes from. Today a list literal whose elements are all values still costs a pass per element through all five stages (^report(29) #re-walk), and a substituted closure, the stepper's substitution mode and literal-heavy programs all pay it. Remember, by physical identity (Util.IdentityTable, as #2681's has_type memo does), every term the evaluator has found final; on a request to evaluate a term already in the table, return it at once, before the stages. Needs ids left alone on values (replace_all_ids makes new objects; ^ticket(547) drops it on the library path). Measure: h_ref from JS with ^ticket(547) off and on, and the evaluator's tests for probe and stepper samples, which must not change.Matthew, 2026-10-22 14:54, in chat, after ^report(29)'s finding: "mint and enqueue -- your best ideas for what to try next to fix this asymptotic issue with the JS library" (then AFK).
^ticket(551)hazel js library: handles, so a big JS value crosses once (Hazel.value(x) and an identity cache)
hazel
Make passing the world O(1) a call, not just holding it. ^report(27)'s passed map costs Hazel 80 ms a call at 64x64 just to convert from JS (of_js), every call, though the map rarely changes. Two layers: (1) Hazel.value(x) converts once and returns an opaque handle; a call given a handle binds the stored Hazel value in its environment by reference (as ^ticket(539) binds arguments), no conversion; (2) an identity cache in of_js (a WeakMap from a frozen JS object or array to its Hazel value), so the game, by freezing its world when it changes, gets the same without new API. Measure: ^report(27)'s passed World rule, 3x3 to 64x64, should drop to the walk alone; with ^ticket(540)'s tree, to O(log N).Matthew, 2026-10-22 14:54, in chat, after ^report(29)'s finding: "mint and enqueue -- your best ideas for what to try next to fix this asymptotic issue with the JS library" (then AFK).
^ticket(552)hazel js library: a complexity test, so a call's cost stays independent of what it holds
hazel
Guard the boundary's asymptotics in CI. A library test that calls a returned function holding a list of 100 and of 10,000 and asserts the evaluator's passes a call are equal (a pass counter in the library, like trial/r25-stats's Hazel.stepCounts, kept as a cheap debug hook), and the same for an argument passed by handle (^ticket(551)). Counts, not times: deterministic on any runner. Lands with ^ticket(547).Matthew, 2026-10-22 14:54, in chat, after ^report(29)'s finding: "mint and enqueue -- your best ideas for what to try next to fix this asymptotic issue with the JS library" (then AFK).
^ticket(553)hazel: a map for Dress Up's rules, and the World rule timed with it (^report(27) What next, step 2)
long run for tonight (2026-10-22)
🪷 blocked on Matthew
hazel
dress-up
A map for Hazel's rules, and the World rule timed with it. ^report(27)'s step 2. What is already in hand: ^ticket(540)'s balanced tree (tree.hz), held in a closure, answers a World move in about 1.2-1.7 ms at every size from 8x8 to 64x64 once ^ticket(547) keeps closures whole (trial/r25-closures; ^report(29) #fixes). This ticket makes it the rules' map and measures it as ^report(27) did: (1) a map module in Common (a balanced tree keyed by (col, row): build from a list, lookup, insert/update), written in the game's Hazel style and knolled; (2) the World rule using it, the world held and rebuilt when its cells change, in a trial of the game's rule texts; (3) the tree's set-up made fast: today it takes seconds at 64x64, from the list re-typing ^ticket(548) fixes, so measure on a branch with 547 + 548 together (and 551's handles for the passed variant); (4) timed 3x3 to 64x64 beside ^report(27)'s lines (Hazel best passed/held/neighbours, Fumola passed/held list/HashMap), one more line in its Figure 1 and in ^report(29)'s fixes; answers checked against the game's. Laptop rules: one niced node process at a time; builds on GitHub.Matthew, 2026-10-22 15:29, in chat: "mint and enqueue --- long run for tonight -- Mint a ticket for this step: Hazel reports, ^report(27), What next, step 2: 'A map for Hazel's rules (above), and the World rule timed with it'. http://matthewhammer.org/hazel/reports/027/#step-2"
^ticket(554)ideation for Cyrus and Matthew: what to do about a Hazel step paying for the editor around it (^report(29))
blocked on Cyrus
meeting 2026-11-05
hazel
Respond to ^report(29)'s finding with ideas, for Cyrus and Matthew to weigh. A Hazel step costs about 15 Fumola steps, and most of it is the editor's machinery around the rule (five stages a term, trampolines, allocation), paid even where nothing is probed or reused. A short write-up of options, each with what it would cost the editor's features (probes, the stepper, results kept across edits), what it would save (estimated from ^report(29)'s profiles, then measured where cheap), and how much code it touches. Candidates to start from: a fast path for terms already final (skip all five stages for a value); an evaluator instance with the stages compiled out when a program has no probes and no previous run to reuse (the library's calls, a game's rules); values as their own type beside expressions, as Fumola's machine has, so a value is never visited again; fewer allocations per pass (the trampoline closure, the state record, a fresh id per result); stage work proportional to what is probed, not to what is evaluated. Ends in an ideation note (a report in the series, work in progress) and a short agenda item for Cyrus.Matthew, 2026-10-22 15:32, in chat: "Mint and enqueue -- ideation for Cyrus and Matthew -- respond to this finding: > A Hazel step pays for the editor around it. Every term the evaluator visits, values included, goes through five stages: state merging, a reuse check, probe sampling, recording effects, then the rule itself. On the loop, the rule is 7% of the time; garbage collection is 36%, and the stages and their trampolines 37%. Fumola's machine keeps values apart from syntax and steps a continuation: one match, no stages." https://matthewhammer.org/hazel/reports/029/
^ticket(558)hazel js library: keep closures whole across the library, for real: a branch off lib-floor and a PR (^report(29) What next, step 1)
hazel
^report(29)'s What next, step 1, beyond the trial. ^ticket(547) made and measured it on trial/r25-closures (stacked on the counter build): the library hands JS functions unfinished (Evaluator.evaluate_unfinished in run and in every call), a held list's reference from JS costs 9 passes at any size, and ^ticket(540)'s tree makes the World rule flat; CI green. This ticket turns it into a change the library can keep: (1) a branch off lib-floor (^ticket(539)'s argument binding, the same call path), the two closure commits without the counter build under them; (2) the size test rewritten without the trial-only Evaluator.step_counts: a cheap pass counter the library keeps as a debug hook (^ticket(552)'s idea), or a test on what the call is given (the closure's environment held, not written in); (3) GitHub's CI and the library's tests; (4) h_ref and the held World rule measured again on that build; (5) a PR stacked on lib-floor's, once Matthew says how ^ticket(539)'s lib-floor goes up (its PR on #2719 waits on him). Only Matthew's branches.Matthew, 2026-10-22 16:10, in chat: "mint and enqueue next -- Mint a ticket for this step: Hazel reports, ^report(29), What next, step 1: 'Keep closures whole across the library'. http://matthewhammer.org/hazel/reports/029/#step-1"
^ticket(559)hazel evaluator: a fast path for terms already final, skipping the five stages when nothing is probed or reused (^report(29) What next, step 5)
🪷 blocked on Matthew
meeting 2026-11-05
hazel
Skip the five stages for a term that is already final, when nothing is probed and nothing reused. ^report(29): every term the evaluator visits, values included, goes through eval_5 (state merge), eval_4 (reuse check), eval_3 (probe sample), eval_2/eval_1 (effects, state update, reuse map) before the rule; on a loop the rule is 7% of the time, garbage collection 36%, the stages and their trampolines 37%, and about a third of the passes on a loop are 'no step' visits to finals (5,002 of 14,009 for count(1000)). A fast path in evaluate: when the evaluation has no probe targets and no previous run to reuse (the library's calls, a game's rules: EvalInfo empty, IncrEval empty) and the term is an atom, a constructor, a closure or a list of finals, return it before the stages. Measure passes and ms on ^report(29)'s kernels (count, fib, h_walk, sumbuild) on a trial branch of the counter build; the evaluator's probe and stepper tests must not change. Related: ^ticket(550) (remember finals by identity, so a value is not visited again) and ^ticket(554) (the ideation for Cyrus and Matthew, of which this is the cheapest candidate).Matthew, 2026-10-22 16:11, in chat: "Mint a ticket for this step: Hazel reports, ^report(29), What next, step 5: 'The per-pass cost of the stages when nothing is probed and nothing reused: a fast path for terms that are already values would skip all five'. http://matthewhammer.org/hazel/reports/029/#step-5"
^ticket(570)hazel reports: two days of game scripts in Hazel for MUDU, since the 10-21 meeting: where we are against the goal
🪷 blocked on Matthew
hazel
A report on the last two days (since the end of the 10-21 meeting with Cyrus, ~11:00 Wednesday): the goal (Hazel as a game script system, MUDU first, as a general way to put Hazel into a JS/HTML app's behavior), what was built (the Scripting panel, the rules in Hazel, in Fumola), what was found (expressiveness: string_compare, Fumola's floats and deep answers; mostly performance: the call boundary, closures, list re-typing, handles, the fast path, the map), what is measured and where it stands against an FPS budget, what waits on whom, and the plan (the 3-way script boxes, equivalence tests, an overhead tool, speed standards). Draft first, published on Matthew's word.Matthew, 2026-10-23 06:57, in chat: "and mint and enqueue -- a report about the last 2 days -- with an idea of where we our with our goals of game scripts in hazel, for MUDU. i'm going AFK -- do your best."
^ticket(571)fumola semantics: fix the traps scripting the game found (^report(28) #traps): text != inverted, text patterns, Nat and Int, Float comparison, text escapes, tuple payloads
🪷 blocked on Matthew
today (2026-10-23)
Refine Fumola's semantics where scripting Dress Up tripped on it. ^report(28)'s Traps, each confirmed in Adapton/fumola's source and fixed on a branch with tests: (1) text != inverted (a bug: fix); (2) no text patterns (case "E" never matches: add text literals to patterns); (3) Nat and Int apart (Nat minus a larger Nat is an Int, Int + Nat a type error, only < mixes, Int(4) == Nat(4) false and different map keys: decide and implement a coherent numeric tower); (4) no escapes in text literals (add \\", \\\\, \\n); (5) no Float comparison (add <, <=, >, >= on Floats); (6) a tuple payload needs double parentheses (#GoSquare((c, r, back, #Done)): decide, document or sugar). Then the game's Fumola rules simplified to match (the draws as Floats, text patterns), the 3-way equivalence (^ticket(567)) kept green. And ^report(28) revised as a new WIP draft with the proposed fixes; published on Matthew's word.Matthew, 2026-10-23 07:11, in chat: "In looks like scripting the game with Fumola found a bunch of latent semantic issues with the core language --- https://matthewhammer.org/hazel/reports/028/#traps mint and enqueue a ticket, to happen today, refining Fumola semnatics to address each of these points. In some cases, it's a matter of adding cases not supported now (Float compare, text patterns, Nat + Int, as in the report under Traps now) --- in other cases, we need to fix errors, like the semantics of !=, if it's really inverted. As we work on the 3-chip system for JS vs Hazel vs Fumola, fixing these issues will be important. Let's revise report 28 with a new WIP draft, and our proposed fixes."
^ticket(572)hazel: new reviews on our open PRs, not yet integrated: a WIP report (one, with a subsection per PR) for Matthew's review
🪷 blocked on Matthew
asap (2026-10-23)
hazel
What reviewers have said on our open hazelgrove/hazel PRs that we have not yet acted on. For each of Matthew's open PRs: every review, review comment and comment (all three places), what each asks, whether a later commit answered it, and what is left to do; as one ^report with a subsection per PR, a local WIP draft for Matthew's review, published on his word.Matthew, 2026-10-23 11:29, in chat, during the recovery from crash 47: "mint and enqueue --- look at our open PRs on hazel, find new reviews we haven't integrated yet. Create a report for each one, or a combined one --- with subsections. As WIP draft for my review, asap after recovery."
^ticket(573)hazel reports: a 🔊 Listen button on every report, read by the reader's own browser voice
🪷 blocked on Matthew
hazel
Listen to a report. A 🔊 Listen button on every report in the series (added by a series tool, like add_theme.py, so every report gets it on its next build), read by the browser's own speech (speechSynthesis): play, pause, stop, the voice and speed chosen from what the reader's device has (remembered per site), reading the report's prose in order (headings, short answers, sections; skipping code, tables and the embedded data), the section being read highlighted and kept in view. Nothing sent anywhere, no account. Works on a Mac, an iPad, and in Chrome and Firefox on Linux (whatever voices they have). And (Matthew, 2026-10-23): a slider for the reading speed, and the report's reading time (the series line's "about N minutes to read") adjusted to it, as listening time at that speed.Matthew, 2026-10-23 11:37, in chat, after asking whether reports could be read aloud in the Claude Desktop app's voice (they cannot: that voice is the app's own, not a tool): "Yes: mint and enqueue a Listen button for the reports, using the browser's own voices."
^ticket(574)hazel modules: a module exports its sum types' constructors, so other modules can use them (a PR against the modules PR), the game's Common types as the examples
🪷 blocked on Matthew
hazel
Export a module's sum types. Today (js-library-embed's Hazel) module Common = { type Dir = + N + E + S + W; ... } keeps N in scope only inside Common: another module's N is "Constructor is not defined", Common.N "Label not found", and Common.Dir in a type parses only through the slow parser. Make a module's type definitions and their constructors usable from outside it (qualified, Common.N and Common.Dir, and/or as the module's members are), with tests, on the appropriate base (the modules PR, whichever carries module statics now); the PR description uses Dress Up's Common types as the examples (Dir, Side, Wiring, Out, Place, Room, Exit, and a room's rule using them).Matthew, 2026-10-23 11:45, in chat, after ^ticket(566) found a sum declared in module Common has its constructors in scope only inside Common: "mint and enqueue -- let's open a PR against the modules PR (whatever is appropriate) for exporting a sum type and using it, like we want to do with Common module types in our game scripts. Please use those as examples in the PR description."
^ticket(587)hazel: the JS library and embed expose modular editors' outline and navigation, for the game's ⛶ script view
🪷 blocked on Matthew
hazel
dress-up
The outline's data and navigation from Hazel, not rebuilt in the game. The game's ⛶ outline (left: each module's types with kinds and case counts, its functions with their types) is drawn by the game from its own regexes over the text and a probe trick for inferred types; a click on it guesses a row in the tiles. Modular editors (hazelgrove/hazel#2469, merged into the livelits branches as #2635) already know a program's modules, members, their types and positions. Expose that through Hazel's JS library and the embed protocol: (1) the data: per module, its type definitions (kind, cases) and members (name, inferred type, source range), from Hazel's statics; (2) navigation: the page asks the frame to reveal a member (caret on it, scrolled into view), and the frame tells the page where a goto-definition lands (^ticket(586)). Keep the game's styling of the outline; feed it Hazel's data. Decide where it lands: the js-library branch stack (#2711/#2719, embed-editable) and how much of #2469 it needs.Matthew, 2026-10-23 15:55, in chat: "for hazel --- maybe we need to re-architect the JS library to expose more of modular editors? I feel like I'm repeating that work here with you as we build out the LHS. I like our styling more, and the LHS looks perfect --- but can we get the data (and navigation, still broken, from LHS click to RHS nav) -- from modular editors in our JS library? mint and enqueue, and prioritize"
^ticket(588)hazel reports: ^report(32), the 📜 Scripting tab's speed run with JS, Fumola and Hazel as the default
🪷 blocked on Matthew
hazel
dress-up
performance
The Scripting tab, timed. For JS, Fumola and Hazel as every room's default: from a fresh load, the tab opened, the engine ready, each box's tiles ready (Hazel), then each script scrolled into view and each visited at max size; frame times and long tasks throughout; three rounds each, on GitHub (no test browsers on the laptop). Written up as ^report(32), a work-in-progress draft at http://localhost:8131/032/.Matthew, 2026-10-23 16:3x, in chat: "please do a report about loading the game with fumola as default, scrolling to check each script as a speed run; hazel, same speed run. WIP draft, for hazel report series." Then: "Oh, and JS as default too."
^ticket(589)fumola: expose the Core state's vm_defs (the definition outline) through the wasm API, for the game's ⛶ outline
🪷 blocked on Matthew
dress-up
Fumola's own outline, for the game. Fumola's Core keeps every definition in its Defs (crates/fumola_semantics/src/lib/vm_types.rs): a forest of contexts (Ctx: parent, fields by name), each Field a Def (Module, Actor, Func, Var, StaticValue) with its visibility and its source (where it is written). Expose it through the wasm API (crates/fumola_wasm: e.g. fumola_defs(id) -> JSON): per module, its members with kind, visibility, source range and, for a function, its parameters and their annotations (the Motoko-style types the game's rules now carry). The game's ⛶ outline then reads Fumola's definitions from Fumola, as ^ticket(587) has it read Hazel's from Hazel, instead of matching the text. Note: a type declaration is not kept in Defs (vm_def.rs treats it as nothing to run), so the outline's types need either a Def for them or the parse's own list. Repo: Adapton/fumola; the game pins a Fumola build (vendor/fumola/...). Precise parse information: each field's source is the parser's own position, so the API can give exact ranges (line and column, start and end) for every definition and its parts, not just a line found by matching: the game can select exactly the definition's text, and later the same ranges can feed error marks and goto definition in the Fumola boxes.Matthew, 2026-10-23 16:5x, in chat: "mint and enqueue a ticket for Fumola to expose the 'vm_defs' data of the Core state --- it has the kind of definition outline we need, but in its own format -- it could expose it to the Wasm API" Then: "that API could give very precise parse information"
^ticket(590)fumola: keep parse information for every AST form in the Core's definitions (types too), for ^ticket(589)'s API
🪷 blocked on Matthew
🌙 long run
dress-up
Every definition with its parse. Fumola's Defs (vm_types.rs) keeps Module, Actor, Func, Var and StaticValue fields, each with a source; a type declaration is kept nowhere (vm_def.rs, vm_step.rs and vm_big.rs treat Dec::Type as nothing to do). Survey every AST form a definition can take (type, let and var patterns, func and its parameters and result annotations, module, object and class members, use and import) for what parse information reaches the Core, and fill the gaps: a Def for a type (its name, its type, its source), and source ranges kept for parameters, annotations and patterns where the parser has them but drops them. Tests in fumola's own suite; the wasm API itself is ^ticket(589). Repo: Adapton/fumola; heavy builds on GitHub (bench/* branches), not the laptop.Matthew, 2026-10-23 17:0x, in chat: "if Fumola doesn't store enough parse info for any AST forms (types, etc) -- mint and enqueue as a long-run tonight to fix."
^ticket(591)hazel #2711 (Hazel as a JS library): unit tests seeded from the game's real scripts and their JS equivalence
🪷 blocked on Matthew
hazel
dress-up
The game's rules as the library's tests. Messed Up Dress Up's Hazel rules (the preamble's sums, Common, and the five rooms: trap room, tree room, placed levers, the world's ways, the castle) are checked against the game's own JS in CI (rules three ways: 32,761 cases for Hazel). Seed hazelgrove/hazel#2711's tests with them: the shipped program run through the library (runProgram / analyzeProgram), and, for a chosen set of events and globals per room (from the game's check, the cases that cover each rule's branches), each room's on_event answer compared with the commands the game's JS gives, held as expected values in the test. Also: the program at 8x Common hits Stack_overflow in the library's build (^report(32)): a test for a long module, marked as expected to fail until fixed, if that is how the suite records known failures.Matthew, 2026-10-23 17:3x, in chat: "mint and enqueue -- use our actual game scripts that we want to be equiv to seed more unit tests here, please https://github.com/hazelgrove/hazel/pull/2711"
^ticket(600)dress up reports: ^du_report(18), the 🎬 story scripts and 🚶 paths, a guide for the kids with examples, and a zine with more coloring pages
🪷 blocked on Matthew
dress-up
A director's guide for M and N. The 🎬 story box (^ticket(440)) and the 🚶 paths (^ticket(599)) explained in the style of ^du_report(17), with pictures from a run on GitHub, story ideas to try, a quick-reference card, and eight coloring pages; the zine in dress-up/manuals/. Stick arms: limbs were 1.1-wide lines in lines only; fixed in 0.0.424 (outlined limbs), and the coloring pages' own line-art copy keeps limb widths too.Matthew, 2026-10-24 ~09:05, in chat: "For 0.0.423 (2026-10-24) Let's do a new Zine and manual report --- for the kids to understand the story-script language, with examples, and more coloring pages. BTW -- last coloring pages look good, but why is the friend have stick arms? Seems like a bug? No need to fix that initial one, but fix going forward."
^ticket(602)operations, the Claude desktop app: after its window hung it stayed gone until a reboot (2026-10-24); reinstalling did not help
🪷 blocked on Matthew
operations
Both: find out why the app would not come back without a reboot, and track it so next time a quicker fix gets tried first. 2026-10-24: about 09:45 the laptop went down hard (no shutdown logged, the clock came back unset); 09:59 the app started; 10:14:34 its window hung (the app's log: "Main webview is unresponsive, will kill and reload"; the journal: "Crashing because hung"), 13 s after preview servers were started. The window never came back, but the app's main process kept running and logging (session hooks, plugin sync, "Window focused" at 10:22). Matthew launched it 11 times from a terminal, 10:22 to 10:44: each printed "Persistent cache error: 1" and quit at once (log: "Quit requested before 'ready'; not creating the main window"), since a copy that is still running takes over every new launch. Reinstalling (apt remove 10:36, install 10:38, the same 3.6556.2) did not stop that copy, so it changed nothing; the reboot at 10:46 did, and the first launch after it worked.Matthew, 2026-10-24 ~10:48, in chat: "whoa -- had a lot of GPU related issues, or GPU cache, within claude-desktop. reinstall did not fix. reboot did." Then the error: "Persistent cache error: 1", and: "let's file a ticket to figure this out -- or track it, or both."
^ticket(609)hazel reports: writing MUDU's game scripts: Globals as it is (a per-rule view), RoomState, a full Globals as a Hazel type, and one address for every place
🪷 blocked on Matthew
today (2026-10-25)
hazel
A Hazel report on writing Messed Up Dress Up's game scripts, a draft for Matthew: (1) how a rule is written today, and what Globals is: not global, a per-rule view the game builds for each room's handler (the tree room's one hatch flag, disambiguated by the house it is in); (2) RoomState: each room's own type in place of the shared Globals; (3) a real Globals, the whole game state the rules may read (debugging, diagnostics, advanced mechanics), defined as a Hazel type and documented; (4) the game's notions as they grew in waves: backgrounds became world squares, places in the code and not in the UI, rooms, sub-rooms, trap doors, passages; (5) a consolidation: one notion of place, as an address (world, square, place, room, sub-room), mapped against every walk possible today with every trap door and passage passable. AUDIENCE (his word): Matthew first, then Cyrus and the Hazel team: people who know Hazel, so no Hazel basics; what matters for writing game-script rules in it. The kids' guide (^du_report(17), the Game Scripts Guide, retro style) stays the kids'; this one is in the Hazel reports' own style. ALSO (his additions): explain the current design of Globals, Cmd, Event and the other structures a rule touches; consider unique IDs for places, objects and people that are human readable and unambiguous in one global keyspace (no bare 1 for a place and 1 for an object); cross-reference Fumola (fumola.org: symbols, times, names as structure) and Adapton (adapton.org: names, nominal memoization). AND (his last addition): from the unified address for any thing, place or person, propose new Hazel types: Globals, RuleState (his name for the per-rule view), and Cmd. AND: templates vs placed instances: a person, place or thing as a template (placed nowhere) and as placed, owned by a place in some state of the game, with ownership able to change (moves, pick up, carry). AND: the world keeps a buffer of addressable instances that were placed and are now removed (in play or in editing), so one can be re-placed later as itself, not as a new instance from its template. AND: frame it against Fumola's store, structured by space and time, each a nesting symbolic structure; MUDU's state uses the space side (nested symbolic addresses) and not symbolic time, for now: that difference stated.Matthew, 2026-10-25 07:40, in chat: "Thanks for clarifying how it works --- the game engine is running the handler in a special context where that one hatch flag is disambiguated -- I think we should draft and create a Hazel report explaining: * how to author these game scripts, and in particular, the current structure of Globals, and how it's not as global as it sounds --- it's really a subset of all globals, tailored for that rule. * so why doesn't each room define its own version, call it "RoomState" (or something like that, and drop the word "Globals", in that context at least). * there probably _should_ be a structure called Globals, and for debugging/diagnostic purposes, or even advanced game mechanics, it maybe useful for every room to also be able to peek at that full set of Globals, if needbe. In either case, we should define it (as a Hazel type, not just as JS code or JSON structure), and document it in our report on writing these game scripts. * related --- we developed this game in waves that never re-factored the way we represented or termed things in the past --- we have "backgrounds", which became the basis for "world squares" --- the code talks about "Places" but that's not in the UI anywhere. * We should consider ways of consildating the number of distinct notions, and make a simpler system for the current game mechanics, and future games we create within the system. Having a unified notion of "place", perhaps as a kind of path (which top-level world, which square, which place/room/sub-room within that square?) --- let's map how such a unified address system for "place" would work, given the variety of random walks we can do today (assuming all trap doors and passageways are activated as passable)." Then, 07:41: "BTW --- we have a game script how to report already, but it's for kids and meant to use certain retro sytles in its presentation. For this report, the first reader is myself; then Cyrus and the Hazel team --- people that know what Hazel is and just want to know how it's relevant for writing game script rules." Then, 07:44: "the report being created now should explain current design of: * Globals * Cmd * Events, and other structures relevant for a game rule. the report should consider the way places and objects and people could all have unique IDs that are: * human readable * not ambiguous in a global keyspace (so can't just use 1 a certain place, and then 1 for some object) Cross-reference with ideas from Fumola (fumola.org) and Adapton (adapton.org)." Then, 07:44: "Finally, based on a unified way of addressing any "thing/place/person" in the game, we should offer a new representation of Globals, and RuleState for Hazel, and Cmd too." Then, 07:45: "please use images (SVGs ideally?) in the report, to make it more interesting to look at." Then, 07:46: "there's also a distinction between: * person/place/thing as a template (not placed anywhere) * and placed, so that the place "owns" that one, at least in some state of the game (dynamic changes are possible)" Then, 07:47: "the game world itself should probably also have a buffer of addressable stuff that's been placed, but in the current game/edit state, has been removed, temporarily, to be re-placed, potentially, later without a new instance from a template." Then, 07:48: "Fumola as a store structured by space and time --- and each can use symbolic structure that nests -- we don't need symbolic time, yet --- that's one diff between Fumola store and MUDU state, for now."
^ticket(611)dress up: a 🌍 Start World button beside Start over: the start world's start square, the friend put there, and a pop-up saying what the game is now (a WIP world: stuff and people, but no interactive people (they are background animations, not quite NPCs) and no puzzles yet; scripting next; feedback welcome); a pointing hand 👉 floating on the button, as an in-game tutorial would; and a WIP ^du_report on the new-player experience, R's phone visit its backstory
🪷 blocked on Matthew
low priority
dress-up
dress up: a 🌍 Start World button beside Start over: the start world's start square, the friend put there, and a pop-up saying what the game is now (a WIP world: stuff and people, but no interactive people (they are background animations, not quite NPCs) and no puzzles yet; scripting next; feedback welcome); a pointing hand 👉 floating on the button, as an in-game tutorial would; and a WIP ^du_report on the new-player experience, R's phone visit its backstoryMatthew, 2026-10-25, in chat: "mint and enqueue --- low priority --- Better \"first time user\" experience --- Next to \"Start Over\" button, offer \"Start World\" button that: * selects the \"start\" square from the \"start\" world, if any -- the current default world has one. * places the friend into that square, as if they selected it from the world design grid. * presents a pop-up explaining: * Messed Up Dress Up is a WIP, evolving from an activity into a full game world, gradually. * Currently, the game world has stuff in it, but no people or puzzles. It's a place to explore, and evolve into something more dynamic. Current work is focusing on ways for end-users to script their own adventure world system. One baby step at a time. Feedback welcome!" Then: "when we say that the world has \"no people\" -- perhaps instead we should say \"no interactive people\" -- -they are not quite NPCs, more like background animations still." Then: "okay, and as we refine this \"new user experience\", let's have a WIP du_report about it, and this first step of it. The backstory is my friend (let's call him \"R\"), tried the game on his mobile phone and got confused about how to enter the world and do stuff. It's not obvious at all at the moment. So another thing could be to emphasize that \"enter world\" button, with something overing over it (like a \"hand pointing\") emoji, floating on it. Like an in-game tutorial might have."
^ticket(613)dress up (tracking, no action yet): why didn't the game catch that M's iPad was slow, and why must the scenery's stillness be set by hand? (its friend drawing takes 1.5 ms, under the 6 ms test, and its late frames did not trip the choppy test, yet its pond ran at 14 fps); the cave measurements in 🧪 may answer it later
tracking
dress-up
dress up (tracking, no action yet): why didn't the game catch that M's iPad was slow, and why must the scenery's stillness be set by hand? (its friend drawing takes 1.5 ms, under the 6 ms test, and its late frames did not trip the choppy test, yet its pond ran at 14 fps); the cave measurements in 🧪 may answer it laterMatthew, 2026-10-25, in chat: "and mint a ticket (for tracking, not new actions): why didn't we catch that the ipad was slow before? why must we set this manually? maybe the cave measurements will help answer, later or in the future."
^ticket(633)dress up: ^du_report(21), the dungeon rooms and the friend from every side: every costume from above (front, side, back) and asleep in the tent, the dungeon room's looks and ways, what each view draws
🪷 blocked on Matthew
report
dress-up
^du_report(21): a report to see all of today's design work: the dungeon room (looks, the four kinds of way, holes, the ledge), every costume drawn from above in three facings and asleep in the tent, and what each view draws, before and after.Matthew, 2026-10-26, in chat: "these new views of each costume are great. please do a du_report with a way to see all of this design work. Thank you, BTW."
^ticket(634)dress up: agent-instructions.md cut from 380 KB to a short checklist; the explanation moved to a new public report, ^du_report(22), readable by people and agents (who decides, releasing, 60 fps, design rules, the code, testing)
🪷 blocked on Matthew
docs
report
dress-up
^du_report(22): how Dress Up is made, for people and agents alike, and agent-instructions.md cut to a short checklist that links into it (it was 380 KB, "not human digestable").Matthew, 2026-10-26, in chat: "let's revise this file. Make it way shorter, please." (agent-instructions.md) Then: "we also have reports that are public --- can we put some stuff in there rather than here, and make it human digestable? This file is not human digestable." "a new report, where both humans and agents can read it? du_report"
^ticket(635)hazel reports: ^report(34), the pros and cons of an official Hazel JS library (#2711, #2719): for game scripting (MUDU's 📜 rules) and for other uses beyond
🪷 blocked on Matthew
report
hazel
^report(34): an official Hazel JS library? The pros and cons of making Hazel-as-a-JS-library (#2711, #2719 and the embed frame) official: what MUDU's game scripting has shown, what other uses it would serve (pages that run or check Hazel, teaching sites, embedded editors, other games), and what it would cost Hazel to keep (an API to support, builds, versions, the evaluator's semantics exposed).Matthew, 2026-10-26, in chat: "let's write a Hazel report about the pros and cons of creating an official Hazel JS library for these game script use cases, and other use cases beyond."
^ticket(642)hazel: the landing order for livelits — #2469 to dev first, then retarget #2635 to dev
TBD with Cyrus: one PR or several
hazel
#2635 targets #2597's branch, which targets the stale integration/livelits-splicerefs (no open PR). Plan with the team: #2469 (Andrew's, not ours to merge) lands on dev; then #2635 is retargeted to dev, showing only the livelit diff (~70k lines, 442 files); #2597 closes into it. Out of draft once the description says what reviewers should read.Matthew, 2026-10-29 09:0x, in chat: "today is a special work day, where we as a team are trying to coordinate more tightly, and merge PRs that are ready, in some order. ... let's look at our PR for livelits and modular editors, and decide how ready it is. People will want to know"; then "please update dashboard with our new tasks and focus for today".
^ticket(650)hazel: #2718 (Negabinary: unused warnings for theorems and forall binders): can we help with 7h3kk1d's requested changes?
parked
hazel
7h3kk1d requested changes on #2718 at 18:54Z. Not our branch: help by checking his claims and prototyping his suggested ~warn_unused fix to hand to Negabinary (as a comment or a PR into fix/theorem-unused-warnings, with Matthew's OK).Matthew, 2026-10-29 13:0x, in chat: "let's look at what's current here https://github.com/hazelgrove/hazel/pull/2718" then "can we help in some way?"; parked by "new agenda: let's look at #2672".
^ticket(654)hazel merge day (10-29), end of day: your approvals and the Slack post
🪷 blocked on Matthew
hazel
Before signing off: approve #2756 (Cyrus: advisory perf report; review notes on ^ticket(652)) and #2626 (disconcision: faster editing commands; notes on ^ticket(653)), then post the end-of-day Slack message, which says both are approved.Matthew, 2026-10-29 14:5x, in chat: "what should I do next, with my limited human attention. I'd like to sign off in 30min or less"; then "Yes: review #2626 now (ticket + notes), and draft the end-of-day Slack message while I approve #2756."
^ticket(655)hazel: where things stand after merge day (2026-10-29), to keep track
queued
tracking
hazel
Matthew's tracking ticket for the state of things at the end of merge day: what landed, what waits on whom, and what to pick up next. Update as the threads move; close when they are all settled.Matthew, 2026-10-29 15:4x, in chat: "let's make a hazel ticket for me to keep track of the state of things from today."
^ticket(664)hazel, the meeting with Cyrus on Thu 2026-11-05, 10:00 MST (moved from Wed 2026-11-04): a list of specific tickets to grind on together
queued
meeting 2026-11-05
🪷 blocked on Matthew
hazel
performance
Tickets for Wednesday. Find or create a list of specific tickets to work through with Cyrus. Two to start: (1) the cost of undo, and ways to make it O(log n) per edit and per undo rather than O(N), as it seems to be now; (2) related: how much sharing is lost as data passes to and from the worker thread.Matthew, 2026-11-02 07:06, in chat: "after we do this chore, I also want to find/create a list of specific tickets to grind on together for meeting Cyrus this Wed. * investigate the cost of undo, and potential ways to do it in O(log n) time per edit and per undo, not O(N) time, which seems to be the way it was working. * related to undo --- how much are we loosing sharing as we pass data to and from the worker thread?"
^ticket(665)hazel, performance: the cost of undo, and O(log n) per edit and per undo instead of O(N)
queued
meeting 2026-11-13
hazel
performance
Undo in O(log n). Measure what an edit and an undo cost as the program grows, and design undo so each costs O(log n), not O(N). Today, on #2635 (src/web/app/History.re): the undo and redo stacks hold whole Page models, capped at 250. Pushing compacts the previous head: it drops the derived caches (syntax, statics, evaluation) and keeps the zippers. The newest entry stays whole (032fe3aca6), so only the latest undo restores without rebuilding. Any other undo rebuilds syntax from the zipper (incrementally, through the live editors' caches), re-analyzes from CachedStatics.empty and re-evaluates; on Full Body that was about an edit's time (10-15). Where the O(N) is, to measure: the restore's re-measure and re-parse walk, whole-program statics from empty (per-item DefStatics cannot reuse anything), full re-evaluation; per push, compact_head (per cell), the cap's List.filteri over 250, the result's persist/unpersist. Directions: undo as an inverse edit applied to the live state, so derived state updates as it does for a keystroke; or snapshots that keep their derived state and share structure with the live one (per-item statics keyed by item), so a restore recomputes only the items that differ.Matthew, 2026-11-02 07:06, in chat (from ^ticket(664)): "investigate the cost of undo, and potential ways to do it in O(log n) time per edit and per undo, not O(N) time, which seems to be the way it was working."
^ticket(666)hazel, performance: how much sharing is lost passing data to and from the eval worker
queued
meeting 2026-11-05
hazel
performance
Sharing across the worker boundary. How much structure sharing and identity is lost as data goes to the worker and back, and what that costs. Today, on #2635: within one message, Marshal keeps the message's own sharing. Across messages, ShareCodec (993e3d5f91, 2b080af683; ^ticket(513)) keeps a table on both sides, keyed by Merkle hash: a value already sent goes as a reference, so the worker's request shares unchanged values with the last one. Responses can be shared the same way (ServerMessage.Shared). What is still lost, to measure: values under ShareCodec's min_size (16), first sends, and everything after a table reset; and on the main thread, every value decoded from a response is a new object, so identity-keyed memos (TypHash's and ValueHash's WeakMaps, the view memo, MapPiece identity) miss on it and hash it again. Measure per request and response: bytes with and without sharing, the share hit rate, encode, decode and hash time, and the identity misses on the main thread caused by decoded values, for a Kids' Choice release, a Full Body edit and an undo (an undo's old values: are they still in the worker's table?). Related to ^ticket(665).Matthew, 2026-11-02 07:06, in chat (from ^ticket(664)): "related to undo --- how much are we loosing sharing as we pass data to and from the worker thread?"
^ticket(667)hazel, performance: why #2635's evaluator takes half dev's steps on the PerfBudgets program
queued
🪷 blocked on Matthew
meeting 2026-11-05
hazel
performance
Half the steps. Dev's new PerfBudgets test (#2678: Matthew's, with two commits of Cyrus's, who merged it) counts the evaluator's trampoline steps on a fixed program: 206,834 on dev (10-12), budget 227,000. On #2635 after ^ticket(663)'s merge it is 96,438, and the edit re-run 270 against dev's 378. Find which change does it: #2469's evaluator work, ours (evaluate_open, the ascription hash, the spine memo), or a difference in what is counted (a fast path that does not go through the counted trampoline). If it is real, it is an improvement to take to dev; if it is the counter, PerfBudgets should count it.Found 2026-11-02 merging dev into #2635 (^ticket(663)): PerfBudgets 0 and 1 failed for being more than a quarter under budget; the budgets were lowered on #2635, as the test asks.
^ticket(668)hazel, Hazlet, npm: a prototype npm package of Hazel as a JS library, installable and documented the npm way
later: after #2469 lands on dev
hazel
Hazlet on npm. What does it take to publish a prototype npm package that other people can install (npm install hazlet) and use, documented the way npm packages are? A Hazlet (Matthew's word, 2026-11-02) is Hazel embedded as a library in a JS program's event-handler system; Messed Up Dress Up is the first and only one so far, through the draft library hazel-lib.js (#2711, with #2719 stacked on it; ^report(34)). The discrete tasks, each its own ticket: (1) ^ticket(669) the package's build: the release bundle of #2719 wrapped for node (require and import) and the browser (a script tag, from a CDN that serves npm); (2) ^ticket(670) TypeScript declarations for the API and its value mapping; (3) ^ticket(671) the README, the npm way (install, quick start, API, values, limits, license), and a CHANGELOG; (4) ^ticket(672) examples and a check that installs the packed tarball into fresh node, browser and TypeScript projects (on GitHub: no headless browser here); (5) ^ticket(673) the name, the license, the version scheme and who publishes (an npm account is Matthew's: Claude cannot log in); (6) ^ticket(674) Dress Up loads its Hazel from the published package instead of a branch build. Order: 669 first; 670 and 671 on its API; 672 checks all three; 673 decides before the first publish; 674 after it. Open question for the meeting: is the package the library alone (Hazel.run and friends), or also the Hazlet pattern itself, a helper that turns a program of modules into JS event handlers as Dress Up uses it?Matthew, 2026-11-02, in chat, under the agenda's Hazlet item (^report(37)): "can we add a task for you: What does it take to create a prototype npm package that other people can download and use via npm, that's documented the way that npm documents things, etc? for each discrete task, please create tickets that inter-link with each other"; and: "if it's possible to register our \"Hazlet\" work today under npm, I'd like to try that"
^ticket(669)hazel, Hazlet, npm: the package's build (hazel-lib.js for node and the browser)
queued
meeting 2026-11-05
hazel
Hazlet package: the build. Part of ^ticket(668). A folder with package.json and the release bundle of hazel-lib.js from #2719 (one js_of_ocaml script that defines Hazel on the global object; about 2.7 MB unpacked, 643 KB gzipped, ^report(34)), plus thin entry points: require("hazlet") and import Hazel from "hazlet" in node give the Hazel object, and the same file works as a plain <script> from unpkg or jsDelivr. package.json the npm way: name, version, description, keywords, license, repository, homepage, bugs, main, exports (require, import, types), files, engines. Check: npm pack gives a tarball whose contents are only those files; node runs the README's quick start from it. Feeds ^ticket(670) (types), ^ticket(671) (README) and ^ticket(672) (install check). Where its source lives (a folder on #2711's branch, built by dune, or a repository of its own) is part of ^ticket(673).Matthew, 2026-11-02, in chat, under the agenda's Hazlet item (^report(37)): "can we add a task for you: What does it take to create a prototype npm package that other people can download and use via npm, that's documented the way that npm documents things, etc? for each discrete task, please create tickets that inter-link with each other"; and: "if it's possible to register our \"Hazlet\" work today under npm, I'd like to try that"
^ticket(673)hazel, Hazlet, npm: the name, license, versions and who publishes
queued
meeting 2026-11-05
hazel
Hazlet package: name and publishing. Part of ^ticket(668); decisions for Matthew, some for the meeting with Cyrus. (1) The name: unscoped hazlet (free as of 2026-11-02 10:17), under Matthew's npm account, or a scope such as @hazelgrove/hazlet (needs an npm organization; @hazelgrove has no package now). (2) The license: MIT, as Hazel's package.json has. (3) Versions: 0.0.x while experimental, each naming the Hazel commit it was built from (Hazel.build and the CHANGELOG); dist-tags. (4) Who publishes: the account, its two-factor login, other maintainers; later a GitHub workflow with an npm token (a secret Matthew sets) and provenance. Claude cannot create the account or log in; Matthew runs npm login, then npm publish or says to. (5) Where the source lives (^ticket(669)). The first publish waits on ^ticket(669), ^ticket(671) and ^ticket(672); ^ticket(674) waits on it.Matthew, 2026-11-02, in chat, under the agenda's Hazlet item (^report(37)): "can we add a task for you: What does it take to create a prototype npm package that other people can download and use via npm, that's documented the way that npm documents things, etc? for each discrete task, please create tickets that inter-link with each other"; and: "if it's possible to register our \"Hazlet\" work today under npm, I'd like to try that"
^ticket(675)hazel, Hazlet, report 34: a live trap room in the report, its Hazel rule editable in tiles
meeting 2026-11-05
hazel
A live trap room in ^report(34). The reader plays Messed Up Dress Up's trap room on the report's page and edits the room's Hazel rule in Hazel's tiles, the room answering the edited rule at once. Three pieces, each its own ticket: (1) ^ticket(676) the trap room on a page that is not the game's; (2) ^ticket(677) Hazel's tile editor on that page; (3) ^ticket(678) the report's page wiring them to hazeljs (^ticket(668)): the editor's text, Hazel.runProgram, the rule handed to the room. Today the game does all three inside itself (its Scripting panel), so a first version can be an iframe of the game opened at the trap room; the package version is the Hazlet pattern shown working in a page we write.Matthew, 2026-11-02, in chat: "Once we publish hazeljs and mudu as npm packages, can we use those here? So the reader can: * see the trap room and * edit the hazel script, with tiles, etc? https://matthewhammer.org/hazel/reports/034/"
^ticket(676)hazel, Hazlet, Dress Up: the trap room on another page (a deep link, then a messed-up-dress-up package)
queued
meeting 2026-11-05
hazel
dress-up
The trap room outside the game. Part of ^ticket(675). First step, small: a link that opens the game at the trap room with its Scripting panel showing and Hazel chosen (the game reads ?try=cave-N and ?logic=hazel today, but has no way in to the trap room), so a report can frame it. Then, for the package route: the game as an npm package, messed-up-dress-up (free on npm on 2026-11-02; mudu is someone else's), exporting the trap room (its drawing, its events, the commands it runs) for a host page to mount and to hand a rule. That needs the room pulled out of the game's shared global state (about 30 script files), so it is the larger step. A Dress Up release each, the speed run as the check.Matthew, 2026-11-02, in chat: "Once we publish hazeljs and mudu as npm packages, can we use those here? So the reader can: * see the trap room and * edit the hazel script, with tiles, etc? https://matthewhammer.org/hazel/reports/034/"
^ticket(678)hazel, Hazlet, report 34: the report's page wires the room, the tiles and hazeljs
queued
meeting 2026-11-05
hazel
The wiring. Part of ^ticket(675), after ^ticket(676) and ^ticket(677). The report's page posts the trap room's module text (and Common's) to the tile editor, takes each edit back by postMessage, runs the program with hazeljs's Hazel.runProgram (^ticket(668)), and hands the new on_event to the room; errors, holes and unfinished brackets shown beside it, and the rule kept while it is not ok, as the game's panel does. A dated update in ^report(34) shows it.Matthew, 2026-11-02, in chat: "Once we publish hazeljs and mudu as npm packages, can we use those here? So the reader can: * see the trap room and * edit the hazel script, with tiles, etc? https://matthewhammer.org/hazel/reports/034/"
^ticket(681)hazel, Hazlet, performance, report 34: convert JS values directly at the call boundary, and a report measuring what it saves
queued
hazel
performance
Convert JS values directly. ^report(34)'s What next, step 4: convert JS values directly into Hazel values at the call boundary, not through syntax re-evaluated (^report(25)'s floor), and merge #2681, which the game's typed rules need. Then a report measuring the savings in time and space, if possible: per call and as the passed value grows, against #2719's library as it is now. Builds on ^ticket(539) (of_js producing final values: trial branch lib-floor, CI green, waiting on Matthew's call), next to ^ticket(551) (a passed world converted once, as a handle) and ^ticket(547) (handing JS the closure).Matthew, 2026-11-03, in chat: "let's also enqueue a ticket to work on. Mint a ticket for this step: Hazel reports, ^report(34), What next, step 4: \"Convert JS values directly\". http://matthewhammer.org/hazel/reports/034/#step-4a and write a report measuring the savings in time and space, if possible"
^ticket(683)hazel, Hazlet, dress-up: what a Hazel edit box gives over a JS one: typed completion and errors in place
queued
hazel
dress-up
Hazel edit boxes over JS ones. Two advantages to make real in Messed Up Dress Up's tiles, and to say in hazeljs's README: (1) type-directed menus: Hazel's editor already suggests from types (TyDi, src/haz3lcore/TyDi): after a dot, the labels of the value's type (dot_labels); where the expected type is known, the variables of that type first; then forms and operators. (2) better errors: each error marked at its term with what was expected and what was found, ExplainThis for every form, and the program still running around the error, so the game keeps going; for a rule that runs but answers wrongly, probes (each expression's value as it ran) and the event log. To find out first: what embed mode (embed-editable) shows of these: it is a pared-down view, and whether it draws the suggestions, the cursor inspector and probes has not been checked.Matthew, 2026-11-03, in chat: "potential benefits of hazel edit boxes over JS ones: * can we provide better type-directed menus for editing? (dot completion based on types?) * can we provide better error messages when the hazel snippet does not work as expected?"
^ticket(684)hazel, livelits, #2635: a DSL livelit: the IMP grammar as production rules (a prototype, a draft PR into #2635's branch, and a WIP report)
hazel
A grammar livelit. ^report(37)'s DSL livelit, prototyped on #2635 (livelits × modular editors). The livelit's model is a production rule system: productions, in a certain order. Start with IMP's: Var ::= <ids>; Cmd ::= Cmd1 ; Cmd2 | Var := Exp | while Exp do { Cmd } | if Exp then Cmd1 else Cmd2; Exp ::= Var | Var + Var | Var < Var. Steps: read how #2635's playground livelits are written; write the slide on branch livelit-dsl-grammar (worktree ~/hazel-dsl-livelit, off integration/livelits-modular-editors); push and open a draft PR into #2635's branch; start a WIP report with the idea; add screenshots from the branch's GitHub build as they come.Matthew, 2026-11-04 09:05, in chat: "let's start a prototype and a branch/PR for https://matthewhammer.org/hazel/reports/037/#dsl-livelit based on our livelits x modular editors PR. the model for the livelit is a production rule system (production rules, in a certain order). let's focus on the productions for IMP"; 09:06: "start a WIP report with the idea, and let's add screenshots as we get them".
^ticket(685)hazel, livelits, DSL: programs in the grammar's language, as tiles (^report(41) What next, step 2)
queued
hazel
Programs in the language, as tiles. ^report(41)'s What next, step 2: a second livelit whose literal is a program in the grammar's language (IMP first, from ^ticket(684)'s grammar livelit). Its view would be tiles shaped by the grammar's rules, and its expansion the parse tree as a Hazel value. Hazel cannot make a new datatype at run time, so the tree would be generic, perhaps + Node(String, Int, [Tree]) + Leaf(String): a rule's name, which alternative, and the children. Needs step 1 (a parser at run time) or a hand-built tree to start.Matthew, 2026-11-04, in chat: "Mint a ticket for this step: Hazel reports, ^report(41), What next, step 2: 'Programs in the language, as tiles'. http://matthewhammer.org/hazel/reports/041/#step-2"
^ticket(687)Dress Up: an inventory screen, its items the abilities on special buttons today (🫧 bubbles, 🔥 fire, the tools), two of them active at a time
dress-up
An inventory screen, and items that give abilities. A screen over the game, as in a classic adventure game's item menu: the player sees their inventory and picks the active items, up to two at a time (no item is assumed, not even the sword), each on an action button. A button toggles between the game and this screen, which covers the game with a black background, a white one, or a dimmed one (the game mostly, not entirely, hidden). The special buttons of today become items, so what a button does is chosen in the game by choosing an item: 🫧 blowing bubbles (B, controller 🫧), 🔥 breathing fire (F, controller 🔥), and the tools held from the 🎒 backpack (🥅 the bug net, 🗡️ the sword, 💧 the watering can: U, controller 🥅). Contextual actions (🫳 open or pick up, 🏺 throw a pot) stay on their own buttons. The design (his, 11-04): two actions, 🅰️ use item A and 🅱️ use item B, replace today's fixed 🫧, 🔥 and 🥅 use-tool buttons; each slot holds a tool or an ability.Matthew, 2026-11-04 in chat: "in-game 'inventory' screen --- it's like in Legend of Zelda, Link to the Past, when the player sees: their inventory; selects the active item (let's choose up to 2 at a time? not assume sword is always one of them). Let's have a button for toggling back and forth from this inventory screen, which covers the game with either a black background, a white background, or a dimmed background (dimming what's on screen to mostly, but not entirely, hide it)."; then: "please make a ticket. within this inventory system, let's have 'items' for: creating bubbles, creating fire, other things we have special buttons for ATM?"; "so that these special buttons become something that can be changed from within the game, like selecting an item that gives that ability". Then: "yeah, so going forward, we'll have use item A, use item B, and those can be tools, or abilities". Then, asked which controller button opens it: "Start (move 🚪 off it)". Then: "A and B is already in use on our game pad"; "two other symbols that are not letters, or numbers, or related to other game objects or events yet" (picked 🔹 and 🔸); "let's have the L and R hands depict the two selected items. currently, there's some old logic about watering cans being shown near the hand, even when not selected."; "if the selected items are bubbles or fire, can we render a cheap animation there on the hand for a 'simmering' ability that's just waiting, and idling a bit". Then, asked whether items or a costume's own props win a hand: "Show my items"; then "so we need costume props to appear in the backpack when we add the costume. Let's have an 'add but do not remove' policy for adding a new costume so items from that costume appear in the backpack, and when we take off the costume or switch to another, those items stay there". Then, asked whether the 92-shape cap counts only the costume, held items on their own budget: "Yes, separate budgets". Then: "some items are not treated like 'holdable' items: gold coins, chocolate bar. every item should have equal status as 'holdable' (assignable to the two active slots, for controller) and shown in our hands, when selected that way."
^ticket(691)Dress Up: flying over the world, seen from above, its squares a quilt
dress-up
Fly over the world, seen from above. Matthew: "flight in an air balloon, or on bubbles, or another craft. we see the current world from above; each background is a square in a quilt and we see them woven together at some scale dep on our 'height', not one at a time. In this 'top down' view for each background, we may need to reconsider each object (trees, rocks, buildings) as having a top down view too. This is a big under-taking, but conceptually simple. It seems like it will have a big pay off." Plan: (1) a craft is an item (🎈 a hot-air balloon, 🫧 a bubble ride): used, the friend takes off from the square they are in; (2) the world's grid drawn from above, each square a tile: its place's ground and landmarks (water, sand, a castle's walls and towers, a house's roof, a forest's canopy...), its ways as paths joining the neighbours', its things from above (a tree's crown, a rock, a chest...); (3) height zooms: low, one square fills the view; high, the whole world; the craft's shadow on the ground below; (4) the arrows, the stick or the pad move the craft, ⬆️/⬇️ climb and sink; sunk to the ground over a square, they land there in its usual view. 60 fps first: the quilt built once, only its transform moving; squares out of view hidden; things left out when high.Matthew in the Code session, 2026-11-04 evening; M had asked for it before, in another form (Matthew, 23:01).
^ticket(692)Dress Up: ^du_report(25), the overview map: every place and its things seen from above
dress-up
A report on the overview map. Matthew: "I've been planning how to manage all of the kids features --- this overview map (top down for each background) is very nice. Let's create a dress up report about it, with lots of screenshots of backgrounds and placed objects." ^du_report(25): flying (ticket 691), and for every place its scene beside its square from above; the whole world at three heights; placed things from the side and from above, the 18 still drawn as dots; what it costs; what next. Pictures by drivers/shots025.mjs on GitHub (a diag branch, as ^du_report(24)'s), finish.sh, build.py. Published as work in progress.Matthew in the Code session, 2026-11-04, 23:10.
^ticket(694)hazel, performance, livelits: hazel-jit, a livelit's view compiled to JS
queued
meeting 2026-11-13
hazel
performance
A livelit's view, compiled to JS (a JIT). Decided at the meeting with Cyrus, 2026-11-05: look into compiling Hazel to JS just in time for livelits' view functions, and compare timings. The work, in Matthew's words: Reason code to compile Hazel to JS, somehow; and a configuration flag, on by default, that compiles each livelit's view function to JS but not other Hazel functions.Matthew, 2026-11-05, after the meeting with Cyrus (^ticket(664)); again 2026-11-06 for the next agenda: "Can we have some Reason code (hazel-jit let's call this component and code for it) compile some hazel ast into a mostly-equivalent JS code and call that instead?"
^ticket(695)hazel, meeting: the agenda for Wednesday 2026-11-11, 10:00 Mountain, with Cyrus
meeting 2026-11-13
hazel
Meeting with Cyrus, Wednesday 2026-11-11 at 10:00 Mountain: the agenda. ^report(42), public and kept up to date until the meeting (042/data/agenda.json; republished with tools/publish_agenda.py 42). Carries over the work that continues from 11-05 (^report(37)): (1) undo in O(log n), space and time, and why we are not there yet (^ticket(665)); (2) hazel-jit, livelit views compiled to JS, best case first (^ticket(694)), with BuckleScript and ReScript to know and compare (^ticket(698)); (3) a PR to dev linking the experimental hazeljs package (^ticket(696)); (4) a report for JS developers on how MUDU uses hazeljs (^ticket(697)).Matthew, 2026-11-06 ~09:10, in chat: "I've had some time to reflect on meeting Cyrus yesterday. Let's draft an agenda for next meeting, carrying over work that continues"; then: "Next meeting with Cyrus should be at the \"usual time\" --- Wed, 10am Mountain time"
^ticket(696)hazel, hazeljs: a PR to dev whose README links the experimental npm package
queued
meeting 2026-11-13
hazel
A PR to dev that links to hazeljs. Hazel's README (on dev) gets a short section on the experimental npm package (npmjs.com/package/hazeljs, source hazelgrove/hazeljs): what it is, in a sentence or two, and a note that the plan is for it to track dev, but it does not yet (it is built from the draft library, #2711 and #2719). Why now: Cyrus knows people in Cambridge who simulate Petri nets with homemade JS tools; Matthew would like to see whether they could move some of their JS logic into Hazel through hazeljs.Matthew, 2026-11-06 ~09:10, in chat: "Small task to do asap -- open a PR against dev for Hazel that links to the experimental npm package, with some minimal description, and a note that the plan is for it to track `dev`, but it does not do that, quite yet."
^ticket(697)hazel, hazeljs, report: how MUDU uses hazeljs for its scripts, written for another JS developer
queued
meeting 2026-11-13
hazel
dress-up
A Hazel report: scripting a JS app in Hazel, the way Messed Up Dress Up does. How MUDU uses hazeljs for its script support (the rooms' on_event rules, Globals and Cmd, runProgram over modules, the fallback to JS while a program is unfinished, the tiles), told to a JavaScript developer who wants to do something analogous in their own program: the steps, the code on each side, and what to watch for. First readers in mind: the Cambridge group Cyrus mentioned, who simulate Petri nets with homemade JS tools (^ticket(696)). Builds on ^report(33), ^report(34), ^report(39).Matthew, 2026-11-06 ~09:10, in chat: "Related to 3 --- Let's create a Hazel report that looks at how MUDU uses hazeljs for its script support, and describes to another JS developer how they might do something analogous."
^ticket(700)hazel, hazeljs, report 43: what the Cambridge group's Petri net tools would want from a Hazel rule
queued
blocked on Cyrus
hazel
Ask the Cambridge group what their Petri net tools would want from a Hazel rule. ^report(43), What next, step 1 (https://matthewhammer.org/hazel/reports/043/#step-1): through Cyrus, ask what their tools would want a Hazel rule to decide, and what their nets look like (sizes, colours, timing), before building more of the example. Known (Matthew, from Cyrus on 2026-11-05): yes to colours, which they call types: their tokens carry data, so their nets are coloured Petri nets. Still open: what a rule decides (enabling, a guard, a firing's output, a choice among enabled transitions), net sizes, and timing. Matthew passes these options on to Cyrus and the group.Matthew, 2026-11-06 ~10:15, in chat: "Mint a ticket for this step: Hazel reports, ^report(43), What next, step 1: \"Ask the group in Cambridge, through Cyrus, what their tools would want a Hazel rule to decide, and what their nets look like (sizes, colours, timing), before bu\". http://matthewhammer.org/hazel/reports/043/#step-1"; then: "I can answer some of this based on Cyrus' telling yesterday: * yes to colors (what they call \"types\", in their world)," and "Not sure about the other questions and next steps, but I will pass on these options to them/Cyrus."
^ticket(701)hazel, hazeljs: Hazel's tile editor in the package, not only in a branch build
queued
before sharing ^report(43)
hazel
An editor in hazeljs. Today the package analyzes and runs text; Hazel's own tile editor, as Messed Up Dress Up and ^report(43) use it, is Hazel's app in a frame from a branch build (build.hazel.org/embed-editable, #2814, a draft stacked on #2719), which a page must find and frame itself. And the frame takes messages only from an allowlist of origins (matthewhammer.org, localhost: site_origins in src/web/embed/EmbedProtocol.re), so no other site can use it. The options: (1) the embed build published with the package (its files on npm, so a page frames it from jsDelivr, at the package's version, matched to hazel-lib.js), with an API that makes and wires a frame (Hazel.editor(element, {program, module, editable, onEdit})) over the protocol; (2) an editor mounted in the page itself, no frame (Hazel.mountEditor, the embed doc's 'later'); and in either, the origin policy decided (any origin for a frame that only shows and posts back the program's own text?). Also: go to definition starts only in an editable cell today (CodeSelectable has no ctrl-click or F12), so read-only listings cannot start one.Matthew, 2026-11-06 ~11:30, in chat: "let's enqueue tickets for these limitations of hazeljs, and try to address them before we share this report 43" (quoting ^report(43)'s Limits today: "No editor in the package. It analyzes and runs text. Hazel's own tile editor in a frame, as the game uses it, comes from a branch build of Hazel.")
^ticket(702)hazel, hazeljs: undo and redo in the editor, not left to each app
queued
before sharing ^report(43)
hazel
Undo and history in hazeljs's editor. Today the library keeps no history: the embed frame posts {type: "history", redo} for Ctrl+Z and Ctrl+Shift+Z or Ctrl+Y (68142486cf, ^ticket(682)) and each page keeps its own undo stack per module and sets the text back (the game does; ^report(43)'s live.js does too, unchecked in the test browser). Options: the editor keeps its own undo and redo (Hazel's app already has History.re, with the compaction of ^report(38)), so a page gets it for free, with a message to clear or read it; or a small history helper in the package for pages that keep their own. Check it in a real browser on GitHub's machines, since the local test browser did not deliver Ctrl+Z to the frame.Matthew, 2026-11-06 ~11:30, in chat: "let's enqueue tickets for these limitations of hazeljs, and try to address them before we share this report 43" (quoting ^report(43)'s Limits today: "No undo, and no history, in the library: the app keeps its own.")
^ticket(704)hazel, hazeljs, report 44: many Hazel listings on a page without a Hazel app per listing
queued
hazel
performance
Many listings, one Hazel. Today hazel-lib's listings script (^report(44)) gives each listing its own frame, and each frame starts a whole Hazel app, one after another, so a page's last listing waits for all the others, and each holds its own copy of Hazel in memory. First, measure on GitHub's machines (a page of 1, 5 and 20 listings): time from load to each frame's ready, and memory per frame. Then, the options, cheapest first: (1) start a listing's frame only when it nears the screen, text until then (the script starts them in page order today); (2) static tiles for every listing, drawn by the hazeljs already in the page (a Hazel.render(text) giving the tiles as HTML, no frame), and one live editor frame that moves to the listing being clicked or edited; (3) a lighter frame: an embed entry point built on its own, without the rest of Hazel's app; (4) no frames at all: Hazel's editor mounted in the page by hazel-lib itself (Hazel.mountEditor(element, options), the embed doc's 'later'), one Hazel for every listing, which also removes the origin allowlist (^ticket(701)) and lets go to definition and undo (^ticket(702)) work across listings without messages. (4) is the real fix; (1) and (2) help now.Matthew, 2026-11-06 ~11:50, in chat, quoting ^report(44)'s limits ("Each listing loads Hazel's app in its frame, so a page with many listings takes a while to start them all."): "What can we do in the future about this limitation?" then "mint and enqueue a ticket"
^ticket(705)hazel, editor: Goto first use (on a definition) and Goto next use (on each use but the last), in the context menu
hazel
Goto first use / Goto next use. The context menu offers Goto first use on a definition with uses, and Goto next use on each use before the last. A definition's uses are the terms whose Goto definition leads to it (Info.get_binding_site), in program order (new module Uses), so shadowing and recursion come out right. PR #2815 against dev, branch goto-uses (~/hazel-goto-uses).Matthew, 2026-11-06 ~13:05, in chat: "For definitions --- Let's open a PR against dev that lists: goto first use / goto next use in the RHS menu for the def, and each use other than the last, respectively." (chose Do it here)
^ticket(706)hazel, hazeljs, petri: hazeljs-petri-example on hazeljs 0.0.5, and its listings from the package
queued
hazel
The Petri example on hazeljs 0.0.5. matthewhammer/hazeljs-petri-example still loads hazeljs 0.0.4: js/live.js's LIB address and package.json's dependency. Move both to 0.0.5. Then: drop the key-order workaround in node/petri.mjs (the view built in Net's field order), since 0.0.5 pairs a JS object's keys by label; and load hazel-listings.js from the package (https://cdn.jsdelivr.net/npm/hazeljs@0.0.5/hazel-listings.js) instead of the page's own copy, which differs (the package's brings default styles). Release as the example's 0.0.11 (0.0.8 to 0.0.10 went to full screen, line wrap, and the net in Hazel). A question for Matthew: should ^report(43)'s embedded copy of the example (its own live.js) get the divider on the page too, as the app's 0.0.7 did?Claude, 2026-11-06 15:34, a loose end of publishing hazeljs 0.0.5 (Matthew asked: "do we have a ticket for all recent 'loose ends'?").
^ticket(708)hazel, livelits, performance: a Petri net livelit that redraws the net from its Hazel definition, fast enough
queued
hazel
performance
A livelit that redraws a Petri net, fast enough. In matthewhammer/hazeljs-petri-example the net (places, transitions, arcs, where each is drawn) is Hazel, in a module listing, and the page's JS redraws it after every edit and every step. The challenge for Hazel: the same drawing as a livelit's view, its model the net, redrawn on each change of the definition or the marking without a visible wait. Measure the view's time per redraw on the interpreter, and with hazel-jit (^ticket(694)) compiling it; the page's JS drawing is the yardstick. Related: ^report(45) (the trip in and out is most of a compiled render today), ^report(43).Matthew, 2026-11-06 ~16:3x, in chat, as the Petri example's net moved from net.json into Hazel (its 0.0.10): "we need to re-generate the net dynamically. The challenge for Hazel (not here, but in a ticket) is to have a livelit be fast enough to do the redraw".
^ticket(709)hazel, hazel-jit, performance: the way back from compiled JS as a diff against the last run (inside ^ticket(694))
hazel
performance
The way back as a diff (a sub-experiment of ^ticket(694)). Instead of carrying a compiled function's whole answer back as Hazel (HazelJitValue.of_js, linear in its size), carry back only what changed since the last run, applied to the last run's Hazel value. Matthew's questions: (1) how often is the answer big enough to warrant it? (2) is there a simple diff language from JS back to Hazel? (3) the common cases (one element of a long list changing, the rest not), and applying them in time sublinear in the whole structure. Written up in ^report(45).Matthew, 2026-11-07, in chat, after the two trips were timed apart (^report(45)): "let's open an even deeper experiment within this one about hazel-jit ... how we can do 'the answer back (of_js)' as a diff based on the last time we ran it?"
^ticket(710)hazel, hazel-jit, incremental: diffs applied in time sublinear in a long list (log n), by tree-shaped lists on both sides
emphasis
talk after ^report(45) is updated
hazel
performance
EMPHASIS (Matthew): applying a change to a long list in time sublinear in its length. ^ticket(709)'s diff and patch walk a list from its head to the change: the cost grows with the change's position (each step cheap: about 5-10 ns in the JS diff, about 20 ns in the OCaml patch), not with the list's length, but it is still linear. O(log n) needs long lists to be trees on both sides of the boundary: in compiled JS (instead of cons cells) and in Hazel's values (instead of ListLit's flat OCaml list), e.g. Adapton-style level trees, as in Fumola (probabilistically balanced, so the same list has the same shape however it was built, and a change touches one path). That is a change to how Hazel represents lists. Not started: to talk through with Matthew once ^report(45) is updated.Matthew, 2026-11-07 ~07:3x, in chat, on the takeaways for ^report(45) (point 6, "Sublinear isn't there yet"): "Thanks for calling this out. Let's put this into a ticket for ourselves and add an emphasis. I want to talk about this in more detail after we have report 45 updated."
^ticket(718)hazel, performance, dev: a first-order data form, closed values with no holes and no closures, so data stops paying for open terms
queued
for dev
🪷 blocked on Matthew
hazel
performance
A first-order data form for dev: closed values with no holes and no closures, carried as data, not as open terms. Hazel holds every value as a general term (ids on every node, open terms, holes, closures with their environments), and closed first-order data (numbers, strings, booleans, lists, tuples, records, constructors: a picture's shapes, a livelit's model) pays for that generality wherever it goes. It has come up again and again: a probe sample's environment substitutes the environment into each value it keeps (Sample.Env.elide), so a module, a record of functions, goes out whole: 3.8 MB of the Witch slide's 5.4 MB worker answer (^report(46), #witch-answer); the answer's trip to the page, Marshal of terms with ids and a hash of every node to share them, is 70% of a small edit there (#witch-trip); hazel-jit's trip into JS and back, and the ids it makes (^report(45)); livelit samples' environment copies, once ~80% of retained memory (the note in CachedStatics.compute_targets); ^ticket(666) (sharing lost passing data to and from the worker), ^ticket(681) (JS values converted directly at the call boundary), ^ticket(710) (lists as trees), ^ticket(513) (ShareCodec). The idea: another representation, for first-order data only: a special case of the core language's values (Matthew: "a special case of Value ... that's especially efficient to serialize for first-order data"; Fumola's Value is the comparison, its first-order cases serialized as they are), with no source ids (Matthew: "Values should not have source ids ... That association should be stored elsewhere --- like a global DCG, in the case of Fumola"), no environments, no holes, no closures, and no sharing (Matthew: "in first order data --- we don't expect any"). A value is moved into it when it is closed and first-order (a check that fails on the first function, closure, hole or cast), and back into a term only when something needs a term (the stepper, a substitution into open code). Everything else stays a term, so nothing about holes changes. Where it would pay, in the order to try: (1) probe samples and their environments, an entry either data or opaque, so a module can never be written out; (2) the worker's answers, data instead of terms, unshared; (3) livelit models and samples; (4) hazel-jit, data to and from JS values directly; (5) the evaluator itself, a data value form inside terms, so list and number builtins and pattern matching work on data without making terms. The costs: a second form at every boundary (conversions, equality between the forms, printing, matching), and the same answers both ways, which the tests must check. Done when the experiments are measured (the same values as Hazel's terms, as data, and as Fumola's values: sent, built, read; Matthew: "Fumola is more efficient than Hazel for these values, and we should try to experiment with these other, more efficient design ideas and submit a plan to the group based on what we find") and a plan based on them goes to the group; then its slices, each a PR to dev measured before and after.Matthew, 2026-11-08 07:3x, in chat, after ^report(46) found the Witch slide's 5.4 MB worker answer to be mostly one probe sample's environment, the Drawing module written out whole, and asked whether the result isn't a closed, first-order value: "This issue --- paying the cost for holes (arbitrary open terms) when we have first order values --- has come up so much over the weeks we've worked together. Let's try to do something systematic for dev that solves this, at the cost of another representation form for first-order data, and no closures. Mint and enqueue a ticket."
^ticket(719)hazel, modules II, review: Alexander's pinned programs from the fixes on modules-ii/1-sig-types since 10-26 (to 948361efe7, with #2735): understand, check, respond
queued
waiting on Alexander (replied on #2493, 11-08)
hazel
Understand Alexander's message on Slack (Thursday 2026-11-05, about 10:51 MST) and respond. He went through the test diffs of every fix commit on modules-ii/1-sig-types since 2026-10-26 (428c32f2e1 up to the tip, 948361efe7, including the commits that came with #2735, closed signature types, merged into it) and pulled out the programs the new tests pin, grouped: crashes and hangs (4: type T = T against a signature overflowing the stack; use on a signature literal raising Sig.OpenSignature; cyclic aliases through a tuple extension exponential, over 25 s; an open signature in a hole item reaching TypFunAp); capture by a binder named like an outer alias (4); paths through modules and types (the middle of a path read as a module; through a type member defined as a signature; through a labeled-tuple member, an unascribed sub-module or a member of type ?; a type member used as a value reported once); hole items in signatures (5: a hole stands for extra members; a member it could declare is ?; { ? } no longer an empty signature; a hole in a type member's definition is unknown; holes styled as holes); sealing, marks and binders (6); the editor, stepper and warnings (4); and three fixes with no program test (dff92a91b3, 800 lets with a recursive alias 4.36 s to 1.07 s, dev 1.01 s; 0cab77fd0c, a sealed body checked once; b50ec73364, the Problems sidebar shows a module item's error). Refactors and docs-only commits left out; the three redesign commits (428c32f2e1, 0361d3fdeb, 06c0c6598f) are the feature itself, their tests in test/statics/Test_Statics_Modules.re and test/Test_Typ.re. He did not re-run them; the suite was green at the tip. The work: (1) read it against the branch (record SHAs first: other sessions' fetches move origin/modules-ii/* silently); (2) check each program at 948361efe7, and its "before" on dev where he gives one, on GitHub's machines or a light local CLI run; (3) draft a reply for Matthew to post in the thread: thanks, what was confirmed, anything that differs, questions; and whether these go into the Modules II side-by-side page, whose part 2 is stale since 09-11. The full message is this ticket's source. Context (worked out 11-08, from GitHub and our records; Matthew pointed at #2609): (1) Review by behaviour for the merge queue. Modules II is Alexander's stack toward dev; since merge day (10-29) dev takes a PR only through its merge queue, with one code-owner approval and Fast checks green (^ticket(644)). Matthew reviews Modules II by its programs (the side-by-side page's verified programs; review issue #2544). Alexander's list is that, for part 1's fixes: 48 commits, 428c32f2e1 (10-26, the closed-signatures redesign) to 948361efe7 (10-29), with #2735 (his, merged into 1-sig-types 10-28). (2) #2609, the performance tracking issue. Four of the fixes are #2609's kind, on Modules II's statics: 0cab77fd0c (a sealed module's body checked once, not twice: #2651's twin, #2609 finding 7); dff92a91b3 (800 lets with a recursive alias, 4.36 to 1.07 s, against dev's 1.01 s: parity); 1c9f65213e (cyclic aliases through a tuple extension, exponential, over 25 s, now normalizing to ?); c1aec29617 (type T = T against a signature overflowed the stack). What #2609 left open for Modules II, per-member statics ("for Andrew and Alexander"; six of #2635's eight known test failures), is not among them. (3) The test-timings dashboard (a teammate's, shared with Matthew; made merge day, 10-29, when the queue began requiring the quick suite and Cyrus opened #2756, an advisory per-PR performance report): dev's suite, 304 s, the slow tests -q skips 84% of it, #2609 finding 6's parse cost seen on dev; module tests 5.4 s, 238 of 241 quick. His new tests are statics tests of that cheap, quick kind, though the dashboard predates them. (4) Since his list: the branch has 42 commits of its own past 948361efe7 (191 counting dev's, merged in), to 1c2181788a (11-04): #2732 (fix-2478, issue #2751's plain case, ^ticket(649)), modules-ii/sig-items and member-access merged; #2794 (part 1b, types shown through module paths) opened on it 11-03. The reply: thanks; his programs checked at 948361efe7 and at the current tip (to do); the four #2609-kind fixes recorded on #2609 with his numbers, and a question on per-member statics; whether the later commits' tests should be listed too; and an offer to fold the list into the Modules II side-by-side page (stale since 09-11).Matthew, 2026-11-08 08:4x, in chat: "Just noticed this thread on Slack, from Thursday. From Alexander at around 10:51am my time. Please file this as a ticket: understand his message and respond." Alexander's message, as Matthew pasted it, follows. @Matthew Hammer I'm reading the test diffs on each commit and pulling out the pinned programs. Here they are. Everything below comes from the tests added in the fixes on modules-ii/1-sig-types since 2026-10-26 (from 428c32f2e1 up to the tip, 948361efe7). That range includes the commits that came in with the #2735 merge. Unless I say otherwise, each program is copied from a test that the commit added. Pure refactors are left out (c26cc27d70, c50f827691, 997215188a, 92a6d095af, adca5ea3a4, 0a801a5e88, 0aec414b5c, 9326f1a4a0, 948361efe7). So are the docs-only commits. Crashes and hangs - type T = T checked against a signature overflowed the stack (c1aec29617). It now gives ExpectationMismatch: let g = fun (m : { type T = T; let v : T }) -> (m.v : { let q : Int }) in g - use on a signature literal raised Sig.OpenSignature uncaught (ee8436a03d): use {type T = Int}.T in 1 - Cyclic aliases through a tuple extension took exponential time (1c9f65213e). The program type A = B in type B = A ... A ran for more than 25s; dev gives up after about 1s. The test builds A = B, B = A ... A by hand and checks that it normalizes to ?. - An open signature inside a hole item or hole pattern reached TypFunAp and raised Sig.OpenSignature (ef57a27206, b7b0bd8d62). The tests build this by hand because the parser never puts a pattern inside a hole item. The shape is a typfun T -> { let z = 1; <MultiHole (x : { let y : T })> } applied at Int. Capture: a binder named like an outer alias All four programs typecheck at Int now. Before the fix, the inner T captured y.U. - Signature member (dfc0f3617a): type T = Int in module y = { type U = T } in let f = fun (m : { let a : y.U; type T = Bool; let b : y.U }) -> m.a + m.b in f({ let a = 1; type T = Bool; let b = 2 }) - Poly binder with the path inside a signature (dfc0f3617a): ... let f : poly T -> { let v : y.U } -> Int = typfun T -> fun m -> m.v + 1 in f@<Bool>({ let v = 1 }) - Poly binder with a bare path (70fd3d35ea). It evaluates to 4; before the fix it ascribed 3 : Bool: ... let f : poly T -> (y.U) -> Int = typfun T -> fun x -> x + 1 in f@<Bool>(3) - A re-bound module inside a module body (822100a976). Here f(true) must be "Bool vs Int". The test builds this program by hand: { module P = {type T = Int}; module f = fun (y : P.T) -> y; module P = {type T = Bool}; let z = f(true) }. Paths through modules and types - The middle of a path is read as a module (7ebb6176d0). Before, M.P showed "Module has no type member P": module M = { module P = { type U = Int } } in let f = fun (x : M.P.U) -> x in f - A path through a type member that is defined as a signature (c46a423eed): module M = { type S = { type U = Int } } in let f = fun (x : M.S.U) -> x + 1 in f(1) let f = fun (m : { let x : Int; type x = { type U = Bool } }) -> fun (y : m.x.U) -> y && true in f({ let x = 1; type x = { type U = Bool } })(true) - A path through a labeled-tuple member, an unascribed sub-module, or a member of type ? (81dacf83a7): module M = { type P = (x = Int) } in let y : M.P.x = 1 in y + 1 fun (m : { module N }) -> (1 : m.N.T) fun (m : { let n : ? }) -> (1 : m.n.T) - A type member used as a value is now reported on the label only, not also as "missing" on the dot (cdcd338d61): let m = { type T = Int } in m.T Hole items in signatures - A hole stands for extra members, so there's no ModuleExtraMembers (84af9888d8). Sealing keeps y, so the result is { let x = 1; let y = 2 }: let m : { let x : Int; ? } = { let x = 1; let y = 2 } in m - A member the hole could declare is ?, not missing (4b88452cb9): ... in m.y + 1 gives Int, ... in m.y && true gives Bool, and m.y evaluates to 2. let f = fun (m : { let x : Int; ? }) -> fun (y : m.T) -> y in f - { ? } used to parse as an empty signature (3a2f22c351): fun (m : { ? }) -> (1 : m.T) and let m : { ? } = { let x = 1 } in m - A hole in a type member's definition counts as unknown, so the definition isn't compared (4614e1bc43): let m : { type S = { let x : Int; let y : Int } } = { type S = { let x : Int; ? } } in m - Holes typed as a module item, signature item or module name are styled as holes, not as sort-inconsistent (740660b490). For example, the ? in { let x = 1; ? }. The test is a mold check in Test_FormId. - A sealed member is typed the way it was checked (d0451bb069). The body type is { type T = Int; let x : Bool }: type T = Bool in module M : { let x : T } = { type T = Int; let x = 1 } in M.x && true - A folded (projector) signature pattern gets the same marks as the written one (9bd61d76c9): module M : { let x : Int } = { let x = true } in M.x && true - A module name is checked once, as a pattern, so this is marked BadToken("1") (6a5eb409c9): module 1 = { let x = 1 } in 2 - A rec binder is closed in its body (9a6f96b384): let x : rec T -> { let next : T } = ? in x - A recursive let binds at its definition's first type (ccb4b71aa8): let f = fun x -> f in let y : Int -> Int = f in y - A poly binder's uses resolve to its own id (24b3c395a5): let f : poly a -> a -> a = ? in f Editor, stepper, warnings - Selection escalation goes through the module item (252cb06d9d). In let m = { let x = ¦1; let y = 2 } in m, Select-term twice selects let x = 1, and three times selects the whole module. - The discard step for a bare expression item highlights a + 1 (6b3ae00a5e): { let a = 1; a + 1; let b = 2 } - No false "unused module" warning when a module is used only inside a signature (b17cffe657): module M = { type T = Int } in let s : { let y : M.T } = { let y = 1 } in s This also covers the alias form and the module N : { type U = M.T } form. - Agent-tool rename of an item's binder carries over to the uses of that item's export (b40f6882c9). Update(Pattern, "m/x", "z") on let m = { let x = 1; let y = x } in m.y gives let z = 1; let y = z. Fixes with no program test - dff92a91b3: performance. 800 : L lets with a recursive alias took 4.36s and now take 1.07s (dev takes 1.01s). - 0cab77fd0c: a module M : S = … body is checked once instead of twice. - b50ec73364: the Problems sidebar now shows a module item's error text. Any module-item error shows it, for example module M : { let x : Int } = { let x = true } in M. You checked this in the browser. The three large redesign commits (428c32f2e1, 0361d3fdeb, 06c0c6598f) are the closed-signatures feature itself rather than fixes, so I didn't list their many tests. Their programs are in test/statics/Test_Statics_Modules.re and test/Test_Typ.re if you want those too. I didn't re-run any of these programs just now. The suite was green at the tip when it was pushed, and the "before" behaviors come from my notes from the review rounds.
^ticket(721)hazel, performance: a slider step is an input to the program, not an edit to its code: no syntax, no statics
queued
hazel
performance
When only a livelit's model changes, skip everything about syntax. On trial/694-view-jit (238144b4b8, run 42535123022), one slider step on the Witch slide runs the editor's syntax recalculation (Editor.Update.calculate, timed as "syntax" in CodeWithStatics) 6 times, 59 to 70 ms; statics once, 16 to 20 ms; calculate 4 times, 116 to 134 ms; and the worker composes its request again, 24 to 50 ms. Two of the four updates are the worker's answers, which change no code at all, and still run syntax twice each. Today the slider writes its model back into the program as a literal, so everything downstream treats it as a code edit. The fix: a model-only edit keeps the syntax, statics and elaboration it had and swaps in the new model value, as ^report(46)'s speculation on compiling the run puts it: each livelit use's model a parameter, so an edit to a model is a new argument, not new code. It is also the first step to a compiled run (^ticket(694)), and pairs with ^ticket(720) (draw once).Matthew, 2026-11-08 16:5x, in chat: "When only the slider changes, there's no reason to do anything related to syntax. Somehow, we need to fix that gap." And: "Let's keep working on each of these. Should we hazel-jit more of the evaluator?"
^ticket(729)hazel, hazeljs example, ancient-oracle: the I Ching app, its casting and reading in Hazel, its lines revealed one by one
queued
hazel
The I Ching app (i-ching/): a reading cast in Hazel, its six lines revealed one at a time, bottom to top. In Hazel: a line's value (6 old yin, 7 young yang, 8 young yin, 9 old yang); casting a line by three coins (odds 1/8, 3/8, 3/8, 1/8) or by yarrow stalks (1/16, 5/16, 7/16, 3/16; the 49 stalks divided three times), with a switch, the page passing in the random numbers; the hexagram from six lines (its King Wen number, from the two trigrams); and the changing lines, which give the relating hexagram. On the page: cast a line at a time, each drawn as it comes, the coins or stalks shown, then the hexagram, its name, the changing lines and the second hexagram. The Hazel modules beside it in Hazel's editor, as the Petri example has them, and the page's own JS answering while they have an error or a hole.Matthew, 2026-11-15 07:1x, in chat: "we recently used the hazel npm package to create a demo app for petri nets. [...] I'd like to create a new repo with a similar flavor, but this time, the focus is on 'ancient oracles'. I want to formalize two oracles, each as a standalone app like the petri net one. They can share a repo, but they should otherwise be separate apps, on separate pages, etc. They share a common front page, explaining the 'series' of oracles, starting with these two: I Ching, Tarot reading. [...] Ultimately, we want the 'core logic' of these two oracles to be expressed in Hazel, and displayed next to some UI showing the interactive features (the I Ching one can reveal the lines, one by one, in a reading --- the tarot can reveal cards one by one, etc)." His answers to my four questions (07:2x): the repo is hazeljs-oracles; tarot art is the 1909 scans plus our own SVGs; I Ching casts by coins and by yarrow stalks, with a switch; the procedure is in Hazel, the page supplies random numbers. Then: "create tickets --- this is related to more exercising of the hazeljs npm package, so they are hazel tickets, technically. But let's have another chip for 'hazeljs example', and another chip for 'ancient-oracle'".
^ticket(731)hazel, hazeljs example, ancient-oracle: the Tarot cards' faces, the 1909 Rider-Waite-Smith scans
queued
hazel
The 1909 cards, scanned, as the Tarot app's faces. Pamela Colman Smith's 78 cards (1909) are in the public domain in the US (the copyright was never renewed) and in the UK and EU since 2022 (she died in 1951). Wikimedia Commons has scans of each; take them from there, check each file's licence tag, credit her and the scan's source in NOTICE, and keep the whole deck small (sized for the page, a few MB at most).Matthew, 2026-11-15 07:1x, in chat: "we recently used the hazel npm package to create a demo app for petri nets. [...] I'd like to create a new repo with a similar flavor, but this time, the focus is on 'ancient oracles'. I want to formalize two oracles, each as a standalone app like the petri net one. They can share a repo, but they should otherwise be separate apps, on separate pages, etc. They share a common front page, explaining the 'series' of oracles, starting with these two: I Ching, Tarot reading. [...] Ultimately, we want the 'core logic' of these two oracles to be expressed in Hazel, and displayed next to some UI showing the interactive features (the I Ching one can reveal the lines, one by one, in a reading --- the tarot can reveal cards one by one, etc)." His answers to my four questions (07:2x): the repo is hazeljs-oracles; tarot art is the 1909 scans plus our own SVGs; I Ching casts by coins and by yarrow stalks, with a switch; the procedure is in Hazel, the page supplies random numbers. Then: "create tickets --- this is related to more exercising of the hazeljs npm package, so they are hazel tickets, technically. But let's have another chip for 'hazeljs example', and another chip for 'ancient-oracle'".
^ticket(732)hazel, hazeljs example, ancient-oracle: the Tarot cards' faces, our own SVG deck, a switch away from the scans
queued
hazel
Our own deck, in SVG, a switch away from the 1909 scans. Simple faces in the series' look: the 56 minor arcana generated (a suit's sign drawn as many times as the card's number, the court cards as a figure and a sign), the 22 major arcana drawn by hand, simply. Ours, under our licences. (An idea: the faces drawn from a definition in Hazel, as the Petri net is drawn from Main.)Matthew, 2026-11-15 07:1x, in chat: "we recently used the hazel npm package to create a demo app for petri nets. [...] I'd like to create a new repo with a similar flavor, but this time, the focus is on 'ancient oracles'. I want to formalize two oracles, each as a standalone app like the petri net one. They can share a repo, but they should otherwise be separate apps, on separate pages, etc. They share a common front page, explaining the 'series' of oracles, starting with these two: I Ching, Tarot reading. [...] Ultimately, we want the 'core logic' of these two oracles to be expressed in Hazel, and displayed next to some UI showing the interactive features (the I Ching one can reveal the lines, one by one, in a reading --- the tarot can reveal cards one by one, etc)." His answers to my four questions (07:2x): the repo is hazeljs-oracles; tarot art is the 1909 scans plus our own SVGs; I Ching casts by coins and by yarrow stalks, with a switch; the procedure is in Hazel, the page supplies random numbers. Then: "create tickets --- this is related to more exercising of the hazeljs npm package, so they are hazel tickets, technically. But let's have another chip for 'hazeljs example', and another chip for 'ancient-oracle'".
^ticket(733)hazel, hazeljs example, ancient-oracle: the oracles' texts, Legge's I Ching (1882) and Waite's card meanings (1910)
queued
hazel
The words of each reading, from public-domain books. For the I Ching, James Legge's translation (Sacred Books of the East, vol. XVI, 1882): each hexagram's judgment and its six line texts, taken from a scan of the book (archive.org) rather than a site that sets its own terms. For the Tarot, A. E. Waite's The Pictorial Key to the Tarot (1910): each card's meaning, upright and reversed. Short names and keywords of our own until then.Matthew, 2026-11-15 07:1x, in chat: "we recently used the hazel npm package to create a demo app for petri nets. [...] I'd like to create a new repo with a similar flavor, but this time, the focus is on 'ancient oracles'. I want to formalize two oracles, each as a standalone app like the petri net one. They can share a repo, but they should otherwise be separate apps, on separate pages, etc. They share a common front page, explaining the 'series' of oracles, starting with these two: I Ching, Tarot reading. [...] Ultimately, we want the 'core logic' of these two oracles to be expressed in Hazel, and displayed next to some UI showing the interactive features (the I Ching one can reveal the lines, one by one, in a reading --- the tarot can reveal cards one by one, etc)." His answers to my four questions (07:2x): the repo is hazeljs-oracles; tarot art is the 1909 scans plus our own SVGs; I Ching casts by coins and by yarrow stalks, with a switch; the procedure is in Hazel, the page supplies random numbers. Then: "create tickets --- this is related to more exercising of the hazeljs npm package, so they are hazel tickets, technically. But let's have another chip for 'hazeljs example', and another chip for 'ancient-oracle'".
^ticket(756)hazel-jit: semantic consistency with the interpreter, checked in CI
queued
hazel
performance
What hazel-jit's code computes is what the interpreter computes, for every program it compiles: the same values, the same errors (stuck terms), the same output. Ensured in CI: a check that runs a set of programs (the slides', the test suite's, the oracles') both ways and fails on any difference. And in the design decisions, written down: numbers, errors, what is not compiled. Today HazelJit.re says numbers "may differ from Hazel's: allowed, for the best case": no longer.Matthew, 2026-11-15 11:4x, in chat, summarizing his meeting with Cyrus on Friday 11-13 at 10:00 Mountain: "Let me summarize the meeting with Cyrus on Friday. [...] create tickets for tomorrow morning, or late tonight, after other stuff is done. items (all about hazel-jit): * we want semantic consistency with Hazel the interpreter, and to ensure that with CI, and our design decisions."
^ticket(757)hazel-jit: Int and Nat arbitrary precision in the compiled code (JS BigInt), as the interpreter's Bigint
queued
hazel
performance
Int and Nat as big integers in hazel-jit's output. The interpreter's Int and Nat are Bigint.t (Atom.re); hazel-jit makes them JS numbers. Compile them to JS BigInt (or something comparable), with their operations, conversions and printing as the interpreter's. Measure what it costs against JS numbers.Matthew, 2026-11-15 11:4x, in chat, summarizing his meeting with Cyrus on Friday 11-13 at 10:00 Mountain: "Let me summarize the meeting with Cyrus on Friday. [...] create tickets for tomorrow morning, or late tonight, after other stuff is done. items (all about hazel-jit): * arb precision Ints and Nats --- we want to use bignum in the output if we can, or something comparable, not native JS numbers for Ints and Nats."
^ticket(759)hazel-jit: divide by zero stops at a stuck term with the error, as the interpreter's DivideByZero
queued
hazel
performance
Divide by zero, as the interpreter has it. Integer division by zero in the interpreter is InvalidOperationError.DivideByZero (Operators.int_divide, sint_divide), a stuck term saying "Error: Divide by Zero"; hazel-jit's Math.trunc(a / b) gives Infinity or NaN. Compile the check, and the same stuck term (Int, SInt and Nat; modulo too).Matthew, 2026-11-15 11:4x, in chat, summarizing his meeting with Cyrus on Friday 11-13 at 10:00 Mountain: "Let me summarize the meeting with Cyrus on Friday. [...] create tickets for tomorrow morning, or late tonight, after other stuff is done. items (all about hazel-jit): * similar for divide by zero"
^ticket(760)hazel-jit: still nothing with holes compiled; the stepper's filters excluded
queued
hazel
performance
What hazel-jit leaves to the interpreter, kept and written down: code with holes (empty holes, multiholes, dynamic error holes, invalid text: already Unsupported), and the stepper's functions: the filters hide P in e, eval P in e, pause P in e and debug P in e, which tell the stepper which steps to show or skip (already Unsupported, "a stepper filter"), and, to check, any run shown in the stepper, which needs every step.Matthew, 2026-11-15 11:4x, in chat, summarizing his meeting with Cyrus on Friday 11-13 at 10:00 Mountain: "Let me summarize the meeting with Cyrus on Friday. [...] create tickets for tomorrow morning, or late tonight, after other stuff is done. items (all about hazel-jit): * for the output of hazel-jit, we should continue to avoid translating code with holes, and we should exclude "stepper functions" (don't know what that is myself, please explain later)."
^ticket(761)hazel-jit: probes and its other limits, overcome in the coming days (its step limit: ^ticket(763))
queued
hazel
performance
hazel-jit's limits, one at a time. Probes (the values a probe shows, which compiled code would have to record as the interpreter does), and the forms it gives up on (HazelJit.re's Unsupported: closures with their own environment, partial application, tests, quotations, reverse application, recursion over more than one name, ...). First a list, then one at a time. (The step limit has its own ticket, ^ticket(763), on Cyrus's concern.)Matthew, 2026-11-15 11:4x, in chat, summarizing his meeting with Cyrus on Friday 11-13 at 10:00 Mountain: "Let me summarize the meeting with Cyrus on Friday. [...] create tickets for tomorrow morning, or late tonight, after other stuff is done. items (all about hazel-jit): * probes, step budgets, and all other limitations we should work to overcome in the coming days."
^ticket(762)hazel, performance: a function with no declared result type costs 5-7x a step at run time (the casts), measured in the Tarot
queued
hazel
performance
Hazel code that declares what a function takes but not what it returns runs several times slower. Measured in the hazeljs-oracles Tarot (^ticket(730), Node, hazeljs 0.0.4): a plain recursion step costs about 0.05 ms; a step of take (returning a pair), declared only as fun (cs, k) : ([Card], Int) ->, 0.36 ms, and with its whole type, let take : ([Card], Int) -> (Card, [Card]) = fun (cs, k) ->, 0.07 ms. A list built by such functions (the deck) was slow to walk afterwards too, 0.3 ms a step against 0.05: the cost travels with the values. Declaring every type made the deal 3.7 times faster. Most Hazel code (slides, examples) declares argument types only. To do: confirm the mechanism in Hazel's own code (where the elaborator puts casts for an unknown result type, and what the evaluator does with them on each return and in a list), measure on a current dev build, and choose a remedy: infer a recursive function's result type in the statics, insert no cast where the body's type is known, or make the casts cheap (collapse them, check once). It bears on hazel-jit matching the interpreter, too (^ticket(756)).Matthew, 2026-11-15 11:4x, in chat, "Yes, mint it", to my question after ^ticket(730): "Mint a ticket for that run-time type-check cost in Hazel?"
^ticket(763)hazel-jit: a step limit for compiled code, so a function that diverges stops instead of hanging, before more compiled functions run on the main thread
queued
hazel
performance
A step limit for hazel-jit's code. The interpreter counts its steps (EvaluatorState.step_count) and stops a run that goes on too long (StepLimitExceeded, ProgramResult.Timeout); compiled code has no limit, so a Hazel function that diverges loops forever. And compiled code already runs on the page's main thread: since ^ticket(722), at a livelit's event the slide's compiled run draws the livelits before the worker's run comes back (behind the Compiled views setting), so a diverging function there would freeze the page. To do: count steps in the compiled code (compiled code has no loops, so a counter at each function entry, and perhaps each match, catches any run that does not end), with a budget as the interpreter's; at the limit, stop as the interpreter does (a stuck term or its step-limit result, as ^ticket(756) decides), and leave the run to the worker. Deep recursion's JS stack overflow (a RangeError) the same. Measure what the counter costs. Required before more compiled functions run on the main thread.Matthew, 2026-11-15 11:5x, in chat: "another major concern from Cyrus, from meeting on 11-13: We need a way to limit compiled hazel functions that diverge --- we need a step limit. esp if we continue to optimize by including certain jit-compiled hazel functions into the main thread"
^ticket(764)hazel, bug: int_mod, sint_mod, nat_mod and float_mod by zero crash the interpreter (InvalidBuiltin "mod")
queued
hazel
Dividing by zero in a modulo builtin crashes the interpreter. BuiltinsBase.re's int_mod, sint_mod, nat_mod and float_mod each answer a zero divisor with dynamic_error_hole(ap(Forward, builtin_fun("mod"), d1), DivideByZero), but there is no builtin named mod, so evaluating it raises InvalidBuiltin("mod") instead of showing Error: Divide by Zero. On dev too (four places, since at least b4afb24852, 2025-07-02, the builtins' move). Fix: each names itself (builtin_fun("int_mod") and so on), with a test of each by zero.Found 2026-11-15 16:0x by ^ticket(759)'s agreement test int_mod(7, 0), in CI (run 43759464480): the interpreter raised [exception] (InvalidBuiltin "mod").
^ticket(765)hazel, hazeljs example, ancient-oracle: the oracles on an older Android phone in Firefox, painfully slow; what helps legacy hardware
hazel
performance
The oracles on older phones. Measured on the laptop: hazel-lib.js 2.8 MB (174 ms to load in Node); the program's build 621 ms (I Ching) and 499 ms (Tarot) in Node; a cast 0.4-1.2 ms, a deal 7-105 ms; and Hazel's editor in each listing, a whole Hazel app, 7.2 MB of JavaScript and 49 MB, five on the I Ching's page and four on the Tarot's. A key press in the question does only the heading's text on the page (checked at desktop and phone widths: no frame resized, nothing sent to the frames); on the phone the five editors' load and memory, which Firefox on Android may run on the page's own thread, are the likely cause. Two changes, Matthew's: the editors on request (done), and the Hazel compiled ahead of time with hazel-jit (planned, ^report(54) #ahead).Matthew, 2026-11-16 ~10:40, in chat: "I tested our oracle apps on my old Android phone, in Firefox. It was painfully slow. To draw each card, or line. But especially so for each key press when I was trying to edit the question in I ching oracle. Is there anything we can do to help legacy hardware run this code faster? Would Jit help, somehow?" Then: "If there are lessons for other users of hazeljs, we should document those for legacy hardware." "Maybe one thing to try: only reveal the Hazel edit boxes when asked to; only run the pre-compiled JS code for the Hazel code (running hazel jit for it during the packaging step for the HTML/JS, for a short load?)" "it seems like something is happening each time I edit (insert one char), for the I ching oracle" "for MUDU, we had a way to record a 'speedrun' that we wrote back into a public etherpad instance --- can we add that feature to each app, plz?" "under advanced for each app, also please list versions, a la MUDU" "Let's add the idea of precompiled jit to report 54, whether or not it works."
^ticket(766)hazel-jit: mixed mode, compiled functions run inside the interpreter (path 3 of ^report(54)'s three ways to go)
hazel
performance
Mixed mode. The interpreter stays in charge of a program (holes, probes, the stepper as now) and calls its complete functions compiled, as it calls builtins: a compiled function becomes a builtin made at run time (Transition.re's BuiltinFun lookup in Builtins.forms_init), and on any stop (the step budget, an invalid operation, an argument holding a hole) it falls back one call at a time to the original Hazel function. The design is ^report(54)'s #mixed. First step: such a builtin behind a setting, for let-bound functions with their whole types declared; then the consistency sweep run a third way, mixed, against the interpreter alone; then measured on a rule-heavy program.Matthew, 2026-11-16, in chat, on report 54's three ways to generalize hazel-jit: "I like the mixed mode idea a lot. number 3 in your list of paths". 2026-11-17 08:4x: "I'd like to sprint for a few hours, to get as much completed as possible, and expose as many open design questions for Cyrus/team as possible."
^ticket(767)hazel-jit: count the interpreter's steps in compiled code, exactly, and then probes (from Matthew and Cyrus's meeting of 2026-11-13)
hazel
performance
The interpreter's step counts in compiled code, then probes. The interpreter's count (EvaluatorState.step_count) goes up one at every transition, Proper or Administrative (Transition.re's 36 step kinds), and one more after each pattern match (RecordPatMatch); it is the same with or without incremental reuse, and probe samples are stamped with it (step_start, step_end; ObsTrace spans). Compiled code follows the same path, so most forms add a count known at compile time; the rest (casts carried by function values, Ascription pushes into unevaluated terms) need care. Method: the sweep compares every evaluator test's count, as it compares values. Then probes: compiled code emits the interpreter's observation events (ObsTrace) at the same steps, and the existing fold mints the samples.Matthew, 2026-11-17 ~09:20, in chat, answering ^report(54)'s questions on mixed mode from his meeting with Cyrus on Friday 11-13: "we want to mimic the step counts in the compiled code, if possible. can we make it match the interpreter in each case? if not, why not?" and "if we can mimic the step counts in the compiled code, can we support probes? if not, why not?"
^ticket(768)hazel, hazeljs example, ancient-oracle: an astrology oracle, its rules in Hazel (signs, positions, chart, aspects, reading, the wheel)
hazel
A third oracle: astrology, its rules in Hazel. Modules: Zodiac (signs, elements, modalities, rulers), Sky (positions from the date, ported from permissive sources: astronomia, MIT, Meeus's algorithms; checked against Astronomy Engine, MIT), Chart (Julian day, sidereal time, ascendant, midheaven, houses), Aspects (orbs; natal and transits), Reading, Wheel (the chart's layout as data, the page drawing it). Birth data stays on the device. Not: Swiss Ephemeris, Kerykeion, pyswisseph (AGPL), mivion/ephemeris (no licence). Glyphs: our own SVG or AstroChart's (MIT).Matthew, 2026-11-17 ~10:50, in chat: "can we imagine another 'oracle' app, based on astrology ideas? can we create 'basic' SVG graphics for the signs, and anything else relevant? are there open source resources for graphics? are there open source resources for doing readings, based on the current day, and a person's chart, as defined by: birth time, and birth place?" Then: "the idea would be to rewrite the basic rules in Hazel, as much as possible. We'd credit the open source code from where-ever it came, as the source", and "Yes, start it".
^ticket(769)hazel-jit: holes across the boundary, a starter project for John on the Hazel team (^report(55))
🪷 blocked on Matthew
hazel
A first hazel-jit project for John: let a value with a hole cross into compiled code and out again unopened. In mixed mode (^ticket(766)) a call whose argument holds a hole anywhere falls back to the interpreter whole, as to_js cannot convert a hole. The idea: an opaque JS value standing for the hole, its term kept in a table, given back exactly by of_js; any operation that would open it stops the run (Runtime.indet) and the call falls back. Keeps the 11-13 rule that no code with a hole is compiled (^ticket(760)). Brief: ^report(55) (https://matthewhammer.org/hazel/reports/055/): where compiled code looks inside a value, three places for the checks (lean: a second, checked version used only when a hole arrives), a first step, files to read on build 49, four questions to settle with Cyrus, and a warm-up on dev (hazelgrove/hazel#2831).Matthew, 2026-11-17 afternoon, in chat, passing on John's message (an undergraduate on the Hazel team, working with Cyrus): "I was wondering if you had any work that where I could help out. I know in the meeting you were talking about the conversion from holes in hazel to JS was a issue would that be something you would want me to look into?" Then: "Yes, write the brief".
^ticket(770)hazel-jit: ^report(56), What Still Falls Back: the same-answers check on build 50, and every case the interpreter still does
hazel
^report(56): What Still Falls Back. Starts from ^report(54)'s same-answers check on build 50 (233 of the evaluator's 313 programs compile and give the interpreter's value, none differ), and sorts the other 80, the slides' limits and the rest four ways: limits to lift, open decisions (25: ^report(54)'s 17, ^report(55)'s 4, 4 new), holes (^ticket(769), John's, kept apart), stuck terms (later, Matthew's; shares machinery with holes). Plus the two uses (views, mixed mode) and how the interpreter's step counts and limit answer divergence.Matthew, 2026-11-18 morning, in chat: "I'd like to create report 56 as focused on this status: https://matthewhammer.org/hazel/reports/054/#consistency", with sections on the limitations to lift, the open decisions (from ^report(54) and ^report(55)), compiled code with open holes ("the carve out for John's contributions"), and compiled code with stuck terms ("where some limitations like overflow overlap with some machinery we need for holes"); the log scatter plot at the start; the evaluator's test cases compiled code cannot handle, listed again from ^report(54); and a section on the two uses, views and mixed mode, with step counts and their limits against divergence (Cyrus, 11-13).
^ticket(771)hazel-jit: ^report(57), What the Livelits PR Compiles: what hazelgrove/hazel#2819 uses hazel-jit for, for Matthew's talk with Cyrus (11-18) and the mergeathon (11-19)
hazel
^report(57): What the Livelits PR Compiles. In the app, #2819 (head c419e01559 = build 12 + 2 commits, 11-09) uses hazel-jit for livelits only: compiled views (HazelJitDOM), compiled updates (call_update, a diff), the slide's whole run (HazelJitRun) to draw livelits sooner, and the worker's request held 400 ms; outside: the CLI, a measuring page, tests, the Firefox check. Lacks everything since (123 commits to build 50): the page work B1/B2/B4/B5, the correctness work, the step budget, mixed mode. ^report(52)'s ten changes marked hazel-jit or not and in #2819 or not; its nine increments brought up to date; for the mergeathon, and five decisions for Cyrus.Matthew, 2026-11-18 morning, in chat: "to what extent is https://github.com/hazelgrove/hazel/pull/2819 using hazel-jit, for livelit views only? for anything else?", then "please write a new report with what you just told me, and sections with more details for each point. I want to talk to Cyrus today about what features we are using for responsive livelit performance, and think about how to merge into dev. Another mergeathon tomorrow".
^ticket(772)hazel, merge-a-thon 11-19: ^report(58), What Could Merge Today: our open PRs that are not livelits, sorted by what each needs
hazel
^report(58), What Could Merge Today (https://matthewhammer.org/hazel/reports/058/): our 48 open PRs; 9 livelits left out; of the 39: 11 ready for a review (#2812, #2825, #2818, #2816, #2652, #2671, #2675, #2651, #2815, #2603, #2697 once marked ready), 3 with one conflict (#2613 approved, #2606, #2661), 9 waiting on a decision (#2828, #2793, #2592, #2614/#2610, #2717, #2608, #2729/#2749), 16 not today. Queue order in three groups of up to five.Matthew, 2026-11-19 ~07:10, in chat: "today is another hazel team merge-a-thon, where we are going to try to review and merge a lot of stuff, if possible. To prep, Let's look at hazel dev, and let's look at our open PRs that are small and self-contained (not livelits, but everything else could be a candidate today)" and "Please create a report with whatever PRs the team could consider."
^ticket(773)hazeljs: the team's review of its API and packaging (Cyrus's ask, 11-19); a draft issue on where Hazel's editor comes from
hazel
Not stale. hazeljs 0.0.8 ships hazel-lib.js (from js-library-embed 2ab33ebd90, #2719) and hazel-listings.js, which frames https://build.hazel.org/embed-editable/index.html#embed: the Deploy preview of draft #2814 (9d4667762e, 11-06), 7.9 MB decoded / 2.2 MB sent. Editor and library at different commits (the editor lacks 6c283c8a9f and 2ab33ebd90); package.json pins only the library; the frame takes messages only from matthewhammer.org, localhost, 127.0.0.1 and itself (EmbedProtocol.re); both branches 171 behind dev. Draft issue for hazelgrove/hazeljs: options A (editor in the package), B (versioned editor URL), C (one commit, recorded).Matthew, 2026-11-19 ~09:10, in chat: "Cyrus wants the team to review our hazeljs repo, to make sure it's exposing the right API, and is packaged the right way. I'm reading this list now ... https://github.com/hazelgrove/hazeljs#limits I'm most confused by the way that the tile editor is loaded --- not part of the package, really? is this stale text or what?", then "Draft it".
^ticket(778)hazel: no copy of Helvetica Neue; IBM Plex Sans as the interface font (#2837), from ^report(59)'s open fonts
hazel
hazelgrove/hazel#2837 drops the two Helvetica Neue files (a commercial typeface, its notice forbids redistribution) and ships IBM Plex Sans (OFL-1.1, weights 400 and 700, Latin, 22 KB each, @fontsource/ibm-plex-sans 5.3.0) as --ui-font. ^report(59) compared eleven open fonts in Hazel's interface.Matthew, 2026-11-19 11:08: "Cyrus and team want to know where we are using Helvetica Neue", then "Open the PR"; 11:13 "Let's look for an open font for the interface, shipped with Hazel", "Make the page"; 11:38 "I think IBM Plex Sans looks like the best choice to replace Helvetica Neue", "Let's amend our PR that removes Helvetica Neue to instead use IBM Plex Sans".
^ticket(781)hazel-jit: what still says 32-bit SInt: ^report(54)'s overflow section, #2819 (livelits x jit) and trial/768-astrology-aot
hazel
Revise ^report(54)'s overflow section to 64-bit SInt (a Bigint in the interpreter; in compiled code a number while safe, a BigInt past it, the bound checked on the BigInt path; the Node timing); bring #2819 and trial/768-astrology-aot to 64 bits when they next move.Left over from ^ticket(758), 2026-11-19: SInt is 64 bits now in #2828 and #2817.
^ticket(782)hazeljs examples: Solitaire (Klondike), its rules in Hazel, open-source SVG cards and a JS table, toward a livelit
hazel
Under One-player games on the Hazel activities site: Klondike's deal, legal moves, a move applied and the win, as Hazel functions of the game state (the shape a livelit will want), compiled ahead of time like the oracles; a public-domain SVG deck; a JS table with drag and tap, undo, full screen, offline and its own icon.Matthew, 2026-11-19 15:24: "A new activity: solitaire, as a set of hazel rules, and open source SVG images, and JS-based GUI interaction with the rules, in preparation for making a livelit (not here) for that same behavior."
^ticket(791)hazeljs / Hazel statics: a call into another module costs the build seconds
hazel
performance
In hazeljs 0.0.4 (Node), a module that calls into another module costs the build seconds, and calls through such a function compound. Minesweeper: Hint.cell calling Play.cell_at built in 8.7 s and every function calling it ran out of memory at a 1.2-1.5 GB heap (a local copy of the lookup: 0.8 s). Go: Board alone 0.5 s, Board + Play (about 18 references to Board.*) 8.1 s, Board + Play + Bot joined into one module 2.2 s. Find where the build spends it (statics of a module projection? elaboration of the other module's record type at each use?) and whether Hazel's own editor pays it too. Two more found 2026-11-19/20 building Mahjong (^ticket(786)): (1) a top-level function named `use` makes the build hang, no error (renamed `helps`; `hint` is also taken, as an error); (2) the build's stack grows about 11 KB per top-level definition: 91 overflowed Node's default stack (984 KB) and the browser's (Stack_overflow at build), 44 build at 700 KB. Find which keyword `use` is, and whether the module's let-chain can be checked without one frame per definition.Found 2026-11-19 building the hazeljs examples (^ticket(790), ^ticket(785)).
^ticket(792)hazeljs: an Int past 2^31 passed in from JavaScript comes back cut to 32 bits
hazel
In hazeljs 0.0.4, Hazel's Int arithmetic is wide inside a program (65536 * 65536 gives 4294967296), and a large Int goes out to JavaScript whole (4293918720); but the same number passed back in as an argument arrives as -1048576, cut to a signed 32-bit int (ToInt32). Checkers keeps its board as 32-bit sets and reads them again as 32 bits at the entry points (wide: b + 2^32 when negative). Fix in hazeljs's JS-to-Hazel conversion, and line it up with SInt as 64 bits (^ticket(781), #2828): a JS number past 2^53 should arrive as a BigInt, or be refused. Also (11-20, pinball probe): a whole-number JS value passed where Hazel expects a Float (200 for 200.0) is taken as an Int, and the run overflows the stack; a Float that comes out as 0.0 goes back in as 0. Convert by the declared type, as hazel-jit's adapters do.Found 2026-11-19 building Checkers for the hazeljs examples (^ticket(787)).
^ticket(795)hazeljs (npm): one big package that includes Hazel's tile editor; the open questions
queued
🪷 blocked on Matthew
hazel
The hazeljs npm package, next version: one package that includes the tile editor (for now), built with #2837 (IBM Plex Sans in place of Helvetica Neue, the unlicensed font) and #2842 (Material Icons shipped, the command palette offline) though they are not yet on dev. Then a list of the other open questions for the package, for Matthew.Matthew, 2026-11-20 ~10:5x, in chat: "after we update all of the games to use hazel-jit. Let's revisit the hazeljs npm package, and the open decisions about how to include the tile editor components within it. the main idea: for now, one big npm package, that includes the editor; we opened PRs yesterday to remove unlicensed font and to include things for offline use; let's include those PRs even though they aren't yet on dev. they likely will be included in dev soon. let me know what other open questions that are for the npm package"
^ticket(811)Hazel report (public WIP): Checkers, Hazel playing itself 6 moves ahead: how much of the search is repeated, across the two players and across the game's moves; would a shared memo table explore it faster
queued
🪷 blocked on Matthew
hazel
Instrument Checkers' 6-ahead search (the compiled rules' own search, mirrored in JS step for step): every position searched, keyed by board and side to move and depth left, counted per move and per player across whole self-play games. Measure: distinct versus total positions; repeats within a move, across a player's own moves, and across the two players; what a shared table (by position and depth) would save in nodes and time, and whether its answers match the private searches. Then Go, as far as its search allows. A public WIP report in our series, with an Outline, each section opening with its answer.Matthew, 2026-11-21, in chat: "After minesweeper, I want to draft a new public WIP report: For checkers (to start, but also Go eventually): if we use a deep, 6-move-ahead strategy and play the entire game with two AIs, how much computation is being repeated across those two AIs, across all of their \"moves\". Hypothesis to reject or confirm: Many, many \"sub worlds\" are shared between players and across the game's progression, so there's a lot of redundant re-computation of the same \"game spaces\". For a situation where Hazel plays itself, and we only want to know about the strategy's emergent properties, we aren't concerned about \"privacy\", and we expect that AI's that share their strategy search state could explore this emergent space faster than those that try to remain private to each other (their memo tables probably overlap a lot, in some abstract sense that can be exploited in a practical way)."
^ticket(846)hazel-jit / Hazel: explore a builtin sequence type, Seq, beside List: a balanced tree with JS arrays at its leaves
queued
🪷 blocked on Matthew
hazel
performance
A Seq type beside List: a container whose representation is a balanced tree with JS arrays at its leaves. Check first whether JS has one (it has no built-in: arrays are flat; candidates among libraries: Immutable.js's List, a 32-way trie of arrays, and @funkia/list, a relaxed radix-balanced tree, to be checked against the workload); else build it from fumola's level-tree sequence (fumola/collections/levelTree.fumola: Pugh and Teitelbaum) with array chunks at the leaves. What matters most (Matthew): a balanced representation that needs no rebalancing, the levels fixing the shape so an edit never rotates; the caching that a content-determined shape allows matters less. So levels may come from any well-spread source (a counter's hash, a random draw), not only from symbols. Workload: splicing and appending at arbitrary positions, moderate to large sizes (1,000 to 1,000,000), against plain arrays (splice, copy), List as cells, and the hybrid list (cells + array segments). Then how Seq would enter Hazel: a builtin type and its operations, compiled code's runtime, and the page boundary (a Seq's leaves are arrays, so a page's array is a Seq of one leaf with no conversion).Matthew, 2026-11-23 ~13:4x, in chat: "i want to push another exploration onto our active ticket queue for today/tomorrow --- explore a new builtin sequence type, as complement to List --- Sequence or Seq, for short maybe? This type is a container type like List, except that: * the underlying representation uses the JS sequence type (is there one that uses balanced trees behind the scenes, with arrays at the leaves of the tree?) * if not, let's build that idea, based on the Sequence type from fumola, but extended to have JS arrays at the leaves. To compare with plain arrays, List, and our hybrid List representation, let's consider a load that does splicing and appending at arbitrary positions for moderate to large sequences/lists/arrays." Then, ~13:5x: "the caching aspect of the level tree is not as important as having a balanced representation that does not require rebalancing"
^ticket(847)hazel-jit / Hazel: records more native, as for List: a labeled tuple held as a JS object by its labels
current
hazel
performance
Records the page's way: a labeled tuple (x = 1, y = 2) as a JS object {x: 1, y: 2}. Today compiled code holds it as an array carrying its labels and a page as an object, so a list of records costs its length to cross even as arrays (^report(54) #lists-crossing: ~0.3 s for a million, against 6 ns page-shaped). Explore both places a record lives: compiled code's runtime and shapes (objects by label; tuples without labels stay arrays; what $R.tup, dot, eq and the value boundary become), and the interpreter's own values (a labeled Tuple of TupLabel terms: what holding a record natively there would take, and what it would buy at the crossing and in mixed mode). Measure the crossing at every size, as for lists, and the games.Matthew, 2026-11-23 ~14:0x, in chat, answering converters or Seq first: "Converters first / before Seq, let's explore making records more \"native\" in the interpreter, as we are doing now for List."
^ticket(852)Gnome world 0.0.104-0.0.105: no zoom in full screen (iPad: only sky and hills); 🐞 what the game sees under Advanced; a 🔊 in villagers' bubbles in their own voices
queued
🪷 blocked on Matthew
Matthew, 2026-11-24: N and M on the iPad (a broken screen, touch input maybe odd): while walking 'the screen zooms into some form that gets stuck', only background hills and sky; out of full screen right, back in wrong. Also N: a listen button in NPC bubbles, voices matching the NPC. And: 'add something I can run under advanced that produces a string to paste into the etherpad' about camera/view and other state; 'let's have fullscreen restore a normal unpinched view by default'. Matthew does not think it is a canvas memory cap ('the game runs fine for a while').Matthew, 2026-11-24 ~12:50-13:20, in chat (N's feedback; the iPad zoom bug).