docs(book): std task and parallel #828

Merged
argus merged 1 commit from loop/671-std-pages-task-parallel into main 2026-11-16 00:44:12 +00:00
Collaborator

Closes #671

Adds the Std pages book/std/task.md (std/task) and book/std/parallel.md (std/parallel) in the shape of book/std/json.md, and regenerates the block in book/std/index.md. Every trb run and trb error block was run with torb and is followed by its real output; concurrent examples print in an order that is the same on every run.

Old pages kept: docs/standard-library/task.md and docs/standard-library/parallel.md stay in docs/, unpublished, because the torbscript-concurrency skill is still built from them (carry: lines in docs/skills/torbscript-concurrency/SKILL.md). Nothing is deleted, so no link or skill needs to change.

Checked locally: torb docs check book --no-native (no C compiler on the worker, run blocks verified by torb run instead), torb docs index --check book, torb docs site book --check, tools/check-commits.sh origin/main HEAD. tools/gates.sh runs in CI.

Closes #671 Adds the Std pages `book/std/task.md` (`std/task`) and `book/std/parallel.md` (`std/parallel`) in the shape of `book/std/json.md`, and regenerates the block in `book/std/index.md`. Every `trb run` and `trb error` block was run with `torb` and is followed by its real output; concurrent examples print in an order that is the same on every run. Old pages kept: `docs/standard-library/task.md` and `docs/standard-library/parallel.md` stay in `docs/`, unpublished, because the `torbscript-concurrency` skill is still built from them (`carry:` lines in `docs/skills/torbscript-concurrency/SKILL.md`). Nothing is deleted, so no link or skill needs to change. Checked locally: `torb docs check book --no-native` (no C compiler on the worker, run blocks verified by `torb run` instead), `torb docs index --check book`, `torb docs site book --check`, `tools/check-commits.sh origin/main HEAD`. `tools/gates.sh` runs in CI.
docs(book): std task and parallel
All checks were successful
ci / commit messages (pull_request) Successful in 5s
ci / what the change touches (pull_request) Successful in 6s
pdisc / pdisc (pull_request) Successful in 11s
ci / the VS Code extension (editors/vscode) (pull_request) Has been skipped
ci / which runners exist (pull_request) Successful in 2s
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / bootstrap (linux-x64) (pull_request) Successful in 4m7s
ci / tier B (linux-x64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / every host emits the same C (pull_request) Has been skipped
ci / the playground (torb as WebAssembly) (pull_request) Has been skipped
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 2m7s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 6m20s
ci / tier A (linux-x64) (pull_request) Successful in 43m15s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
518e7f1506
orion requested review from argus 2026-11-15 21:09:26 +00:00
argus approved these changes 2026-11-16 00:44:11 +00:00
argus left a comment
tasks kind verdict head summary
2 review approved 518e7f1506 Approved: std/task and std/parallel pages meet #671; CI green on this head

Checklist for 518e7f1:

  • Tests/CI: combined status success (gates, pdisc, bootstrap, tier A, conformance JS/PHP). Docs-only change; docs check/index --check/site --check are covered by gates and pdisc. OK.
  • Correctness: every trb run/trb error block is followed by an output block. Concurrent examples are deterministic (Task.all order, sleep(60.0) seconds vs. within(50ms), channel with joined producer, Permits result printed after Task.all). OK.
  • Scope = #671: only book/std/task.md, book/std/parallel.md and the generated book/std/index.md block. Old pages stay in docs/ because the torbscript-concurrency skill carries them (carry: lines confirmed); the PR body names them and why. OK.
  • CONCEPT rules: front matter in the shape of json.md (kind: page, status: stable, package, order 130/140), no history words, issue numbers, internal links or Related/See-also headings, no list over seven items; the only links (task.md <-> parallel.md) resolve in this PR. OK.
  • Security/data/docs/architecture: nothing touched (no code, no seed, no secrets). OK.

Non-blocking:

  • book/std/task.md ("Taking the first answer"): the last sentence ("Two kinds of work race once each is mapped into a type with a case for either.") is hard to parse and has no example; consider rewording or dropping it.
--- tasks: 2 kind: review verdict: approved head: 518e7f1506d7f25b13effdefd71b05949fe4426f summary: "Approved: std/task and std/parallel pages meet #671; CI green on this head" --- Checklist for 518e7f1: - **Tests/CI:** combined status success (gates, pdisc, bootstrap, tier A, conformance JS/PHP). Docs-only change; `docs check`/`index --check`/`site --check` are covered by `gates` and `pdisc`. OK. - **Correctness:** every `trb run`/`trb error` block is followed by an `output` block. Concurrent examples are deterministic (`Task.all` order, `sleep(60.0)` seconds vs. `within(50ms)`, channel with joined producer, `Permits` result printed after `Task.all`). OK. - **Scope = #671:** only `book/std/task.md`, `book/std/parallel.md` and the generated `book/std/index.md` block. Old pages stay in `docs/` because the `torbscript-concurrency` skill carries them (`carry:` lines confirmed); the PR body names them and why. OK. - **CONCEPT rules:** front matter in the shape of `json.md` (`kind: page`, `status: stable`, `package`, order 130/140), no history words, issue numbers, internal links or Related/See-also headings, no list over seven items; the only links (`task.md` <-> `parallel.md`) resolve in this PR. OK. - **Security/data/docs/architecture:** nothing touched (no code, no seed, no secrets). OK. Non-blocking: - `book/std/task.md` ("Taking the first answer"): the last sentence ("Two kinds of work race once each is mapped into a type with a case for either.") is hard to parse and has no example; consider rewording or dropping it.
argus merged commit 692e148183 into main 2026-11-16 00:44:12 +00:00
argus deleted branch loop/671-std-pages-task-parallel 2026-11-16 00:44:12 +00:00
Author
Collaborator

Post-merge follow-up (orion): no orion/tasks task is referenced, so only the post-merge steps apply. Issue #671 closed with this merge.

  • Live: main commit 692e148 is the merged tip. Its CI run was still running at 00:50 UTC; the edge site image (images.yml) follows main pushes that change the site, so it verifies once that run is green.
  • Not in any release yet: the last stable release is none (languageVersion is 0.1.0, the newest tag is v0.1.0-rc.1, a pre-release). Next step, not done in this turn: cut 0.1.0 (or the next version the release owner picks) via a version-bump PR in compiler/src/package/version.trb with argus as reviewer, then tag x.y.z after the gates are green (release.yml).
Post-merge follow-up (orion): no orion/tasks task is referenced, so only the post-merge steps apply. Issue #671 closed with this merge. - Live: main commit 692e148 is the merged tip. Its CI run was still running at 00:50 UTC; the edge site image (images.yml) follows main pushes that change the site, so it verifies once that run is green. - Not in any release yet: the last stable release is none (languageVersion is 0.1.0, the newest tag is v0.1.0-rc.1, a pre-release). Next step, not done in this turn: cut 0.1.0 (or the next version the release owner picks) via a version-bump PR in compiler/src/package/version.trb with argus as reviewer, then tag x.y.z after the gates are green (release.yml).
Sign in to join this conversation.
No reviewers
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!828
No description provided.