Rule 1.3
On this page

Rule 1.3

Chapter 1, Introduction Test

The CPU oracle is the reference evaluation of the meaning this document defines (Rule 1.1): ECMAScript’s result for a form borrowed from ECMAScript, with the arithmetic of the WGSL types the program uses, WGSL’s result for a form borrowed from WGSL, the recorded result where a rule gives another, and, where WGSL leaves room (§11), one of the permitted answers.

The rule text and the parts under it are the compiler's own English, as the design document writes them.

Rationale

a test that compares a GPU result with the oracle is only meaningful if the oracle is the specification’s answer and not a third opinion. The CPU tier of change 0080 already uses JavaScript’s own Map and Set as the oracle.

Derives from

changes/0100-typescript-meaning.md (section 2); Floating Point Evaluation and AGENTS.md (“one IR, three backends”).

How it is verified

Checked by a test. A test, a gate script or a CI workflow names this rule, and the traceability check fails when a file listed below stops naming it.

Where the rule says the compiler enforces it:

src/core/oracle-backend-parity.test.ts and src/core/passes/determinism.test.ts.

The files that verify it at commit af54ddad5, each at the first line that names the rule:

Explained in

The sections of the surface document that explain this rule, at commit af54ddad5:

See also

Source

The rule at commit af54ddad5:

Edit this page Report a problem