You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiler: separate compilation with module interface artifacts (study delta 5 — endgame) #684
Part of #679. Every stage compiles ONE merged ~160k-line program in one process: out/gen/main.w's use-graph parses into a single AstPool (src/compiler/Frontend.w:1674-1701), and the stage cache signature hashes ALL src .w files, so a one-byte change recompiles 160k lines three times (stage1+stage2+link = 523s of every battery — the constant nothing else in #679 touches). References: Go cmd/compile = 48 packages against mmapped export data; Rust = 75 crates against .rmeta; Swift = indexed binary .swiftmodules; Vale = 3 process-isolated components with .vast handoff. Adopt: per-module compile targets with serialized interface artifacts (AST/Sema SoA tables dump cleanly — see #682), cross-module resolution at link. Rebuild cost becomes O(change), peak RSS becomes max-of-module. Prerequisites: #680 (parallel executor) and #682 (serialized frontend artifacts). Sequence LAST — it delivers nothing partial; everything else multiplies it. Fixpoint invariant preserved: the byte-compare gains per-module granularity.
Triage 2026-10-25, with v0.15.3.0 (main a261b65): still open. Each stage still compiles the compiler as one merged program (stage1 82 s, stage2 82 s on today's battery); the .wo bundles give separate compilation to the corpora, not to the compiler.
post-release: the endgame of the build-performance campaign.
Activity
Build: mark object/IR compile targets allow_parallel (#680 stage B live)
docs/perf: principled campaign targets (Eric, 2026-09-02)
ehartford commentedon Oct 25, 2026
Triage 2026-10-25,
with v0.15.3.0(main a261b65): still open. Each stage still compiles the compiler as one merged program (stage1 82 s, stage2 82 s on today's battery); the.wobundles give separate compilation to the corpora, not to the compiler.post-release: the endgame of the build-performance campaign.