Skip to content

docs: reframe reld as a polylinker + sync shipped 3-platform status - #33

Merged
zackees merged 1 commit into
mainfrom
docs-sync-bridge
Aug 7, 2026
Merged

zackees merged 1 commit into
mainfrom
docs-sync-bridge

Conversation

@zackees

@zackees zackees commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Closes #30 (polylinker design + docs). Closes #32 (factual bridge-status sync). Docs only — no code.

Two things, kept strictly distinct as shipped vs designed

Shipped (factual status correction, #32)

The README/DESIGN previously said Windows/macOS are "not implemented / planned" — false after BR-1 (#20) and BR-3 (#31). Corrected to the truth:

  • reld links real programs on all three platforms today: Linux/ELF native (inherited wild core), Windows/COFF and macOS/Mach-O via a bridge to lld (lld-link / ld64.lld from rust-lld), CI-proven by the rusqlite/C-linking e2e on the windows-msvc and macos-arm64 runners.
  • Native COFF/Mach-O codegen (P3: PE/COFF backend, MinGW (windows-gnu) ABI #7/P4: Mach-O backend, aarch64-apple-darwin #8) is still future; the bridge makes those platforms work now.
  • New "Bridge status" table (native vs bridge per platform); benchmark caption corrected (real reld number on Linux; n/a on Win/mac in the clang harness because reld links via rustc -Clinker there, not -fuse-ld).

Designed (polylinker framing, #30)

Reframes reld as a polylinker — a flag-aware router over the bundled engines that satisfies any link configuration by routing to whichever bundled linker supports it (fast default, escalate on demand, fallbacks, never a silent mislink), with LTO delegated to a capable engine rather than rejected.

  • New DESIGN §4.5 (capability model, routing policy, fallback ordering, honesty/logging).
  • New agents/docs/polylinker.md — contributor note with an explicit shipped-vs-designed status table and the rule that new backends go behind the capability table, not as forks.
  • Decision D13 revised (original text preserved and marked superseded) from "LTO deferred/rejected" to "LTO delegated to a capable bundled engine; native LTO codegen still future."

Honesty guardrail

The flag-aware router, capability table, fallbacks, --engine=/RELD_ENGINE, and LTO-delegation are DESIGN, not implemented — today's only routing is by platform/format at dispatch. Every doc marks this explicitly (each new section carries a shipped-vs-designed status table). LTO flags are still rejected/ignored today until B8 (#17) lands; the router implementation is tracked by B8 and the daemon router (#19). Independent review confirmed no sentence claims the router is implemented, bridge stays distinct from native codegen, and the shipped status is factually accurate.

Testing

Docs only; the rusqlite ci/e2e/sqlite-bridge regression still returns OK (reld untouched).

🤖 Generated with Claude Code

Two things, kept scrupulously distinct as shipped vs designed:

Shipped (factual status correction): reld links real programs on all three
platforms today — Linux/ELF natively (inherited wild core), Windows/COFF and
macOS/Mach-O via a bridge to lld (lld-link / ld64.lld from rust-lld), CI-proven
by the rusqlite/C-linking e2e. Native COFF/Mach-O codegen (#7/#8) is still
future. Replace the stale "Windows/macOS not implemented / planned" language,
update the platform table, add a "Bridge status" table, and correct the
benchmark caption (real reld number on Linux; n/a on Win/mac in the clang
harness because reld links via rustc -Clinker there).

Designed (polylinker framing, per #30): reframe reld as a polylinker — a
flag-aware router over the bundled engines that satisfies any link config by
routing (fast default, escalate on demand, fallbacks, never a silent mislink),
with LTO delegated to a capable engine rather than rejected. This is DESIGN,
not implemented: today's only routing is by platform/format at dispatch. Add
DESIGN §4.5, a new agents/docs/polylinker.md contributor note (with an explicit
shipped-vs-designed table), and revise decision D13 (original preserved and
marked superseded) to the routing policy, tracked for implementation by B8
(#17) and the daemon router (#19).

Closes #30
Closes #32

Co-Authored-By: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant