NewsDeveloper ToolsProgramming Languages

TypeScript 7 in Go: 10x Faster Compilation

Microsoft is rewriting TypeScript’s compiler in Go—not TypeScript—for version 7.0, promising 10x faster compilation for large codebases. The irony is intentional: performance trumps philosophy. Project Corsa, as it’s codenamed, targets early 2026 and marks TypeScript’s biggest architectural shift since its 2012 launch. With 78% of enterprises using TypeScript and 2.6 million GitHub contributors depending on it, slow compilation is no longer acceptable.

The Numbers Don’t Lie: 8-10x Faster Across the Board

TypeScript 7.0 delivers dramatic speedups for real-world codebases. Visual Studio Code’s 1.5 million lines of TypeScript now compile in 8.7 seconds, down from 89. Sentry drops from 133 seconds to 16. TypeORM goes from 15.8 seconds to barely over one second. These aren’t synthetic benchmarks—they’re production codebases millions of developers use daily.

Editor startup drops from 9.6 seconds to 1.2 seconds for large projects, and memory usage falls by 70%. TypeScript 6’s single-threaded Node.js runtime couldn’t compete with Rust-based tools like SWC (20x faster) or esbuild (100x faster, though without type checking). TypeScript 7 closes that gap while maintaining full type checking.

How? Go’s native parallelism uses all CPU cores through goroutines, eliminating Node.js’s interpreter overhead. Multi-threaded compilation works across incremental builds and project references. For enterprises with million-line codebases, cutting 90-second builds to 9 seconds transforms developer productivity.

Why Go, Not Rust? And Why Rust Fans Are Mad

The JavaScript tooling ecosystem has embraced Rust. SWC powers Next.js. Deno runs on Rust. Rspack challenges Webpack. The community expected TypeScript to follow suit. Microsoft chose Go instead.

Ryan Cavanaugh, TypeScript’s development lead, acknowledged the controversy: “We definitely knew when choosing Go that there were going to be people questioning why we didn’t choose Rust.” His Reddit comment earned 1,305 upvotes. The debates were predictable: Rust fans argued for potentially faster runtime performance; Go advocates pointed to development velocity.

Microsoft’s rationale prioritized the TypeScript team’s iteration speed over raw performance. Go compiles faster than Rust, which matters when you’re building a compiler. Go’s syntax resembles TypeScript more closely than Rust’s, making the port easier. And Go provides memory control without Rust’s learning curve. The team chose a 10x speedup they could deliver quickly over a potential 12-15x speedup that would take longer.

The real irony? TypeScript—a language designed to add static typing to JavaScript—doesn’t self-host its own compiler anymore. Go writes the type checker. Pragmatism wins over principle.

Breaking Changes Signal Maturity

TypeScript 7.0 sheds legacy constraints. ES5 support is gone; ES2015 becomes the minimum target. Strict mode enables by default for new projects. Classic module resolution (AMD/UMD/SystemJS) disappears.

TypeScript 6.0 serves as a disposable bridge release with deprecation warnings aligned to 7.0. There’s no 6.1 planned—just patches. Microsoft is forcing modernization.

For a 14-year-old language with 78% enterprise adoption, dropping IE11 support and defaulting to strict mode shows confidence. The migration path includes automated tools like @andrewbranch/ts5to6 for tsconfig.json updates, but the message is clear: move forward or stay behind.

Available Now, Production-Ready Q1 2026

The native preview is stable enough for daily use. Install it via npm install -D @typescript/native-preview or try the Visual Studio 2026 Insiders build. Microsoft’s own teams already use it without blocking issues.

Type checking shows 99.9% compatibility with TypeScript 6—only 74 discrepancies out of 20,000 test cases. Language service features are complete: auto-imports, find-all-references, rename, hover tooltips, and quick fixes all work. Some rough edges remain around downlevel compilation for targets below ES2021 and watch mode performance, but production release targets Q1 2026.

What This Means for 2.6 Million Developers

TypeScript already ranks #1 on GitHub, surpassing Python in August 2025. This performance boost cements its dominance. Developers no longer need to choose between speed (esbuild) and type safety (tsc)—TypeScript 7 delivers both.

For enterprises, the calculus is simple: faster builds mean shorter CI/CD cycles, lower infrastructure costs, and less developer frustration. For individual developers earning the TypeScript premium ($129K average, 10-15% above JavaScript-only roles), faster tooling makes that premium even more justified.

The core question isn’t whether your compiler is self-hosted. It’s whether it’s fast. Microsoft answered that question by choosing Go, accepting the irony, and shipping a 10x improvement. That’s pragmatism over ideology—and exactly what 2.6 million developers needed.

ByteBot
I am a playful and cute mascot inspired by computer programming. I have a rectangular body with a smiling face and buttons for eyes. My mission is to simplify complex tech concepts, breaking them down into byte-sized and easily digestible information.

    You may also like

    Leave a reply

    Your email address will not be published. Required fields are marked *

    More in:News