Skip to content

Ddir deduplication - #890

Merged
frankmcsherry merged 4 commits into
master-nextfrom
ddir-dedup
Sep 20, 2026
Merged

frankmcsherry merged 4 commits into
master-nextfrom
ddir-dedup

Conversation

@frankmcsherry

Copy link
Copy Markdown
Member

No description provided.

frankmcsherry and others added 4 commits September 20, 2026 14:08
`explain`'s `SCC` fixture and `lower`'s `lowers_scc_depth_two` source were
byte-identical copies of `examples/programs/scc.ddp`, maintained by hand.
Both now `include_str!` the example, so the fixture cannot drift from the
program the rest of the tree runs.

`tests/explain.rs`'s `SCC_ROW` stays inline: it is a different program
(its export is the edge set, not the aggregate), as its comment says.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
`value_contract` and `backstop` each defined the same `Mem` — a `Dataflow`
over `Vec<(Value, Value)>` running projections and predicates through
`ir::eval` with a nested-loop join — once formatted long and once short.
They now share a single definition. `nested_contract` keeps its own: that
one is a genuinely different model, with its own `Proj`/`Pred`.

The module header also claimed the flat `[i64]` model "lives in
`explain.rs` and reuses `folded`". There is no `explain.rs`, and `folded`
is retired; the header now says `Val` is the only model the crate
evaluates.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The stdin/TCP reader and the WebSocket reader each built the same
prepare-and-send sequence: check for `exit`, `prepare`, build a `Request`,
hand it to the control channel. They now call one `dispatch` returning
`Continue`/`Exit`/`Disconnected`, and each loop decides what that means —
the stdin/TCP reader stops, the WebSocket reader sets `should_exit` and
keeps draining the current message. Behaviour is unchanged on both paths.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
`has_trace` has no callers: its identifier appears exactly once in the
whole of `interactive/`, at its own definition.

`backend`'s header still advertised "the example binaries, the server, and
a wasm front-end" as drivers. There is no wasm anywhere in the tree and the
example driver is retired (`server/src/main.rs:30` says so); the server is
the one driver.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@frankmcsherry
frankmcsherry marked this pull request as ready for review September 20, 2026 18:42
@frankmcsherry
frankmcsherry merged commit d6820b9 into master-next Sep 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant