Repository navigation
comp.ts: shed tokens with no output change - #1922
Merged
Merged
Conversation
A variadic file_push, inlined single-use locals, optional tld parameters, lines rejoined where they fit in 80 columns and tighter comments. Main's types, helpers and explicit checks are kept. Rebased onto main as one commit (the earlier commits undid part of the first). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lorenzobattistela
force-pushed
the
comp-shed-tokens
branch
from
October 29, 2026 16:27
1526886 to
cf97088
Compare
Lorenzobattistela
approved these changes
Oct 29, 2026
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.
Trims
bend2/comp.tsfrom 65,976 to 65,860 ttok (cap 66,000) with no change to what the compiler emits.What
file_push(sc, ...lines)is variadic (each line still indented by the segment's tab); consecutive calls are collapsed only where evaluating the arguments first can't reorder emitted lines.tld?: Bend.TLDparameters, lines rejoined where they fit in 80 columns.ty_holdscomment is reworded.Main's type declarations, helpers (
name_clean,FL.book.*, theOPERATIONSliterals, the#includelines) and explicit checks (=== 0,> 0,=== null, if/else) are kept as they are; an earlier revision of this PR shortened them and that was undone after review.Verified
compile_book(C) andjs_book(JS) hashed for every.bendundertests/,bench/anddemos/on main (65a521f) and on this branch: 1,881 lanes over 1,866 files, 0 differences; files that fail to compile on main fail with the same error here.comp.tstype-checks with only main's existing errors.🤖 Generated with Claude Code