Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1069.
The limit is on live segment arguments, not just constructor width. Increasing the shared C register bank reintroduces the Clang failure, and an 8-bit logical arity loses large closure/fork arguments.
This keeps the physical bank at 247 words and spills excess segment arguments through the existing evaluator stack. Continuation entry consumes its frame and spill tail before loading locals; closure application appends its final argument after spilled captures. Ordinary native C spins retain their own C parameters, including self jumps. Logical arity is
u32; the flat result width and frame/fork flags remain compact. The existing foreign-request width guard is unchanged.Four permanent consumer regressions cover 248 live boxed fields, a materialized 300-capture callback, a 300-live-value fork, and a weighted 301-word native self-spin which always recurses. Before the change all four are valid interpreter programs but native emission fails with
an arity over 247. Generated observation: callback logical arity 301, fork arity 303, physical bank still 247.Verification on Linux x64:
--checkuppasses for all four new consumers.bun gates/repo.ts: 54/54 on the rebased branch; permanent token limits and allow-list are unchanged.Older Clang versions and Metal/CUDA hardware are not available here, so I am not claiming those runs.
bend2/bend.ts, the kernel, GUIDE and CHANGELOG are untouched. README documents the bounded bank/spill distinction.