Anders Hejlsberg, the creator of TypeScript and C#, said the TypeScript 7 native rewrite finally delivers the promised 10x faster TypeScript. The team ported the half-million-line compiler from JavaScript to Go.
He laid out the reasoning in a new YouTube interview. The short version: scale.
Visual Studio Code now sits at 2.3 million lines, and Microsoft has internal TypeScript projects over 10 million lines. That was unthinkable when TypeScript began in 2012 as the Strata project, first in C, then in JavaScript so the team could self-host.
Self-hosting paid off. The team dogfooded the language every day, and the compiler ran everywhere, even in the browser, at a moment when V8 had pulled JavaScript to within two to three times native speed.
The trade has flipped since then. TypeScript 6 runs at roughly half the speed of TypeScript 1.5, because each addition like union types and control flow analysis carries a checking cost.



