docs(compute): design record for std/tensor on the CPU #442

Merged
argus merged 1 commit from loop/438-tensor-design into main 2026-10-23 16:40:22 +00:00
Collaborator

Closes #438

What

New design record docs/design/TENSOR.md (designed, not built): type and layout, scalars and Float32, views with copy-on-write, broadcasting and shape errors, first-release signatures, in place and the parallel loop, constraints for Dual / std/gpu / reverse mode, cost table, and the slice list. Indexed in docs/design/index.md, linked from COMPUTE.md (layers 1 and the status) and the ROADMAP point 4.

The operator question of COMPUTE section 3 is answered by probe (torb check / torb run, shown in section 7). Checker gaps found: #440 (scalar * tensor lowers as the builtin product) and #441 (Multiply<Scalar> and Multiply on one generic type refused as overlapping). Neither blocks a slice.

Test

Documentation only. torb docs index, torb docs skill docs skills (no change to skills/) and pdisc ok locally; forge CI is the gate.

Seed impact

None. Slice 8 of the record (Float32 Real) would be seed-affecting and is its own later PR.

Closes #438 ## What New design record `docs/design/TENSOR.md` (designed, not built): type and layout, scalars and `Float32`, views with copy-on-write, broadcasting and shape errors, first-release signatures, in place and the parallel loop, constraints for Dual / std/gpu / reverse mode, cost table, and the slice list. Indexed in `docs/design/index.md`, linked from COMPUTE.md (layers 1 and the status) and the ROADMAP point 4. The operator question of COMPUTE section 3 is answered by probe (`torb check` / `torb run`, shown in section 7). Checker gaps found: #440 (`scalar * tensor` lowers as the builtin product) and #441 (`Multiply<Scalar>` and `Multiply` on one generic type refused as overlapping). Neither blocks a slice. ## Test Documentation only. `torb docs index`, `torb docs skill docs skills` (no change to skills/) and pdisc ok locally; forge CI is the gate. ## Seed impact None. Slice 8 of the record (Float32 `Real`) would be seed-affecting and is its own later PR.
docs(compute): design record for std/tensor on the CPU
All checks were successful
ci / every host emits the same C (pull_request) Has been skipped
ci / the playground (torb as WebAssembly) (pull_request) Has been skipped
ci / tier A (linux-x64) (pull_request) Successful in 4m50s
ci / pack the seed (pull_request) Successful in 9s
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
images / cr.torb.dev/torbscript/registry (push) Has been skipped
images / cr.torb.dev/torbscript/release-sync (push) Has been skipped
images / cr.torb.dev/torbscript/site (push) Has been skipped
ci / what the change touches (push) Successful in 3s
ci / commit messages (push) Successful in 3s
ci / which runners exist (push) Successful in 1s
ci / bootstrap and conformance (windows-x64) (push) Has been skipped
ci / bootstrap and conformance (linux-arm64) (push) Has been skipped
ci / bootstrap and conformance (macos-arm64) (push) Has been skipped
pdisc / pdisc (push) Successful in 10s
ci / bootstrap (linux-x64) (push) Successful in 11s
ci / cross-compiled on linux-x64 (windows-x64) (push) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (push) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (push) Has been skipped
ci / the VS Code extension (editors/vscode) (push) Successful in 11s
ci / tier A (linux-x64) (push) Successful in 4m59s
ci / tools/release-sync and tools/registry (linux-x64) (push) Successful in 2m14s
images / cr.torb.dev/torbscript/site:edge (main) (push) Successful in 7m40s
ci / every host emits the same C (push) Successful in 4m46s
ci / tier B (linux-x64) (push) Successful in 12m33s
ci / pack the seed (push) Has been skipped
ci / archives (push) Has been skipped
ci / the playground (torb as WebAssembly) (push) Successful in 1m53s
ci / gates (push) Successful in 0s
a5bdcf3e10
Closes #438
argus approved these changes 2026-10-23 16:40:22 +00:00
argus left a comment

Review of head a5bdcf3 (docs only, CI green incl. pdisc and gates).

  • Tests/CI: documentation only; all required checks success for this head, tier A and the pdisc check included.
  • Scope: matches #438 (TENSOR.md, index entry, COMPUTE.md and ROADMAP links); no std/runtime/compiler changes, no seed impact.
  • Acceptance criteria of #438: type and layout, scalars and Float32, copy vs view with a value-semantics example, broadcasting and shape errors, first-release signatures with the operator probe, in place and parallel loop prerequisites, Dual/gpu/reverse constraints, cost table, slice list with seed impact, no open questions left that need the owner: all present.
  • Correctness of the design: invariants, reduction order and the parallel plan are consistent; checker gaps are filed (#440, #441) and do not block a slice.
  • Docs/frontmatter: index.md updated, pdisc green.
  • Security/data: none touched.

Non-blocking: none.

Review of head a5bdcf3 (docs only, CI green incl. pdisc and gates). - Tests/CI: documentation only; all required checks success for this head, tier A and the pdisc check included. - Scope: matches #438 (TENSOR.md, index entry, COMPUTE.md and ROADMAP links); no std/runtime/compiler changes, no seed impact. - Acceptance criteria of #438: type and layout, scalars and Float32, copy vs view with a value-semantics example, broadcasting and shape errors, first-release signatures with the operator probe, in place and parallel loop prerequisites, Dual/gpu/reverse constraints, cost table, slice list with seed impact, no open questions left that need the owner: all present. - Correctness of the design: invariants, reduction order and the parallel plan are consistent; checker gaps are filed (#440, #441) and do not block a slice. - Docs/frontmatter: index.md updated, pdisc green. - Security/data: none touched. Non-blocking: none.
argus merged commit a5bdcf3e10 into main 2026-10-23 16:40:22 +00:00
argus deleted branch loop/438-tensor-design 2026-10-23 16:40:23 +00:00
Sign in to join this conversation.
No reviewers
No labels
loop
ready
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
torbscript/language!442
No description provided.