Skip to content

comp.ts back under its 66k cap: term_peek is one ternary, nat_mul drops its != 0 - #2205

Merged
nicolas-abril merged 1 commit into
bendlang:mainfrom
nicolas-abril:fix/comp-cap
Nov 18, 2026
Merged

nicolas-abril merged 1 commit into
bendlang:mainfrom
nicolas-abril:fix/comp-cap

Conversation

@nicolas-abril

Copy link
Copy Markdown
Collaborator

#2174 and #2198 each fit the cap alone, but together they put comp.ts at 66,009 tokens. #2198 was merged without the trims that offset it. This brings comp.ts back to 65,995 without changing behavior:

  • term_peek is one ternary instead of an if and a return.
  • nat_mul tests (a | b) >> 32 && b without the != 0.
  • rfc_seal names its tag g and joins its last two lines.

The 17 bench/runtime programs compile (-O3) to identical object code before and after. This tree is byte-identical to the one that passed all four gates (repo 56/56, test 1865/1865, perf 124/124, ping 84/84).

🤖 Generated with Claude Code

@nicolas-abril
nicolas-abril merged commit c512ce2 into bendlang:main Nov 18, 2026
nicolas-abril added a commit to nicolas-abril/bend that referenced this pull request Nov 22, 2026
, bendlang#2198, bendlang#2203, bendlang#2205 and others)

Conflicts:
- comp.ts, nat_mul: bendlang#2174's draft against bendlang#2205 on main (the same test
  without its two != 0); main's text taken.
- bendlang#2173 landed on main in another form (base.bend: Nat.div / Nat.mod drop
  the other half of Nat.divmod as a Nat) from the draft merged here
  (comp.ts OPERATIONS entries Nat.div / Nat.mod, native C). Both auto-merged
  and computed the same thing; the draft's comp.ts entries are removed so
  the branch carries bendlang#2173 as merged, and tests/run/nat_div_native.bend
  (add/add) is main's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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