DEV Community

Cover image for TypeScript 7: 10x Speedup and the Go Language 🚨

TypeScript 7: 10x Speedup and the Go Language 🚨

Anthony Max on March 12, 2025

Hello everyone! Today, before our eyes, a truly significant event for web development in general is taking place. Just a couple of days ago, a proj...
Collapse
 
davidcassel profile image
David Cassel β€’

I have two questions about Microsoft's announcement.

  • Was anyone else surprised when they said "10x faster"? Usually when you say a programming language is fast, you mean its code executes quickly. But Microsoft's announcement says its build times will be 10x faster. Was it just me, or is that an odd way to express the speed of the language?

  • That's my other question. The announcement says TypeScript's native implementation "will drastically improve editor startup..." The first line in the announcement describes them as "next steps we're taking" and the conclusion promises "in the coming months we’ll be sharing more about this exciting effort." (At one point it even talks about what we'll see in TypeScript 7 "upon release.") So.... This isn't here yet, right? This is something they're still working on?

Collapse
 
maxart2501 profile image
Massimo Artizzu β€’ β€’ Edited

Usually when you say a programming language is fast, you mean its code executes quickly.

This case doesn't apply to TypeScript, as it doesn't provide an execution environment. The goal of TypeScript as an executable is to compile code to JavaScript.

So, with a 10x increase in performance they probably mean just that. We can reasonably expect improvements in type resolution and inference, and probably also in the startup and execution time of the language server.

Collapse
 
anthonymax profile image
Anthony Max β€’

Most likely, as for the editors, this is not yet the case. They only announced a more or less working version, but it still needs to be finished.

As for the speed, most likely, the maximum of JavaScript implementation was approximately reached here, it was necessary to switch to something faster. It is clear that in regular C as one of the fastest, if not the fastest, you can't do this, because literally everything has to be rewritten from scratch, they took something in this style and similar to js, ​​as it seems to me.

Collapse
 
anthonymax profile image
Anthony Max β€’ β€’ Edited

They want to release it properly by the end of 2025, maybe.

Collapse
 
muncherelli profile image
James Munch β€’
  • No, It is just you. Since this is an enhancement to the TypeScript compiler, it makes total sense to express the speed of compiling by using build times. This is due to build time being a direct indicator of the amount of time it takes to compile your project. Since OP is talking about the TypeScript compiler, this makes sense and makes you look very noob.
  • Correct. "Upon release" generally means something will be available when it is released. Since we are currently on TypeScript v5.8.2, it makes sense to talk about something in the future as if it hasn't happened yet. This is due to the fact that it, in fact, has not happened yet since we are not currently in the future yet.
Collapse
 
davidcassel profile image
David Cassel β€’ β€’ Edited

Thanks for the clarification. I guess I was expecting Microsoft to say "a 10x faster TypeScript compiler" in their headline (and not "a 10x faster TypeScript"), since as you point out this is all about the compiler and not the language.

It does look like you can build and run the Go code now in the new working repo Microsoft links to in their announcement. (So not formally released, but still available now.)

Collapse
 
ofergal profile image
Ofer Gal β€’

I thought the purpose of TypeScript was to give us a better JavaScript. Mostly for browser related applications.
How will Go help in browsers?

Collapse
 
anthonymax profile image
Anthony Max β€’

TypeScript will compile code into JavaScript faster.

Collapse
 
brense profile image
Rense Bakker β€’

Typescript compiler doesn't run in the browser, it runs on your machine, compiling typescript code into JavaScript, which then runs in the browser.

Collapse
 
ofergal profile image
Ofer Gal β€’

I know that. So now we will put the transpiled go code in the browser?

Thread Thread
 
michelangelo17 profile image
Michelangelo Markus β€’

The compiler is what is changing from JavaScript to Go. Not the compiled code. That will still be JavaScript.

We're changing from an electric oven to a gas oven. We didn't stop baking bread. It just will be faster now.

Collapse
 
lee_rodgers_05 profile image
Lee Rodgers β€’

Ah, so that's why TypeScript is written everywhere

Collapse
 
anthonymax profile image
Anthony Max β€’

Exactly

Collapse
 
nadeem_zia_257af7e986ffc6 profile image
nadeem zia β€’

Good explanation

Collapse
 
anthonymax profile image
Anthony Max β€’

Thanks!

Collapse
 
anthonymax profile image
Anthony Max β€’ β€’ Edited

By the way, you can download typescript like this:

git clone --recurse-submodules https://github.com/microsoft/typescript-go.git
Enter fullscreen mode Exit fullscreen mode
Collapse
 
hexa_1 profile image
Veilgen Security β€’

Moving to Go is definitely an interesting move! But don’t you think Rust could have been a strong contender as well? Especially with its high performance in memory management and handling large-scale projects. πŸ€”
Either way, I’m really excited to see how developers adapt to these changes, especially in Next.js and other large projects

Collapse
 
mainak55512 profile image
Mainak Bhattacharjee β€’

This is a perfect case where Rust is not the ideal fit for the job. They are 'porting' the compiler not 'rewriting'. Go shares very similar syntax as typescript and it is also very performant so it would be easier for them to port the code base. Rust syntax and programming style heavily defers from that of typescript's. If the compiler was to rewritten, then Rust would be the perfect choice.

Collapse
 
alt_exist profile image
Alternate Existance β€’

Great content, keep it up :D

Collapse
 
roaim_haider_61b45dc2423d profile image
Roaim Haider β€’

TypeScript 7 brings a 10x speed boost with smarter type-checking and enhanced performance. Inspired by the Go language, it streamlines dev workflows. Whether coding a Dreisatz Rechner or scaling apps, TS7’s optimizations make development faster and smoother.