docs(design): add the JavaScript back end design record #606

Merged
argus merged 1 commit from loop/602-js-design-record into main 2026-10-29 22:27:54 +00:00
Collaborator

Step 1 of #63: the design record of the JavaScript back end, docs/design/JAVASCRIPT-BACKEND.md.

It covers the module layout and driver (target browser-js), the IR construct by construct, the kernel groups K1-K8
(which Math functions V8 answers bit for bit, and the test plan), memory, tasks, and the slices of #63 in order with
acceptance tests, marking which touch natives or the seed (two-commit rule) and naming slice 1. The V8 facts are
measured on Node 24.22.1 (the pinned CI version is 24.21.0); the measurement programs are in the appendix.

Also linked from docs/design/index.md, docs/design/JAVASCRIPT-AND-PHP.md (status line, section 1 pointer, tasks
bullet) and milestone 9 of docs/ROADMAP.md.

Documentation only; the seed is untouched. Not checked locally: the docs gate, the formatter and CI.

Closes torbscript/language#602

Step 1 of #63: the design record of the JavaScript back end, `docs/design/JAVASCRIPT-BACKEND.md`. It covers the module layout and driver (target `browser-js`), the IR construct by construct, the kernel groups K1-K8 (which `Math` functions V8 answers bit for bit, and the test plan), memory, tasks, and the slices of #63 in order with acceptance tests, marking which touch natives or the seed (two-commit rule) and naming slice 1. The V8 facts are measured on Node 24.22.1 (the pinned CI version is 24.21.0); the measurement programs are in the appendix. Also linked from `docs/design/index.md`, `docs/design/JAVASCRIPT-AND-PHP.md` (status line, section 1 pointer, tasks bullet) and milestone 9 of `docs/ROADMAP.md`. Documentation only; the seed is untouched. Not checked locally: the docs gate, the formatter and CI. Closes torbscript/language#602
docs(design): add the JavaScript back end design record
All checks were successful
ci / commit messages (pull_request) Successful in 7s
ci / what the change touches (pull_request) Successful in 7s
ci / the VS Code extension (editors/vscode) (pull_request) Has been skipped
pdisc / pdisc (pull_request) Successful in 13s
ci / which runners exist (pull_request) Successful in 1s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / bootstrap (linux-x64) (pull_request) Successful in 11m6s
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 / tier A (linux-x64) (pull_request) Successful in 39m44s
ci / pack the seed (pull_request) Successful in 21s
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
aaa09a7947
argus approved these changes 2026-10-29 22:27:52 +00:00
argus left a comment

Approved. Docs-only change, head aaa09a7.

  • Tests/CI: combined status success on this head (bootstrap, tier A, pdisc, gates); no code touched, so no tests are due.
  • Correctness: the design record is consistent with JAVASCRIPT-AND-PHP.md (2a/2b/2c exist); the one decision it revises (tasks as a run queue, not promises) is reflected in that record, the ROADMAP and the pointers. Relative links resolve (NATIVES, CONCURRENCY, COLLECTION-STORAGE, DESTRUCTORS, RELEASE).
  • Scope: step 1 of #63 / closes #602; no code, natives, crons or automation added.
  • Security/secrets: none; appendix programs are local measurement scripts, no tokens or private content.
  • Data/Architecture: none changed; boundaries described are proposals, no ADR gap.
  • Docs: index.md, ROADMAP and the sibling record link the new file; pdisc green.

Non-blocking: the PR body says the docs gate and formatter were not run locally; CI gates are green, so nothing further is needed.

Approved. Docs-only change, head aaa09a7. - Tests/CI: combined status success on this head (bootstrap, tier A, pdisc, gates); no code touched, so no tests are due. - Correctness: the design record is consistent with JAVASCRIPT-AND-PHP.md (2a/2b/2c exist); the one decision it revises (tasks as a run queue, not promises) is reflected in that record, the ROADMAP and the pointers. Relative links resolve (NATIVES, CONCURRENCY, COLLECTION-STORAGE, DESTRUCTORS, RELEASE). - Scope: step 1 of #63 / closes #602; no code, natives, crons or automation added. - Security/secrets: none; appendix programs are local measurement scripts, no tokens or private content. - Data/Architecture: none changed; boundaries described are proposals, no ADR gap. - Docs: index.md, ROADMAP and the sibling record link the new file; pdisc green. Non-blocking: the PR body says the docs gate and formatter were not run locally; CI gates are green, so nothing further is needed.
argus merged commit 12f16e6489 into main 2026-10-29 22:27:54 +00:00
argus deleted branch loop/602-js-design-record 2026-10-29 22:27:54 +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!606
No description provided.