Skip to content

DECISION: two contradictions in DESIGN.md that block incremental #10

Closed

Description

@zackees

Part of #2. Context: 09-INCREMENTAL.md §0.1

Both need answers in DESIGN.md before I2 starts. Neither is an implementation detail.

1. Peak RSS vs. the daemon

DESIGN.md §2.3 lists peak RSS as one of the five categories reld must win. But every fast incremental result in the literature comes from a resident process holding the symbol graph and relocation reverse-index in memory, and Zig's node-tree design costs +11.9% peak memory even on non-incremental links.

Millisecond warm relink and beating wild on peak RSS may not be simultaneously satisfiable. Which yields? Decide before publishing benchmarks that assume both.

2. Archive semantics

wild's published incremental design explicitly excludes them:

"supporting incremental updates of archive semantics would be a lot of work for very questionable benefit towards our use case… Rust code, while it uses archives for rlibs, doesn't make use of archive semantics."

reld cannot make that move. C/C++ on three platforms makes archive semantics unavoidable — and they are precisely Ueyama's core objection to incremental linking (the malloc-cascade example). This is the largest scope difference between reld and the design it forks from, and it is currently unacknowledged in our docs.

Also worth a decision at I6

Does the warm path emit usable debug info? 80% of a typical executable is debug info; gold's incremental mode grew debug strings ~10×. Zig's newest linker emits no DWARF at all and has never emitted PDB. If "warm relink" means "no debug info," the product is substantially less interesting — the dev loop is where people debug.

Activity

  1. added
    question
    on Aug 1, 2026
  2. zackees commented on Aug 1, 2026

    @zackees
    CollaboratorAuthor

    Owner: the cold relink and cold relink must both be winners here.

    Cole relink for GHA and warm relink for local dev.

    GHA will use setup-soldr and expects the object graph to be reloadable from an artifact archive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions