Skip to content

comptime arena - #2509

Merged
ehartford merged 1 commit into
seed-local-3from
comptime-arena
Oct 21, 2026
Merged

ehartford merged 1 commit into
seed-local-3from
comptime-arena

Conversation

@ehartford

@ehartford ehartford commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

#2220 ceremony fix (D104, Eric's ruling: the ceremony fix first, then the addressed arena).

The const fold can reach a plain function before Sema's body pass, so var v = List.new() had no element type at the evaluator's wall and the user was told to annotate the binding: ceremony for a fact the compiler already knows (D93). The evaluator now asks Sema to type the innermost called body on demand at that wall, once, and re-reads the node's type; the in-order body pass skips a body typed this way. Typing is lazy, at the wall only: typing every called body on entry changed the evaluator's paths and multiplied its memory (215 MB vs 37 MB on the #1944 fixture).

Fixture: test/behavior/behav_2220_comptime_unannotated_list.w (List and HashMap built in called bodies, no annotations; fails on the installed compiler with the old diagnostic).

Gate green (240 s). Battery: one battery for stack #2510 on this commit.

… typed on demand (#2220 ceremony fix)

The const fold can reach a plain function before Sema's body pass, so
`var v = List.new()` had no element type at the evaluator's wall and the
user was told to annotate the binding: ceremony for a fact the compiler
already knows (D93: the type comes from the uses). The evaluator now asks
Sema to type the innermost called body on demand at that wall, once, and
re-reads the node's type; the in-order body pass skips a body typed this
way. Typing is lazy, at the wall only: typing every called body on entry
changed the evaluator's paths and multiplied its memory.
@ehartford
ehartford added this pull request to stack #2510 October 21, 2026 03:50
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery GREEN on the stack's top commit 0d3af5f (comptime-arena worktree, driven by seed nightly-20261020-local-3-763d0e54c82a): gate, uat and battery-checks all green, wall 529 s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant