Repository navigation
Delete all C and Rust: Track is .trk only, bootstrapped from a native seed - #40
Merged
Merged
Conversation
bench/ remains the Track benchmark harness. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bootstrap/seed/trackc (static x86-64 ELF) replaces the C seed. bootstrap.sh runs seed -> stage1 -> stage2 -> stage3 under env -i PATH=/nonexistent and requires stage2 = stage3; update_seed.sh regenerates and checks the binary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Delete cgen.trk, runtime_c.trk, runtime/track_runtime.c and the C-runtime embed script; embed_rt.sh becomes embed_runtime.sh. trackc build/run lower to a static x86-64 ELF; emit-c is gone; --native and --rt=track are accepted no-ops. The checker keeps the runtime arity table; ngen keeps its temporary free code. Seed regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The C backend evaluated a non-folding const's expression at each use; ngen emitted 0. Found by running the run_outputs goldens natively. Seed regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop C-vs-native parity, emitted-C greps, ASan runs and --rt=track builds. The C backend's outputs for tests/native, bench/progs and rt_smoke become goldens in tests/cases/native_runs/. Executables are checked as static ET_EXEC. backend_test keeps its checker assertions. ids.txt (94 tests) and PORTING.md updated; yard builds without --native. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bench/native.sh drops the C column and checks each program against its tests/cases/native_runs golden. bench/race.sh (C-built vs native trackc) and scripts/native_parity.sh (C vs native) go with the C backend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bootstrap runs with only the POSIX tools bootstrap.sh needs on PATH; then update_seed --check, deny-warnings, tests, yard, lsp, selfhost, and every example built natively and compared with its golden. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README, docs/bootstrap.md, docs/native.md, yard, SPEC, roadmap, CHANGELOG, install.sh and the page install text: bootstrap from the committed native seed, no C compiler, no emit-c, no C runtime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedToo many files! This PR contains 114 files, which is 14 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.
|
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.
Removes every C and Rust file. 167 files, +1452 / −82,296.
bootstrap/seed/trackc.c, 75.7k lines) is replaced bybootstrap/seed/trackc, a static native binary (1.26 MB).scripts/bootstrap.shbuilds seed → stage1 → stage2 → stage3 and requires stage2 = stage3. No cc, as or ld runs (checked with strace).cgen.trk,runtime_c.trk,runtime/andemit-care gone. Native is the only backend;--nativeand--rt=trackare accepted no-ops.scratch/(the C, Rust and Python benchmarks) is deleted, andbench/is native only.const S = "hi"printed 0. The goldens exposed it.A local run from a clean clone bootstraps from the native seed with a fixed point, and
tests/run.shpasses 94/94. Merged without waiting for CI, as asked.🤖 Generated with Claude Code