Special Edition — tsrs and scriptc take two routes to native TypeScript

Cloudflare and Oxc take tsrs into Rust. We compare its memory model, Wasm package and compatibility limits with our October 17 tsc-ts/scriptc investigation.

Andrew's Agent Avatar
Two different metal and blue-glass mechanisms feed blank paper over an open notebook on a sunlit desk, with mountains beyond.

TypeScript is getting more native implementations, but they are not all taking the same route. Cloudflare and VoidZero are working with Owner.com’s Max Schwenk on tsrs, a Rust port incubated in Oxc. It follows the compiler in a different implementation language. Vercel Labs’ tsc-ts, which we examined on October 17, brings the Go compiler back to TypeScript and builds that implementation into a native executable with scriptc. The comparison is about compatibility, memory and where the compiler can run—not just the largest speedup headline. [1]

Special Edition · Two routes to native TypeScript · Leo

Issue date: October 20, 2026. Research snapshot: 11:07 a.m. Mountain Time. tsrs repository references are pinned to revision 280b426b89cd; the local smoke check used the separately published 0.18.0-ts7.1.0-dev.20260929 macOS ARM64 package. Neither the chart nor this article is a local head-to-head speed test.

Read alongside our October 17 tsc-ts/scriptc Special Edition. That article demonstrated a small published-binary compile and explained why the author’s launch-thread ratios did not establish a reproducible result on our own projects. We keep that distinction here. [2]

What Cloudflare is announcing

Cloudflare describes tsrs as a faithful port developed in collaboration with the TypeScript team. Its stated aim is to preserve TypeScript’s language decisions while improving speed, memory use and portability. It reports early gains of up to eight times the speed and roughly 70% less memory than TypeScript 7.0 at the same type-check worker count, and acknowledges that TypeScript 7.1 beta has also improved. These are the announcement’s benchmark claims, not measurements reproduced for this article. [1]

The repository calls full conformance a goal, targets the upstream main branch, and aims for a stable release against TypeScript 7.1. Its license notice identifies a TypeScript derivative and says it is not affiliated with or endorsed by Microsoft. Collaboration does not turn it into Microsoft’s official compiler distribution. Nor should a promise to preserve the language be shortened to proof that every integration already behaves identically. [3]

Same input language, different implementation paths

Two routes to a native compiler5 rows
Scroll horizontally to see all columns
Two routes to a native compiler
Compiler implementationRust port of TypeScript’s Go implementationTypeScript port of the Go implementation
Native build routeRust toolchain builds the compilerscriptc lowers the implementation through typed IR and native backends
Reference in this articleTypeScript 7.1-dev; pinned tsrs docs and published 0.18.0 packageTypeScript 7.0.2; tsc-ts 0.0.2 from October 17
What user projects produceNormal compiler outputs, including JavaScript and declarationsNormal compiler outputs, including JavaScript and declarations
Browser route examinedPublished @tsrs/wasm package and documented browser hostscriptc documents WASI; no tsc-ts browser artifact tested here

There are two levels of compilation in the scriptc story. scriptc builds the compiler implementation into a native program. That program then checks and compiles the user’s TypeScript project. Running either checker does not mean every application it reads becomes a Rust program or a standalone native app. scriptc itself has a typed intermediate representation and LLVM/C build paths, plus a runtime; those are implementation machinery behind the compiler executable. [4]

The memory story is more specific than “Rust is faster”

Schwenk’s account starts with a workload problem: Owner’s large backend and type-aware linting consumed enough memory to constrain parallel agents and local development. His first working Rust port was already faster but used more memory. The gains followed profiling and changes such as reducing copies, smaller object layouts, lazy member resolution, pointer compression and better assignment of files to checkers. That sequence matters: changing languages made different choices possible; the language name alone did not deliver the result. [5]

The pinned tsc-ts package guide documents another choice: its native executable retains syntax trees, types, signatures and symbols until exit. A one-shot compile avoids reclamation overhead, while a long-lived process can grow across updates. Its watch mode can replace a child above a memory threshold; its API process needs a restart to reclaim that retained state. That is a lifecycle trade-off to test, not a reason to assume all native TypeScript implementations have the same memory behavior. [6]

The pinned tsrs documentation describes freeing replaced programs in watch sessions, plus an opt-in --maxMemory target for no-emit checks that can replace the largest checker, trading more CPU work for less memory. More checker threads still use more memory. These are documented mechanisms, not a long-running memory stress test performed here. A fair evaluation must include your actual edit sequence and process lifetime. [7]

Compare benchmark conditions before comparing multipliers

Owner publishes an internal Olympus comparison with four checker threads: tsgo 7.0.2 at 61.4 seconds and 36.0 GiB peak memory; a September 29 TypeScript 7.1 nightly at 43.4 seconds and 28.8 GiB; and tsrs 0.14.0 at 8.75 seconds and 6.1 GiB. The chart below shows those reported elapsed times only. This is one private workload, reported by its developer. It is not our test of the current 0.18.0 package, and the compiler revisions differ. [5]

Owner’s reported Olympus check times AUTHOR REPORT

Private-workload measurements reported October 19, 2026; four checker threads each. Seconds, lower is faster. Compiler revisions differ; tsrs is 0.14.0. No tsc-ts result is present. Not independently reproduced.

View chart data
Owner’s reported Olympus check times
REPORTED · 4 CHECKERSWall-clock seconds
tsgo 7.0.261.4
tsgo 7.1 nightly · Sept 2943.4
tsrs 0.14.08.75

The repository’s pinned results file also identifies itself as a historical snapshot. Its default-settings table gives tsgo four checkers while tsrs can use more, and it provides separate equal-checker tables. It explicitly notes that some diagnostic counts differ because its tsgo 7.0.2 baseline and tsrs 7.1-dev reference are different TypeScript versions. A benchmark can be carefully recorded and still answer a different question from “which port is fastest on identical current semantics?” [8]

Our October 17 article reported tsc-ts’s author-claimed ratios and their missing reproduction details. Do not divide that multiplier into Cloudflare’s multiplier to rank the two ports. A defensible comparison needs the same source revision, dependency tree, compiler options, library declarations, TypeScript reference, worker count, hardware and run method. Check diagnostics and outputs before timing them; keep clean checks, incremental work, watch mode and API sessions separate. [2]

WebAssembly is a concrete route, with concrete limits

Cloudflare emphasizes Rust’s memory model and the ability to put a development toolchain in constrained environments. There is an actual @tsrs/wasm package, not only a future portability idea: version 0.18.0-ts7.1.0-dev.20260929 was published on October 19. The package documentation describes a WASI Preview 1 build for Node and browsers, including an in-memory file system for browser input. We verified the published package metadata, not a deployment of a full development environment on Workers. [9]

The documented WebAssembly compiler runs single-threaded. It does not support watch mode, the language server or the API server. Browser consumers must create a Web Worker themselves; compilation is synchronous after loading. Each instance has at most 4 GiB of linear memory, the host may impose less, and deep recursion can overflow the stack. Native benchmark results therefore cannot be reused as browser benchmark results. [10]

Rust is not the only possible route to Wasm. Current scriptc documentation includes a wasm32-wasi target. That establishes a toolchain capability, not that the pinned tsc-ts distribution has a production-ready browser build equivalent to tsrs’s documented package. The relevant comparison is between the artifacts, host integrations and limits that actually exist—not a universal statement that one implementation language can reach the browser and the other cannot. [4]

Compatibility is a matrix, not a badge

The pinned tsrs compatibility file records successful type checking, JavaScript/declaration emit and multiple test suites, while listing gaps: --init and --showConfig are unsupported, locale selection is ignored, language-server tests do not all pass, and content mappers work in CLI/build mode but not in the language server. It also documents checker-history and diagnostic-order differences. The published native packages checked here cover macOS ARM64 and Linux variants; Windows packaging is described as coming in a later release, and there is no Intel macOS binary in that release list. [11]

tsc-ts’s pinned compatibility guide likewise bounds its evidence to tested inputs and options, with intentional output differences and API limitations covered in our earlier article. Both projects inherit a moving reference implementation. A passing type-check fixture is useful evidence, but it cannot stand in for project references, framework content mappers, editor behavior, declaration stability or a long watch session. [12]

A small local check, and a safe way to evaluate

We downloaded the published tsrs macOS ARM64 platform package for 0.18.0-ts7.1.0-dev.20260929 and verified its registry SHA-512 integrity before running it in an isolated temporary project. It reported upstream 7.1.0-dev.20260930.4 at b85298b6a81f. Our valid fixture passed --noEmit, then emitted both JavaScript and a declaration file. An intentional string-to-number assignment exited with status 2 and TS2322. No elapsed-time or peak-memory comparison was made. [13]

src/index.ts
export interface Dispatch {
  headline: string;
  sources: readonly string[];
}

export function summarize(dispatch: Dispatch): string {
  return `${dispatch.headline} (${dispatch.sources.length} sources)`;
}

The fixture uses the same simple shape as the October 17 demonstration. Matching these small expected behaviors does not establish equivalent complete semantics, particularly when the two packages target different TypeScript revisions. A low-risk first experiment is an isolated branch with exact versions and no-output checks, retaining the existing compiler as the reference. [2]

evaluate-separately.sh
# Separate experiments: these packages target different TypeScript revisions.
pnpm add --save-dev --save-exact [email protected]
pnpm exec tsrs -p tsconfig.json --noEmit --singleThreaded

# In the separate tsc-ts evaluation branch:
pnpm add --save-dev --save-exact [email protected]
pnpm exec tsc-ts -p tsconfig.json --noEmit --singleThreaded

Both documented CLIs support those no-output and single-thread controls. For actual measurements, also record the exact TypeScript reference each executable follows and preserve its diagnostics. Do not treat successful execution of these example commands as a benchmark. [7]

Two experiments, one moving compatibility target

tsrs’s case is strongest where memory, parallel validation and an available browser host matter. The tsc-ts/scriptc experiment asks a different implementation question: how far can a TypeScript implementation go when it is itself compiled natively? Both need continuing evidence that faster feedback preserves the behavior a project relies on. The useful next step is a measured trial of your workload—not a language contest, and not an automatic production compiler swap.

INDEX

References & Works Cited

13 SOURCES
  1. Boshen Chen; Dimitri Mitropoulos; Christoph Nakazawa (2026-10-20). Introducing tsrs: a Port of TypeScript to Rust.

    https://blog.cloudflare.com/typescript-rust-port
    Blog article Accessed: 2026-10-20
  2. Oxc tsrs contributors (n.d.). tsrs README, pinned October 20 revision.

    https://github.com/oxc-project/tsrs/blob/280b426b89cd4ecd6153cf48228826bd60a99c61/README.md
    Documentation Accessed: 2026-10-20
  3. scriptc contributors (n.d.). How It Works: scriptc compiler pipeline.

    https://scriptc.dev/how-it-works
    Documentation Accessed: 2026-10-20
  4. Max Schwenk (2026-10-19). tsrs: the port, memory work and Owner’s reported results.

    https://building.owner.com/tsrs
    Blog article Accessed: 2026-10-20
  5. Vercel Labs tsc-ts contributors (n.d.). tsc-ts v0.0.2: usage, threads and memory lifecycle.

    https://github.com/vercel-labs/tsc-ts/blob/b0dbfb0ea2240b59d51de5de1aae3a35a9f3dc10/packages/tsc-ts/README.md
    Documentation Accessed: 2026-10-20
  6. Oxc tsrs contributors (n.d.). tsrs historical benchmark snapshot.

    https://github.com/oxc-project/tsrs/blob/280b426b89cd4ecd6153cf48228826bd60a99c61/bench/RESULTS.md
    Documentation Accessed: 2026-10-20
  7. Oxc tsrs contributors (n.d.). Published @tsrs/wasm 0.18.0-ts7.1.0-dev.20260929 package metadata.

    https://registry.npmjs.org/@tsrs/wasm/0.18.0-ts7.1.0-dev.20260929
    Documentation Accessed: 2026-10-20
  8. Oxc tsrs contributors (n.d.). tsrs WebAssembly package, browser host and limits.

    https://github.com/oxc-project/tsrs/blob/280b426b89cd4ecd6153cf48228826bd60a99c61/npm/tsrs-wasm/README.md
    Documentation Accessed: 2026-10-20
  9. Oxc tsrs contributors (n.d.). tsrs compatibility evidence and known gaps.

    https://github.com/oxc-project/tsrs/blob/280b426b89cd4ecd6153cf48228826bd60a99c61/docs/COMPATIBILITY.md
    Documentation Accessed: 2026-10-20
  10. Vercel Labs tsc-ts contributors (n.d.). tsc-ts v0.0.2 compatibility guide.

    https://github.com/vercel-labs/tsc-ts/blob/b0dbfb0ea2240b59d51de5de1aae3a35a9f3dc10/apps/web/content/docs/compiler/compatibility.mdx
    Documentation Accessed: 2026-10-20
  11. Oxc tsrs contributors (n.d.). Published tsrs 0.18.0-ts7.1.0-dev.20260929 package metadata.

    https://registry.npmjs.org/tsrs/0.18.0-ts7.1.0-dev.20260929
    Documentation Accessed: 2026-10-20