Skip to content

Server install check; one meaning for spread and filter - #901

Merged
frankmcsherry merged 2 commits into
master-nextfrom
ddir-small-fixes
Sep 23, 2026
Merged

frankmcsherry merged 2 commits into
master-nextfrom
ddir-small-fixes

Conversation

@frankmcsherry

Copy link
Copy Markdown
Member

Two fixes, one commit each.

Server: check a program before installing its generated sources. install created generated sources (clock, recipes) while resolving imports, before checking the program's exports and remaining imports, so a program rejected for a taken export name or an unknown import left them installed. Every check now runs first. New test: tests/server_install.rs.

DDIR: one meaning for spread and filter across backends. The backends disagreed on two corners of the language:

  • A bare $n whose row is not a tuple: the row backend spliced a list's elements (arity varying with the data) and panicked on a scalar; corgi kept either as one field. Both now splice a tuple's fields and keep any other value as one field.
  • A filter predicate that is not an Int: the row backend dropped every row; corgi panicked on an opaque mask error. Both now reject it, naming the shape.

Spread is only produced inside projection tuples, so the row evaluator's list-intro splice goes too. Adds spread_values to the corgi/vec gate and a test that both backends reject a tuple predicate; both new tests fail on master-next.

Validation: workspace tests pass; AoC 2023 passes 33/33 on both vec and corgi; clippy warning count unchanged.

🤖 Generated with Claude Code

frankmcsherry and others added 2 commits September 23, 2026 08:03
`install` created generated sources (`clock`, recipes) while resolving imports,
before checking the program's exports and remaining imports. A program
rejected for a taken export name or an unknown import left those sources
installed until a later drop. Now every check runs first.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The two backends disagreed on two corners of the language:

- A bare `$n` in a projection whose row is not a tuple. The row backend
  spliced a list's elements (so the tuple's arity varied with the data) and
  panicked on a scalar; the columnar backend kept either as one field. Both
  now splice a tuple's fields and keep any other value as one field, which is
  the only layout a column can hold.
- A filter predicate that is not an `Int`. The row backend dropped every row;
  the columnar backend panicked on an opaque mask error. Both now reject it,
  naming the shape they got.

`Spread` is only produced inside projection tuples, so the row evaluator's
list-intro splice goes too. Adds `spread_values` to the corgi/vec gate, and a
test that both backends reject a tuple predicate.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@frankmcsherry
frankmcsherry merged commit 7dc172c into master-next Sep 23, 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