Repository navigation
perf!: regenerate the parsers for the WillBooster runtime 17.0.1 - #162
Merged
Merged
Conversation
Co-authored-by: WillBooster (Claude Code) <agent@willbooster.com>
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.
Why
WillBooster/tree-sitter 17.0.1 stores the action rows of unvisited parse states as differences from similar rows, which shrinks generated parsers. Its parsers carry ABI
0x5742000c, which only runtime 17 loads.Requirements
script/generatedoes, set the runtime peer range to^17.0.1, update the README and Rust docs that name the runtime version, and release as a breaking change.ERROR/MISSINGwithout crashes, hangs, or superlinear time; existing unit and performance tests pass.Customer Summary
Both parsers (Module and Script goals) need
@willbooster/web-tree-sitterorwillbooster-tree-sitter17.0.1 or later within 17.x; earlier runtimes reject them. They are about 6% smaller as Wasm and 8% smaller as a native library. Trees are unchanged.Technical Summary
Cargo.toml/Cargo.locklockwillbooster-tree-sitter17.0.1, whichscript/runtime-versionreads to pick the CLI thatscript/tree-sitterruns;package.json/bun.lockpin@willbooster/web-tree-sitter17.0.1 and set the peer range to^17.0.1.src/parser.candgrammars/script/src/parser.care regenerated byscript/generate --build-wasm;grammar.jsonandnode-types.jsonare unchanged.src/parser.c/ scriptTesting
bun run verify;bun wb testfor every node test file intest/unit(172 tests, including corpus, examples, performance, runtime-version, and Wasm tests)..jsfiles fromnode_moduleswith the parser on main and on this branch, both through runtime 17.0.1: all trees are byte-identical and instruction counts are within 0.1%.Notes
Renovate may open its own PR for the same runtime bump; close it as superseded by this one.