Why Microsoft rebuilt its famous programming language compiler from JavaScript into Go
In short: TypeScript transformed web development by adding static typing to JavaScript, making large-scale applications manageable. After years of running on its own engine, the compiler recently underwent a radical architectural shift. By moving to a native Go-based binary, Microsoft achieved massive performance gains, fundamentally changing how developers build modern software.
Launched in October 2012, TypeScript was designed by Anders Hejlsberg to address the inherent difficulties of scaling JavaScript. By introducing static type annotations and classes, it allowed developers to catch errors at compile-time rather than runtime. Because it is a superset of JavaScript, it maintains compatibility with the ECMAScript standard, allowing developers to integrate existing libraries like jQuery or MongoDB through definition files.
For over a decade, the TypeScript compiler, known as tsc, was written in TypeScript itself. This approach allowed it to run anywhere a JavaScript engine existed, such as in browsers or via Node.js. However, as codebases grew, the limitations of this architecture became apparent. In 2025, Microsoft announced a strategic pivot: rewriting the compiler in Go to leverage the speed of native execution.
Released on 8 July 2026, TypeScript 7.0 marked the completion of this transition. The results were significant, with Microsoft reporting build speedups typically between 8 and 12 times faster than the previous version. For instance, type-checking the Visual Studio Code codebase dropped from 125.7 seconds to just 10.6 seconds. While this native shift offers immense performance, it initially lacked a stable programmatic API, requiring some tooling—like specific features in Angular or Vue—to rely on the older JavaScript-based compiler temporarily.
This evolution reflects a broader trend in developer tooling. Beyond the official compiler, the ecosystem continues to innovate, with tools like Vercel’s 2026 release of scriptc, which compiles programs into self-contained native binaries. From its origins as a way to make JavaScript less error-prone to its current status as a high-performance native toolchain, TypeScript remains a central pillar for developers managing the complexity of modern web applications.
Opens the Intellect+ feed with this card first. Swipe up for the next one.
Sources
- Summary by Intellect · source: TypeScript
To cite this card, link to https://intellectplus.co.uk/app/technology-typescript.
How we source, check and correct cards: Editorial standards.
General information, not professional advice. Spotted an error? Flag the card or see corrections and complaints.
Intellect Plus is a visual educational discovery platform for exploring fascinating facts and ideas. Brain Food, Not Brain Rot. What is Intellect Plus?
Related
More in Computing and information technology · More in Technology · Latest · A–Z · All topics