:rocket: Day 52: Microsoft’s TypeScript Gets a Go-Powered Upgrade!

Microsoft is rewriting the TypeScript compiler in Go (codenamed Corsa)—and the performance gains are massive:
:zap: 10x faster builds
:rocket: 8x faster project load times
:brain: AI-powered developer tools

If you’ve ever felt frustrated by slow TypeScript builds, this could be a game-changer. But wait… why is Microsoft moving away from JavaScript?

Why Not Just Speed Up JavaScript?
JavaScript is fantastic for UI and web apps, but when it comes to compute-heavy workloads like compilers, it hits a major roadblock: single-threading.

:bulb: JS runs on a single core and lacks true multi-threading support. While features like Shared Structs are in development, they’re not ready yet. On the other hand, Go and Rust have native multi-threading. They can fully utilize multiple CPU cores, massively improving performance. That’s why Microsoft had to look beyond JavaScript.

Why Go? Not Rust? Not C++?
Many expected Rust (like Deno, Turbo, and Rolldown), but Microsoft chose Go for three key reasons:
:heavy_check_mark: Ease of porting – Go allows a structured, line-by-line conversion from the existing TypeScript codebase.
:heavy_check_mark: Garbage collection – Unlike Rust, Go’s memory management is automatic, simplifying implementation.
:heavy_check_mark: Simplicity – Go is easy to write, read, and maintain.

What This Means for Developers
:pushpin: Blazing-fast TypeScript compilation – Say goodbye to long build times.
:pushpin: Lower memory usage – The Go-based compiler will use ~50% less memory than today’s JS version.
:pushpin: AI-powered coding assistance – Faster TypeScript means smarter dev tools.

The JS-based TypeScript (6.x) will continue, but TypeScript 7.0 (native Go) is the future. Expect a preview by mid-2025 and a full rollout by year-end.

100daysofcode lebanon-mug typescript