Repository navigation
Conversation
chaliy
marked this pull request as ready for review
November 23, 2026 20:48
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | 30411ff | Commit Preview URL Branch Preview URL |
Nov 23 2026, 11:03 PM |
This branch has not been deployed
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.
What changed
The opt-in execution-plan compiler now prepares function bodies and mixed loop/branch control flow. Supported child regions and arithmetic-for clauses execute compiled instructions around ordinary tool calls, pipelines, substitutions, regex captures and array access. Bash syntax and execution APIs stay unchanged.
Plans belong to the invocation and borrow its active definition. Shared orchestration preserves output, conditions, traps, loop flow and frame cleanup. No interpreter fields or persistent compiler cache are added. jq uses its existing lazy jaq compilation and bounded execution-local LRU, with current bindings, filter files and function shadowing.
The optional browser compiler build retains the ordinary optimization pipeline with a separate 3.12 MB gzip cap. The normal package keeps 3.1 MB; raw/Brotli caps and runtime limits are unchanged. Tests enforce profile selection and every cap.
Why
Tool-containing function loops previously fell back as a whole. The compiler can now prepare their control flow and supported arithmetic while preserving normal Bash tool protocols.
Performance
Fresh-shell same-binary comparisons include parsing, lowering and execution, with four alternating rounds and 30 samples per mode per round. On a fixed Linux CPU, arithmetic inside a function took 19.397 → 9.073 ms (53% less). Substitution and jq differences were smaller and variable; fan-out took about 4% more, and short scripts about 1% more.
The unchanged original event-JSON tool workload showed no clear gain: +3% elapsed time pinned, −3% unpinned, with variation between rounds. These results do not justify enabling the feature by default. Raw samples, build identities and reproduction.
Risk
experimental_execution_planremains disabled by default. Unsupported dynamic contexts and redirected compound boundaries use interpreter fallback.Validation
just pre-prandjust testpass: 7,503 workspace/unit/integration/doc tests, 277 Python script tests and serialized security failpoints.Checklist
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.