A 10x faster TypeScript
Channel:Microsoft Developer · Length:13:44 · Published:2025-03-11 · Views:608525
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
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05
- Preventing the Collapse of Civilization / Jonathan Blow (Thekla, Inc) · DevGAMM · 1:02:41
- "Performance Matters" by Emery Berger · Strange Loop Conference · 42:15
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- The Thirty Million Line Problem · Molly Rocket · 1:48:55
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33
- Erlang Factory 2014 - That's 'Billion' with a 'B': Scaling to the Next Level at WhatsApp · Erlang Solutions · 49:15
- JavaScript: The Good Parts · Google TechTalks · 1:03:47
- How Crash Bandicoot Hacked The Original Playstation | War Stories | Ars Technica · Ars Technica · 31:37
- "How NOT to Measure Latency" by Gil Tene · Strange Loop Conference · 42:59