A 10x faster TypeScript

Channel:Microsoft Developer · Length:13:44 · Published:2025-03-11 · Views:608525

Watch on YouTube

Summary

Anders Hejlsberg introduces the native port of the TypeScript compiler, written in Go, which promises roughly 10x faster tooling. He demos compiling VS Code and explains where the speedup comes from.

Why HN recommends it

Commenters cite it as the authoritative source for why the port is faster and why Go was chosen.

The relationship of their performance gains to functional programming ideas is explained beginning at 8:14 — HN, 2025

Web development · Software performance & optimization · Compilers, interpreters & program analysis

Subtitles (excerpt)

Hi everyone uh this is Anders Hejlsberg lead architect of the typescript project and Technical fellow at Microsoft um today I'm here to talk about project Corsa which is our effort to Port uh the typescript compiler and tool set to native code now since uh the inception of typescript more than a decade ago uh typescripts been written in itself and that's brought a lot of benefits but it's also consistently brought some challenges in particular around performance and skill availability uh you know the JavaScript runtime platform is really optimized for UI and browser usage and not so much for compute intensive workloads like compilers and system level tools um when we talk to customers one of the most uh commonly reported issues that they face is out of- memory situations you know where their projects are just getting bigger and bigger um and we've likely reached the limit of what we can squeeze out of uh out of JavaScript you know JavaScript comes with a bunch of overhead that you know is is troublesome at times like you know it's a jit compiled language so there's always startup cost to jit compile your code uh the very flexible object model with expando properties and so forth but that adds a lot of

On Hacker News

After hearing the explanation about why he picked Go for the Typescript compiler I can only be more of a fan of Anders Hejlsber. He said that Go was chosen due to its suitability for the workload, offering low-level control, optimized native code, automatic memory management, and concurrency. And this coming from the same guy that created C#, Typescript, Delphi & Turbo Pascal shows how a real eng… — yomismoaqui, 2025-08
The key: > immutable data structures --> "we are fully concurrent, because these are what I often call embarrassingly parallelizable problems" The relationship of their performance gains to functional programming ideas is explained beginning at 8:14 [VIDEO] — odyssey7, 2025-03
Here's the FAQs, where they explain the decision to go with Go and not, say, rust. [LINK] Hejlsberg also says in this video, about 3.3x performance is from going native and the other 2-3x is by using multithreading. [VIDEO] — kristianp, 2025-05
In the embedded video they show some of the code side by side and it is just a ton of if statements. [VIDEO] — dcre, 2025-03
Not sure if it does but the video linked in the post might answer your question? I think he is compiling vscode which includes Monaco editor which is where they are getting 10x faster stat. (I might be wrong here.) [0] [0] [VIDEO] — dataviz1000, 2025-03

Related videos