vx-lang / vx-lang/Vx

decision: a `[?, ?]` value no longer narrows to a static binding implicitly, and there is no spelling for that narrowing before the tag

Open
#461 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core-lang question
Dominant language
Rust
Stars
14
Forks
2
Avg merge
12h 42m
Merged PRs (30d)
61

Description

ae80cc0d applies the spelling RFC's as written: a static extent widens to ?, and ? does not narrow to a static extent without saying so. Before it, a DynTensor source was assignable to any shaped annotation (is_assignable, the old dyn_parts arm), an unchecked narrowing.

The explicit spelling, narrow / narrow_checked, is in the bounded-extents RFC, which is post-launch. So until it lands, the only way to write let c : Tensor<f32, [2, 3]> = a @ b over [?, ?] operands is to annotate the binding [?, ?]. One corpus program relied on the old rule (tests/optimizations/pass/kernel_kind_matmul.vx, now spelled that way).

Options: (a) keep it refused until narrow exists, which is where main is; (b) restore the implicit narrowing as a documented pre-launch exception, with a memref.cast that MLIR accepts but nothing checks; (c) bring a minimal narrow_checked forward. This is a language call.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the is_assignable logic and its former dyn_parts arm, then inspect tests/optimizations/pass/kernel_kind_matmul.vx and the spelling and bounded-extents RFCs. The issue is currently a language-design decision among three options, so done means an accepted decision is implemented and the affected corpus test and assignment behavior agree with it.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.