Hazel reports · ^report(37) · agenda work in progress · started 2026-11-02, updated 2026-11-05 12:26 MST

Agenda: Matthew and Cyrus, Thursday 2026-11-05, 10:00 Mountain

The topics Matthew brings to his meeting with Cyrus on Thursday 2026-11-05 at 10:00 Mountain time (10:00 MST, Boulder; moved from Wednesday 2026-11-04 at noon), in four parts: performance, Hazel embedded in JS programs, DSL tile editors as livelits, and long types shown whole. A work in progress: compiled over the days before the meeting and updated as items move, so each item says where it stands, as of when, and what it needs from the meeting.

The items, by section#

ItemStatus
1. Performance, and the cost of undo
1Undo in O(log n)? What an edit and an undo cost nowmeasured; three fixes on #2635
2How much sharing is lost passing data to and from the eval workermeasured; the worker keeps what it composed, and an undo finds it on Full Body; on #2635 since 11-05
3Why #2635's evaluator takes half dev's steps on the PerfBudgets programexplained; a PR to dev, #2793: reviewed, ambivalent (speed against special cases)
4#2635 is up to date with dev's merge daymerged; #2635 all green, the deck included
2. Hazlets: Hazel embedded in a JS program
5A demo: MUDU's game scriptsto show
6Should the library be official?proposal
7A prototype npm package: hazeljshazeljs 0.0.4 is on npm
3. DSL tile editors as a kind of livelit
8A livelit whose literal is a grammar and whose view is a tile editor for itidea; a first prototype on draft #2806
4. Long types, shown whole
9The type expansion PRs: where they stand, and can they go to dev?#2676 green and mergeable, not reviewed
10And the types in Γ: shown whole, on several lines?built: draft #2698 toward dev, and on #2635; one pick waits

In short. As of 2026-11-05 12:26 MST.

  1. Performance: an edit and an undo each cost time in proportion to the program; three fixes on #2635 cut that, and O(log n) per edit is the question for the meeting.
  2. Hazlets, Hazel in a JS program's event handlers: the game's scripts, whether the library should be official, and hazeljs on npm.
  3. DSL tile editors as livelits: Cyrus's idea, now with a first prototype on IMP's grammar (#2806); is this the shape he meant?
  4. Long types, shown whole: #2676 is green but not reviewed; Γ's version waits on Matthew's pick of how to offer it.

Decided at the meeting#

1. Performance, and the cost of undo#

What an edit and an undo cost as programs grow, and the questions next to it. Measured in Node on #2635 (livelits × modular editors). The whole investigation of undo, in time and in space, is ^report(38) (in progress, 2026-11-03); its time measurements are ^report(36); the series is ^report(35) and before.

1. Undo in O(log n)? What an edit and an undo cost now measured; three fixes on #2635 #1 #

Asked by Matthew, 2026-11-02 · ^ticket(665) · as of 2026-11-04 09:04

10301003004008001,6003,2006,400definitions in the program (log scale)mslinearundo at 400 definitions: 18.5 ms after the first two fixes (23 before)undo at 800 definitions: 30 ms after the first two fixes (38 before)undo at 1,600 definitions: 61 ms after the first two fixes (80 before)undo at 3,200 definitions: 120 ms after the first two fixes (176 before)undo at 6,400 definitions: 292 ms after the first two fixes (422 before)undo 292redo at 400 definitions: 13 ms after the first two fixes (16 before)redo at 800 definitions: 16.5 ms after the first two fixes (30 before)redo at 1,600 definitions: 41 ms after the first two fixes (63 before)redo at 3,200 definitions: 85 ms after the first two fixes (130 before)redo at 6,400 definitions: 184 ms after the first two fixes (340 before)redo 184edit at 400 definitions: 10.5 ms after the first two fixes (14 before)edit at 800 definitions: 10 ms after the first two fixes (16.5 before)edit at 1,600 definitions: 22 ms after the first two fixes (34 before)edit at 3,200 definitions: 43 ms after the first two fixes (72 before)edit at 6,400 definitions: 106 ms after the first two fixes (163 before)edit 106after the first two fixesbefore
Each step against program size, both scales logarithmic: a line parallel to the dotted guide grows in proportion to the program. Solid: after the first two fixes; dashed: before. Release build, medians of 12 (^report(36)).
050100150undoundo before the fix: 141 ms141 beforeundo after the fix: 85 ms85 afterredoredo before the fix: 96 ms96 beforeredo after the fix: 41 ms41 afteran edit: about 46 msan edit: 46 msms per step at 3,200 definitions
The third fix (9df1b2601e): an undo had rebuilt the syntax twice. At 3,200 definitions, dev build, one run, medians of four steps (^report(38)).
MB the undo history keeps after 12 edits, Full Body05001,000#2597 as built+89 MB per edit#2597 as built: 1,048 MB1,048with the compactionlevel after 3 editswith the compaction: 159 MB159#2635 (has it)+1.6 MB per edit#2635 (has it): 52 MB52
Space: what the undo history keeps after 12 slider edits on Full Body. Andrew Blinn's compaction (6010128b7d, on #2469); dev does not have it yet (^report(38)).

Measured: a program of n top-level definitions (let v1 = v0 + 1 in …), an edit in the middle one, then undos and redos, each through the app's own update loop. From 400 to 6,400 definitions every step grows in proportion to n. At 6,400, after the first two fixes: an edit about 106 ms, an undo 292, a redo 184 (medians of 12), each followed by about 78 ms of statics. An undo cost about three edits and a redo about two, before the third fix (next). An undo is a redo plus a rebuild of the outline, which only the modular editors have: about a third of the undo, 39 ms at 3,200 definitions. A redo rebuilds it only when the program is not in the outline's memo of the last four, which is why the probe's last redo was slow. Even a redo that finds its outline costs 1.7 to 1.9 edits (^report(38), measured 2026-11-03, corrected 07:52). Pushing and popping the history itself costs almost nothing.

Found and fixed 2026-11-03: an undo rebuilt the syntax twice. The frame an undo schedules to realize the view counted as an edit, so it rebuilt in full the syntax the undo's own frame had just rebuilt. With it counted as an edit only when it changes the program, an undo is 40% faster and a redo 57% at 3,200 definitions; a redo then costs what an edit does (^report(38), the fix). On #2635 since 2026-11-03 (9df1b2601e). In numbers, at 3,200 definitions (a dev build, one run, medians of four steps): an undo went from 141 ms to 85 and a redo from 96 to 41, with an edit about 46, so an undo now costs under two edits and a redo about one. Not yet measured again at 6,400 or in a release build. And with the sidebar shown, every edit pays for the outline, about as much again as the edit itself, so making the outline's build touch only what changed matters for typing too, not only for undo.

In space: the history once kept a whole copy of the editor for every edit, and never cut it. On #2597 a Full Body tab kept 1,048 MB after 12 edits, 89 MB more with each. Andrew Blinn's compaction (6010128b7d, on #2469) keeps older entries without their derived data and always caps the history: 159 MB, level after the third edit. #2635 has it (52 MB); dev does not yet. It was found in October in five steps, after a test cap that never ran (^report(14)'s update). The whole story, and what is next for both costs, is in ^report(38).

Why it is linear: the incremental caches work (each step parses 1 or 2 definitions again, re-measures 1 or 2 chunks, compares 2 definitions' heads in statics), but around them are passes over every definition: rebuilding the top-level term, statics' walk down the chain of definitions, the outline (rebuilt on every undo and redo), layout's walk.

Fixed, on #2635: three fixes. Two pushed 2026-11-02 (394552d5d0, bfa36a6ede): the auto-probe recomputed the whole top level's skeleton every frame, and completion suggestions were computed after every typed digit; 31 to 46% off each step at 3,200 and 6,400 definitions. The third, pushed 2026-11-03 (9df1b2601e), is the undo fix above. #2635's CI is green with all three.

For the meeting: O(log n) per edit and per undo needs the top level as a balanced tree of definitions, not a chain of nested lets: each node keeps summaries (the names its subtree binds, its rows, its part of the skeleton), so each pass touches only the edited definition's path, and a snapshot shares every other node, so an undo can be a swap of roots. Is that the direction, and how much of it is worth doing before the livelits land? And dev's undo history still keeps every edit's whole editor state, never cut: should dev get the compaction now, or with #2469?

2. How much sharing is lost passing data to and from the eval worker measured; the worker keeps what it composed, and an undo finds it on Full Body; on #2635 since 11-05 #2 #

Asked by Matthew, 2026-11-02 · ^ticket(666) · as of 2026-11-05 04:53

the page (main thread)the eval workerstaticsanalyzes theprogrampiecesone per definition,each hashedsharingsends what theworker lackscomposekeeps the last 4 programs,by their pieces' hashesevaluatethe programreplythe resultrequestfixed 11-05: an item's holes and a livelit use's expansion took fresh ids on every analysis,so the same program hashed as new pieces and an undo missed the memo; now their ids are derivedopen: a livelit definition's run, re-id'd by the evaluator
Where a request goes, and where the undo's misses were. The memo keeps the last four programs the worker composed, keyed by their pieces' hashes.
KB to the worker after one edit (log scale): ○ the whole program, ● shared3 KB30 KB300 KB3 MBFull BodyFull Body, before: 1,950 KBFull Body, now: 27 KB1,95027Kids' ChoiceKids' Choice, before: 494 KBKids' Choice, now: 52 KB49452EmotionEmotion, before: 38 KBEmotion, now: 4 KB384
After one edit, the bytes posted to the worker with sharing against the whole program (^ticket(666)'s probe, Node, GitHub's machines).
The worker taking a request in, ms (log scale): ○ before its memo, ● now0.1110 msFull Body, againFull Body, again, before: 36 msFull Body, again, now: 0.8 ms360.8Kids' Choice, againKids' Choice, again, before: 9.3 msKids' Choice, again, now: 0.1 ms9.30.1Full Body, an undoFull Body, an undo, before: 40 msFull Body, an undo, now: 0.7 ms400.7Full Body, a redoFull Body, a redo, before: 42 msFull Body, a redo, now: 0.6 ms420.6Kids' Choice, an undoKids' Choice, an undo: 15.8 ms, still a missstill a miss
The worker taking a request in, before its memo and now (probe runs 41933123707 and 41995647179). Kids' Choice's undo, 15.8 ms in the 01:15 run, still misses on its livelit definition.

Measured on #2635 in Node, on GitHub's machines (a dev build, one run each, ^ticket(666)'s probe), with the request built the way the app builds it: one piece per definition, the pieces the worker already holds left out, and the rest shared.

Found and fixed: two slides were never sent in pieces. The fix is on #2635, and its CI is green.

Since (2026-11-04 and the night of 11-05): the worker keeps what it composed. In pieces, the worker put the program back together on every request (47 ms on Full Body even when nothing changed). It now keeps the last four programs it composed, by their pieces’ hashes, so the same program again is taken as it was composed: Full Body again 36.2 → 0.8 ms, Kids’ Choice 9.3 → 0.1 ms (on trial/666-compose).

For the meeting: Ids that statics makes for scaffolding (an item’s holes, a livelit use’s expansion) now come from the term they scaffold, the same on every analysis, so a program analyzed again hashes as before. Should every id statics makes be like that (derived from the item and the order made), or only scaffolding? For the livelit definitions: (a) keep a definition's run by its source, so a re-analysis reuses the very value (and saves the run), (b) hash pieces without the ids inside run-time values, or (c) derived ids in the evaluator too? We would pick (a). The fix is at the source, in statics (each annotation gets ids of its own), not in the cut: the right place? And is the reply's lost identity worth fixing before livelit views move to the worker (^ticket(18))?

3. Why #2635's evaluator takes half dev's steps on the PerfBudgets program explained; a PR to dev, #2793: reviewed, ambivalent (speed against special cases) #3 #

Asked by Matthew, 2026-11-02 · ^ticket(667) · as of 2026-11-05 02:26

Trampoline steps on the PerfBudgets program (cold)0k100k200kdevdev: 206,834 steps206,834budget 227,000budget 227,000#2635, d0c56fb090 out#2635, d0c56fb090 out: 152,746 steps152,746#2635#2635: 96,438 steps96,438dev with #2793dev with #2793: 96,438 steps96,438budget 106,000budget 106,000
The PerfBudgets program's steps. Reverting d0c56fb090 alone gives back half the gap; #2793 brings both commits to dev, with budgets to match.
#2635's steps as a share of dev's, small programs0%50%100%fib(10)fib(10): 17,722 steps on #2635 against 37,922 on dev17,722 of 37,922mapmap: 1,771 steps on #2635 against 3,765 on dev1,771 of 3,765sum of 10sum of 10: 1,035 steps on #2635 against 2,235 on dev1,035 of 2,235the literal 1the literal 1: 0 steps on #2635 against 12 on dev0 of 12
Every form alike: ^ticket(667)'s probe of 16 small programs; four shown. Fewer bounces per reduction, not fewer reductions.

The PerfBudgets test (#2678, Matthew's, merged by Cyrus) counts the evaluator's trampoline steps on a fixed program: 206,834 on dev, 96,438 on #2635 after this week's dev merge.

Why (2026-11-03): the same reductions take fewer trampoline bounces on #2635, every form alike. A probe of 16 small programs counts about twice dev's steps on dev for each (a bare literal: 12 steps on dev, 0 on #2635). Two of our October commits, on #2597's line and so on #2635 but not on dev, remove the bounces: d0c56fb090 (binding a value that is already done calls its continuation directly) is half the gap, since #2635 with it reverted counts 152,746; 602498d7aa (the evaluator skips binds that only pass a value through) is, by its own measure, most of the rest. The first is mostly counting (allocation 4% lower, time inside the noise); the second was 16 to 25% faster on a call-heavy program.

Since: a PR to dev, #2793 (opened 2026-11-03). It brings both commits, the second rewritten for dev's own evaluator, and lowers PerfBudgets' budgets to match: dev then counts 96,438 steps cold and 270 after an edit, the same as #2635, against budgets of 106,000 and 300. Two new tests evaluate recursion 20,000 deep, to show the evaluator is still stack-safe. CI green (Fast checks, Static checks, Full tests); waiting for a review.

A review (2026-11-03, Negabinary): “4% memory improvement, 15% speed improvement, slight readability loss bc we’ve got more special-casing going on. Tradeoff make me ambivalent as to whether this goes in.” The two commits are separable: 602498d7aa (skipping binds that only pass a value through) carries the speed; d0c56fb090 (calling a done value’s continuation directly) is mostly the count, with the 4% allocation.

For the meeting: #2793: Negabinary weighs 15% speed and 4% memory against more special cases in the evaluator, and is ambivalent. Take it whole, take only the speed commit (602498d7aa), or close it and keep the halving on #2635's line only?

4. #2635 is up to date with dev's merge day merged; #2635 all green, the deck included #4 #

Asked by Matthew, 2026-11-02 · ^ticket(663) · as of 2026-11-05 12:11

dev#2469modular editors#2635livelits × modular editors10-2710-2911-0211-0311-05m41–m44dev's merge day, 10-29: 149 commitsmerge day, 149 commits547b9cfa8b: #2469's 23#2469's 23547b9cfa8b2cab658ef1: dev mergeddev merged2cab658ef1243874eecd: deck resetdeck reset243874eecdab7273c984: worker memo, idsworker memo, idsab7273c9841. #2469 lands?2. then#2635?
#2635 since 10-27: #2469's m41 to m44, then dev's merge day, the deck's fixes, and the worker's memo with the derived ids (11-05). Dashed: the question, which lands on dev first.

Dev's 10-29 merge day (149 commits: curried function definitions #2403, .rei interfaces, PerfBudgets #2678, the quick tests #2714 and more) merged into #2635 at 2cab658ef1. CI passed (Fast checks, Full tests, Static checks), and the 8 long-known Full-test failures are gone. The Firefox deck check failed on a workflow line the merge left stale (it ran dune through opam, which dev's toolchain step leaves off the path).

Since: the fix, 1d17541aaf, pushed 2026-11-02 16:29: the deck builds and runs. Three of its 12 cases failed, all on the eye that reveals a livelit's syntax, and a rerun failed a different set. The cause is the test harness, not the app (2026-11-03): dev's c206b02c25 gives a build of any branch but dev an IndexedDB database of its own, hazel:<branch>, and the deck's reset between cases (/fresh, in scripts/dev_serve.py) cleared only hazel, so each case met the edits of the one before. With the reset clearing the branch's database too, all 12 cases pass: on #2635 since 2026-11-03 (243874eecd). #2635 is green at its head, ab7273c984 (2026-11-05): Fast checks, Static checks, Full tests; the livelit deck in Firefox was green at c079fa2e24, the commit before the two pushed today.

For the meeting: The landing order: #2469 into dev, then #2635 retargeted to dev?

Decided at the meeting (2026-11-05): livelits go into dev; that is settled. Cyrus had said so on 2026-10-29. Still to decide: how, perhaps as several PRs rather than #2635 retargeted whole, and in what order with #2469.

2. Hazlets: Hazel embedded in a JS program#

Hazlet, our shorthand from here on: Hazel embedded as a library within the event-handler system of a JavaScript program, so that some of the program's handlers are Hazel functions it calls with events and whose results it acts on. Messed Up Dress Up (MUDU), the game Matthew makes with M and N, is the canonical example, and so far the only one: five of its rooms hand their events to Hazel rules, on_event : (Globals, Event) -> Cmd, through a draft library, hazel-lib.js (#2711, with #2719 stacked on it). ^report(33) is a case study of those rules; ^report(34) asks whether the library should be official. ^report(39) gathers the Hazlet work so far: what runs today, where each piece stands, and what is next (in progress, 2026-11-03).

5. A demo: MUDU's game scripts to show #5 #

Asked by Matthew, 2026-11-02 · as of 2026-11-02 10:35

The trap room in the game: its two red levers, the pits they open, the boulders' blue levers.
The trap room, the game's demo room for scripts (^report(32)).
The trap room's rule at max size, in Hazel's tiles, with the outline of every box at the left.
Its rule in the Scripting tab, in Hazel's tiles: on_event takes the room's state and an event, and gives back a command.

The game, live at matthewhammer.org/kids-choice-games/dress-up/: its Scripting tab, where a room's rule is written in Hazel, in Fumola or in JS and runs as the room's event handler. ^report(32) times the game loading and checking every script in each of the three. ^report(33) reads what the rules meet today (a per-room view of the game, not its state) and proposes names for every place and thing, and types built on them.

For the meeting: Cyrus's read of the rules' types, and of what a Hazlet should give its handlers: a view built per room, as today, or the program's whole state under readable names?

6. Should the library be official? proposal #6 #

Asked by Matthew, 2026-10-26 · as of 2026-11-04 07:48

the game (JS)draws, takes taps,keeps the statea Hazel functionon_event(g, e)the room's rulean eventPull(L)a command backFlip(side, …), DoneA Hazlet: some of a JS program's event handlers are Hazel functionsThe library (#2711, #2719), if made officialstable core, proposedanalyze · run · the value mappingexperimentalthe embed frame · outlineProgram (^ticket 587)two outline walkers today: the library's, over its ModuleProgram,and #2469's OutlineTree in the editor's sidebar
What a Hazlet is, and the split ^report(34) proposes for the library.

^report(34)'s suggestion: merge #2711 and #2719 as an experimental library, built on dev and labelled so; promise stability only for the small core (analyze, run, the value mapping) once a second Hazlet besides MUDU has used it.

A question beside it: where does a program's outline come from? MUDU's max-size script view has an outline on the left: each module's types, then its functions with their types, and a click goes to the definition. The game draws that outline itself, from the text. It asks Hazel only for each member's inferred type, through Hazel.outlineProgram (^ticket(587): two commits on #2719's branch, CI green, not merged yet, so the game does not use it yet).

For the meeting: Merge as experimental, yes or no; and who else might build the second Hazlet? And the outline: keep the library's own walker for now, or build the library's outline on #2469's once it lands on dev?

7. A prototype npm package: hazeljs hazeljs 0.0.4 is on npm #7 #

Asked by Matthew, 2026-11-02 · ^ticket(668) · as of 2026-11-05 12:11

hazeljs 0.0.1, 11-02 11:030.0.111-02 11:03first publish: hazel-lib.js,require, import, script tag,.d.ts, README; 648.5 kBhazeljs 0.0.2, 11-030.0.211-03source at hazelgrove/hazeljs;examples; an install checkon Node 18, 20, 22hazeljs 0.0.3, 11-030.0.311-03a tagline; README: errors,holes, unfinished code;checking hazel-lib.js's commithazeljs 0.0.4, 11-030.0.411-03#2719 at 1ba138ef28, msmeasured; the same bytesas Hazel's own deploy$ npm install hazeljsMUDU loads its Hazel from the package (jsDelivr) since Dress Up 0.0.476
hazeljs on npm: four versions in two days (npmjs.com/package/hazeljs).

A task for Claude: what it takes to publish a prototype npm package that anyone can install and use, documented the way npm packages are. Split into linked tickets: the package's build for node and the browser (^ticket(669)), TypeScript declarations (^ticket(670)), the README and a CHANGELOG (^ticket(671)), examples and an install check on GitHub (^ticket(672)), the name, license, versions and who publishes (^ticket(673)), and MUDU loading its Hazel from the published package (^ticket(674)).

A first version, the same day: hazeljs 0.0.1 (the name is Matthew's pick; Hazlet stays the name of the pattern), built from #2719 at 0d66c36618: hazel-lib.js, entry points for require and import and a browser script tag, TypeScript declarations, and a README the npm way, which sends readers to hazel.org and to the GitHub contributors for who makes Hazel. 648.5 kB packed (2.8 MB unpacked). Installed from its tarball into a fresh project, every example in the README runs. Found on the way: a module of about 150 members overflows Node's default stack, and the ms field always reads 0; both went into the README's limits (the second is fixed in 0.0.4, below).

Published 2026-11-02 at 11:03 MST, under Matthew's npm account: npmjs.com/package/hazeljs, so npm install hazeljs works. Checked from the registry, not the tarball: a fresh project installs it and runs the README's examples through require and import, and jsDelivr and unpkg both serve hazel-lib.js for a script tag. npm also listed a placeholder it made first, 0.0.0-stage, since deprecated.

Since, three more versions (all 2026-11-03), and the game on the package:

Matthew's next ask: the trap room live in ^report(34), its Hazel rule editable in Hazel's tiles and the room answering each edit (^ticket(675)). A first version is live since 2026-11-03: the game, opened at the trap room, on ^report(34)'s page, where a reader pulls a lever or edits the room's rule in the Scripting tab. Next: Hazel's tiles and the room side by side on the page, wired through hazeljs (^ticket(677), ^ticket(678)).

For the meeting: Keep it under Matthew's npm account, or move it to a Hazel organization on npm (@hazelgrove)? And is the package the library alone, or also the Hazlet pattern: a helper that turns a program of modules into JS event handlers, as MUDU uses it?

Decided at the meeting (2026-11-05): hazeljs should follow dev, perhaps once modular editors (#2469) lands on dev. Not urgent: until then it stays on #2719's line.

3. DSL tile editors as a kind of livelit#

Cyrus's idea, from about two weeks before this meeting, which Matthew brings back for discussion: a new kind of livelit, perhaps built in, for languages defined inside Hazel.

8. A livelit whose literal is a grammar and whose view is a tile editor for it idea; a first prototype on draft #2806 #8 #

Asked by Cyrus, late October (his idea; Matthew brings it back, 2026-11-02) · ^ticket(684) · as of 2026-11-04 11:55

The grammar livelit as it opens: three rules, Var, Cmd and Exp, each alternative a text box with its chips beside it
The prototype on draft #2806: IMP's rules, each alternative drawn as chips coloured by rule (^report(41)).
From a grammar to a language's tilesa grammar, a Hazel valuethe rules, in order (IMP's first)builta parser for itEarley at run time, or Menhir aheadnot yeta tile editorprograms in the language as tilesnot yetthe expansion, a Hazel valuetoday the grammar itself; then a parse treein part
What a DSL livelit needs, and what the prototype has.

Related so far. Cyrus's interest in DSLs in Hazel as tile-based livelits, and his pointer to language boxes (Diekmann and Tratt's Eco editor: each box has its own lexer and parser, and is one token to its parent) for #2542, the shared-tokenizer limit on sub-language tiles. Fumola as tiles: a sort in Hazel's own tile grammar (#2529), and ^fumola_wip on the remote-splices branch (2026-09-29), a livelit that edits Fumola code as tiles, a first prototype of a DSL as a tile livelit. Hazel's own tiles come from a fixed table of forms in its source (src/haz3lcore/lang/Form.re); this would make the grammar a value a program writes.

A question the parser raises: Menhir generates OCaml code when Hazel is built, so on its own it cannot read a grammar written in a running program. A grammar given at run time needs a parser built at run time, such as an Earley parser, which accepts any context-free grammar, or tables built in the browser. Or the grammar's definition could be compiled ahead of time for built-in DSLs only.

A first prototype, since 2026-11-04 (Matthew's ask: the model is a production rule system, its rules in a certain order; IMP's rules first): the slide Livelit Playground / Grammar: IMP on draft #2806, into #2635's branch, written up in ^report(41). Its model is the rules, in order; each alternative is edited as a line of words and drawn as chips colored by rule; its expansion is the grammar itself, a Hazel value, which the slide's program reads to write an example sentence for each alternative, so reordering the rules changes the examples. Not built yet: a parser at run time, and programs in the language as tiles. Trying it found a crash in #2635 (the explainer's highlighting with the caret on any livelit), fixed in #2810.

For the meeting: Is this the shape Cyrus has in mind for DSLs in Hazel? Built-in, or user-defined livelits? Grammars given at run time, or compiled ahead of time? And what is the first demo: a small grammar (arithmetic, or a JSON-like data language), its tile editor, and its expansion as a Hazel value?

4. Long types, shown whole#

Matthew's two questions from the morning of 2026-11-04: where the type expansion PRs stand on the way to dev, and whether the types in Γ get the same treatment.

9. The type expansion PRs: where they stand, and can they go to dev? #2676 green and mergeable, not reviewed #9 #

Asked by Matthew, 2026-11-04 · ^ticket(394) · as of 2026-11-04 09:10

The PRs, and where each change isdev#2676cursor inspector#2698 (draft)Γ, stackedgreen, mergeable, not reviewed; 174 commits behind dev#2635 and #2597 carry both, and ^unfold (always · on hover · right-click)
The two PRs toward dev, and the branches that already carry them.

#2676, into dev: the cursor inspector can show a long type whole, on several lines. A toggle beside the type in the inspector's bar opens a full view: the type laid out on several lines, and each alias's definition beside its name (issue #2674).

For the meeting: Who reviews #2676? And should #2698 join it as one PR, or follow it?

10. And the types in Γ: shown whole, on several lines? built: draft #2698 toward dev, and on #2635; one pick waits #10 #

Asked by Matthew, 2026-11-04 · ^ticket(468) · as of 2026-11-04 09:10

Gamma on #2698's build, the tutorial: the JSON entry unfolded, its recursive sum laid out over five lines; KeyMod and Either still folded, each with its toggle
Γ on #2698's build (build.hazel.org/context-inspector-long-types, the tutorial): the JSON entry unfolded with its toggle (▾), its type laid out under its name; KeyMod and Either still folded (▸).
^unfold: three ways to offer it (the pick that waits)alwaysa ▸ on every long entryon hoverthe ▸ shows under the mouseright-clicka menu on the entry
The three ways to offer unfolding in Γ, each a setting on #2635's Colors slide (^ticket(468)).

Yes, built, in two places. In Γ (the context inspector), a toggle on each entry lays a long type out under its name, on several lines at 60 columns, an alias's definition too; Γ grows to 40% of the window while one is open.

For the meeting: Always, on hover, or by right-click? And should Γ's version go to dev with #2676, or after it?

If there is time#

How this agenda is kept#