VOOZH about

URL: https://thenewstack.io/go-power-microsofts-bold-bet-on-faster-typescript-tools/

⇱ Go Power: Microsoft's Bold Bet on Faster TypeScript Tools - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-03-12 13:00:48
Go Power: Microsoft's Bold Bet on Faster TypeScript Tools
Go / Programming Languages / TypeScript

Go Power: Microsoft’s Bold Bet on Faster TypeScript Tools

Microsoft rewrites the TypeScript compiler in Go, promising dramatically faster build times, enhanced developer experience, and new AI-powered capabilities for large codebases.
Mar 12th, 2025 1:00pm by Darryl K. Taft and Loraine Lawson
👁 Featued image for: Go Power: Microsoft’s Bold Bet on Faster TypeScript Tools
Image by Benjamin Wiens from Pixabay.

Microsoft has launched an initiative to port the TypeScript compiler and tools to a native Golang implementation, codenamed “Corsa.”

With the native implementation, Microsoft promises dramatic performance improvements of up to 10x that will both enhance developer experience and enable new AI-powered capabilities.

This effort also addresses scaling challenges in large codebases where TypeScript users currently experience long load times, slow type checking, and memory constraints, reads a blog post by Anders Hejlsberg, a Microsoft technical fellow and co-creator of TypeScript.

Microsoft was able to achieve the performance and meet the scaling challenges by porting the TypeScript compiler to the Go language.

Performance

Key performance improvements include reduced build times by approximately 10x, an 8x improvement in project load time, roughly half the memory usage of the current implementation (with further optimizations expected), and language services improvements including significant speedups for completions, quick info, go to definition, and find all references.

“The native implementation will drastically improve editor startup, reduce most build times by 10x, and substantially reduce memory usage,” Hejlsberg wrote.

The new native version showed impressive performance metrics across various popular codebases:

  • VS Code (1,505,000 LOC): 77.8s → 7.5s (10.4x faster)
  • Playwright (356,000 LOC): 11.1s → 1.1s (10.1x faster)
  • TypeORM (270,000 LOC): 17.5s → 1.3s (13.5x faster)
  • date-fns (104,000 LOC): 6.5s → 0.7s (9.5x faster)
  • tRPC (18,000 LOC): 5.5s → 0.6s (9.1x faster)
  • rxjs (2,100 LOC): 1.1s → 0.1s (11.0x faster)

Indeed, “A 10x performance improvement represents a massive leap in the TypeScript and JavaScript development experience…,” Hejlsberg wrote.

In a video, Hejlsberg noted that JavaScript (which TypeScript is based) is mainly used “for UI and browser usage and not so much for compute-intensive workloads like compilers and system-level tools.” He added that Microsoft has likely reached the limit “of what we can squeeze out of JavaScript.”

Port or Rewrite

Hejlsberg said that his team knew that they wanted to do a port and not a rewrite of the TypeScript compiler to Go.

In an FAQ on the TypeScript effort, Ryan Cavanaugh, development lead for the TypeScript team, wrote:

“Broadly speaking, there are two possible strategies you can take when changing languages:

  • In a ‘rewrite’ you start with nothing, and implement a new system that tries to solve the same problem as the original one, disregarding the implementation strategies of the original codebase
  • In a ‘port’ you take the existing codebase and convert it to the new language while trying to keep as much the same as possible

Porting is faster to execute, but requires that the new language be at least somewhat architecturally compatible with the original language…”

Why Go?

Hejlsberg said Microsoft tried prototyping in all the usual suspect target languages (C#, C++, Rust, etc.) but found that Go was the most suitable language for the particular workload they were trying to do.

“Very interesting! JS developers are unfortunately used to slow tools, so a faster compiler that allows for improved editor startup time is very welcome,” David Mytton, CEO of Arcjet, told The New Stack. “Moving to a native compiler makes a lot of sense, although Go is an unusual choice for this type of project. When I saw the announcement I assumed this would be in Rust like most of the other JS tool rewrites: RolldownTurbo (which moved from Go to Rust)Deno… I wonder what’s behind that decision.”

Responding to that question, Cavanaugh, in the FAQ, wrote that Go did the best when considering multiple criteria that are particular to this situation.

“By far the most important aspect is that we need to keep the new codebase as compatible as possible, both in terms of semantics and in terms of code structure,” he wrote. “We expect to maintain both codebases for quite some time going forward. Languages that allow for a structurally similar codebase offer a significant boon for anyone making code changes because we can easily port changes between the two codebases…”

The Go-based implementation is available on GitHub (typescript-go repository) and is currently capable of loading many popular TypeScript projects, including the TypeScript compiler itself.

Versions

Microsoft expects a preview of native tsc capable of command-line typechecking by mid-2025. tsc is the TypeScript compiler. A feature-complete implementation for project builds and language service is expected by the end of 2025.

The most recent TypeScript release was TypeScript 5.8, with TypeScript 5.9 coming soon. The JS-based codebase will continue development into the 6.x series, and TypeScript 6.0 will introduce some deprecations and breaking changes to align with the upcoming native codebase, Hejlsberg said.

“When the native codebase has reached sufficient parity with the current TypeScript, we’ll be releasing it as TypeScript 7.0,” he said.

And, “For the sake of clarity, we’ll refer to them simply as TypeScript 6 (JS) and TypeScript 7 (native), since this will be the nomenclature for the foreseeable future,” Hejlsberg wrote. “You may also see us refer to ‘Strada’ (the original TypeScript codename) and ‘Corsa’ (the codename for this effort) in internal discussions or code comments.”

Meanwhile, benefits beyond speed include support for instant, comprehensive error listings across entire projects and more advanced refactoring capabilities. It also enables deeper code insights previously too expensive to compute and sets the foundation for next-generation AI tools that enhance development. Microsoft also is moving to Language Server Protocol (LSP) for better alignment with other languages.

“The core value proposition of TypeScript is an excellent developer experience,” Hejlsberg wrote. “As your codebase grows, so does the value of TypeScript itself, but in many cases TypeScript has not been able to scale up to the very largest codebases.”

TRENDING STORIES
Darryl K. Taft covers DevOps, software development tools and developer-related issues from his office in the Baltimore area. He has more than 25 years of experience in the business and is always looking for the next scoop. He has worked...
Read more from Darryl K. Taft
Loraine Lawson is a veteran technology reporter who has covered technology issues from data integration to security for 25 years. Before joining The New Stack, she served as the editor of the banking technology site Bank Automation News. She has...
Read more from Loraine Lawson
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Deno.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.