HeadlinesBriefing favicon HeadlinesBriefing.com

TypeScript 7.0: A 10x Faster Native Compiler

Hacker News •
×

TypeScript has launched version 7.0, delivering a native port of the compiler written in Go, achieving speedups typically between 8x and 12x on full builds. This rewrite leverages modern hardware with shared memory multithreading and numerous optimizations, aiming to make TypeScript development significantly faster across the board. The new version is available via npm, with the `tsc` executable ready for use in workspaces.

Editor integration is a major focus, with TypeScript 7.0 supporting the Language Server Protocol (LSP). Developers using editors like VS Code, Visual Studio, and WebStorm should see immediate performance gains, with operations like finding references and auto-completions becoming nearly instantaneous. For instance, displaying the first error in the VS Code codebase now takes under 1.3 seconds, a more than 13x improvement over TypeScript 6.0.

This release underwent extensive testing with large organizations including Microsoft teams (Loop, Office, Power BI, Teams, Xbox) and companies like Bloomberg, Canva, and Google. Initial feedback indicates over 80% reduction in failing language server commands and over 60% fewer server crashes compared to version 6.0. While TypeScript 7.0 is designed for production readiness, version 7.1 is expected to introduce a new API, with a compatibility package, `@typescript/typescript6`, available for tools still needing TypeScript 6.0 programmatic access.