Tuesday, July 14, 2026

TypeScript 7.0: in GoLang

 Announcing TypeScript 7.0 - TypeScript

a 10x faster native port of TypeScript!

While TypeScript 7.0 is here, it does not ship with an API. We expect TypeScript 7.1 to ship with a new (and different) API, but until then we have made it a priority to ensure TypeScript can be run side-by-side with TypeScript 6.0 for utilities that still need some programmatic access to the compiler (such as typescript-eslint).





TypeScript technical fellow, creator of TypeScript, Anders Hejlsberg introduces TypeScript 7, the native code (Go) port of the compiler and tooling that runs roughly 10x faster than TypeScript 6.

TypeScript 7 introduces a ground-up rewrite of the TypeScript compiler and tooling in native code (Go), replacing the legacy JavaScript-based compiler to deliver roughly 10× faster compilation performance than TypeScript 6.


Key Takeaways & Features

  • Native Go Port: Moving from a JavaScript runtime to native code eliminates single-thread limitations and V8 engine overhead.

  • Shared-Memory Concurrency: The compiler now utilizes multi-threading across all available CPU cores, providing speedups ranging from 8× to 12× on full builds.

  • Real-World Benchmark: A live demonstration showed compiling the 2.3 million line VS Code codebase dropping from ~50 seconds down to under 5 seconds.

  • New LSP Language Server: Near-instant editor startup, instantaneous error squiggles, and rapid symbol/reference lookups.

  • 99.99% Backward Compatibility: Designed as a drop-in replacement compatible with existing TypeScript 6 codebases and configurations.

No comments: