Skip to content

bundle lane: a compiler with no matching bundle slot silently compiles the corpus from source in-unit (hello-world check 4.06 s, 15k warnings) — the fallback must announce itself #1076

Closed

Description

@ehartford

Observed

A stage1 built in a fresh worktree (no bundle slot for its stamp; embedded_bundle_present(bi) false) checks hello-world in 4.06 s instead of 0.2–0.5 s: frontend.parse decls=4998 (vs 4771 with the interface), sema.bodies 2.7 s, and 15,750 "redundant unsafe prefix inside unsafe context" warnings from lib/std/re. Nothing on stderr says why. Compilation.register_embedded_bundle_interfaces (src/compiler/Compilation.w:571-572) continues past an absent bundle without a word, ModuleSource then serves <embedded-std>/std/re/*.w as source, and the corpus compiles in-unit.

That is C3's "the bundle is a cache of the in-unit result" design working as designed, but a timing, a bisection, or a user can mistake it for the bundled path — I did, for one profile. It also hides a real product condition (a release binary whose bundle failed to embed would ship 4 s hello-worlds silently).

Expected

At minimum a stderr line when the fallback engages: note: no bundle slot for <name>@<stamp>; compiling std/re from source (once per compile), and [profile]/--dump-resolved output naming the path taken. Preferably with --version/with doctor reports which bundles are embedded and registered.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): reproduced. register_embedded_bundle_interfaces (src/compiler/Compilation.w:630-631) still continues past an unfilled slot without a word.

    $ time out/bootstrap/bin/with-stage1 check hello.w   # a :dev stage1, no bundle slots
    ok
    real 9.73
    $ time ~/.local/bin/with check hello.w
    ok
    real 0.14
    

    Nothing on stderr says the corpora compiled from source. The 15k warnings are gone; the silence and the cost remain.

    post-release: only a :dev stage1 has unfilled slots; one note line is the fix.

  2. added a commit that references this issue on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions