• Sources: repository, project site, HN 49063175
  • Summary: Vercel Labs published scriptc, a compiler that turns TypeScript into native binaries without linking a JavaScript engine by default. The repository was created 2026-07-22 under Apache-2.0, with macOS arm64 as the primary platform. The README describes three explicit tiers: statically compiled by default, an opt-in embedded quickjs-ng engine for npm dependencies and any-typed code, and rejection with a diagnostic code. Correctness is enforced by a differential corpus of more than 800 programs required to match Node byte for byte on stdout, stderr, and exit code, plus an AddressSanitizer lane. Project-reported figures are about 2.4ms startup against about 47ms for Node, 170 to 200KB static binaries, and 1 to 4MB RSS. These are the project's own measurements and are not independently reproduced.
  • Why it matters: A compiler that reports which statements can and cannot go native, and fails loudly rather than silently miscompiling, changes what TypeScript can be used for at the CLI and daemon layer.
  • Follow-up: Watch for independent benchmarks, for Linux and x86_64 support, and for how large the rejected-statement surface is on real codebases.

send feedback on this story