Repository navigation
eager: skip_line as a jet, proven sound - #41
Merged
Merged
Conversation
This was referenced Sep 28, 2026
Merged
olydis
force-pushed
the
claude/tc-performance-optimizations-rqtyzl-proofs
branch
from
September 29, 2026 17:49
1c4de4e to
8e34c8d
Compare
olydis
force-pushed
the
claude/tc-performance-optimizations-rqtyzl-jets
branch
from
September 29, 2026 17:49
7557ccd to
388c8ec
Compare
olydis
changed the base branch from
claude/tc-performance-optimizations-rqtyzl-proofs
to
main
September 29, 2026 17:50
olydis
marked this pull request as draft
September 29, 2026 17:50
olydis
force-pushed
the
claude/tc-performance-optimizations-rqtyzl-jets
branch
3 times, most recently
from
September 30, 2026 04:33
b5c8a13 to
01734bc
Compare
olydis
force-pushed
the
claude/tc-performance-optimizations-rqtyzl-jets
branch
4 times, most recently
from
October 1, 2026 23:11
09aaed7 to
e19437c
Compare
olydis
force-pushed
the
claude/tc-performance-optimizations-rqtyzl-jets
branch
from
October 2, 2026 03:15
e19437c to
dfabb3b
Compare
olydis
marked this pull request as ready for review
October 2, 2026 03:15
Merged
EagerGraphNilMmap32Jets, the eager runner's evaluator, answers lambada's skip_line natively after the memo, which records the answer: a 5 MB compile_file reduces in 162,874 steps instead of 6,487,439. EagerGraphNilMmap32 compiles to main's code. RUNNER_JETS=0 turns the jet off, and the reduction is then main's step for step; RUNNER_STATS counts jets= and skipped=. embed.mjs writes jets.hpp and Jets/Trees.lean from trees/*.dag, test.sh checks them; runtimeJets_sound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018ffv5AybPTpV56D5vuayQr
olydis
force-pushed
the
claude/tc-performance-optimizations-rqtyzl-jets
branch
from
October 2, 2026 12:10
dfabb3b to
4a1ae05
Compare
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.
This is one commit on
main. Merge after #59.EagerGraphNilMmap32Jets, the eager runner's evaluator, answers lambada'sskip_linenatively. It checks the memo first and records the answer there.EagerGraphNilMmap32 = BasicEagerGraphNilMmap32<false>compiles to main's code.Measured with #59 applied (cachegrind):
Where no jet fires, the check itself costs +0.27%. The rest of the load overhead is 9,506 extra steps: the jet's trees are interned at startup, which shifts the arena indices the memo is keyed on.
Off switch:
RUNNER_JETS=0skips interning the jet's trees, so the reduction is main's step for step.RUNNER_STATSaddsjets=andskipped=.Soundness:
runtimeJets_sound(Cpp/Jets.lean) concludesApply. It usespropext,Classical.choiceandQuot.sound.Drift check:
embed.mjswritesjets.hppandJets/Trees.leanfromtrees/*.dag, andtest.shfails if either drifts.Tests:
test.shpasses underCandC.UTF-8:test-jets.cpp: 5 checks;reduce_canonicalize: 4.The suite catches all 29 deliberately broken versions of the code that change an answer.
🤖 Generated with Claude Code
https://claude.ai/code/session_018ffv5AybPTpV56D5vuayQr