WP33: The round trip to TypeScript

State: In progress · Done: 7 of 9 · Design note: docs/wp33-round-trip.md

Stages

  • R0: the note, the RUN_UNDER_NODE.md ledger and the TypeScript-reading checklist
  • R1: the portability class behind --warn-portability
  • R2: the typed-array names lose push and pop (#335)
  • R3: the runtime split by host, runtime/core/ with Node and browser adapters
  • R4: --emit-ts <dir> with its live differential, tsc --strict and a fuzz mode (#853)
  • R5's exact tier: fix in --json and nish --fix (#421)
  • R5's review tier: review in --json, NL8006's rewrite to the same IR
  • R6: compatibility mode (WP28)
  • A Bun runtime adapter (deferred)

Next

R6, compatibility mode, which is WP28 on its own staging: its spikes are measured, C0 (the machinery) and C1 (the free tier: optional parameters and defaults, ?., ??, string switch, for...of over a string and overloads) are built, and its next stage is C-lib. R6 is done when WP28 is. Spec: §9.

Not planned

An idiomatic --emit-ts that drops the helpers, a transpiler for arbitrary TypeScript, emitting JavaScript.

All work packages