
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...
For further actions, you may consider blocking this person and/or reporting abuse
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?
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.
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.
They want to release it properly by the end of 2025, maybe.
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.)
I thought the purpose of TypeScript was to give us a better JavaScript. Mostly for browser related applications.
How will Go help in browsers?
TypeScript will compile code into JavaScript faster.
Typescript compiler doesn't run in the browser, it runs on your machine, compiling typescript code into JavaScript, which then runs in the browser.
I know that. So now we will put the transpiled go code in the browser?
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.
Ah, so that's why TypeScript is written everywhere
Exactly
Good explanation
Thanks!
By the way, you can download typescript like this:
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
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.
Great content, keep it up :D
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.