Fireship · @fireship
Microsoft goes nuclear on TypeScript codebase…
Uploaded March 12, 2025 · Length 4:09
Summary
Microsoft rewrites TypeScript compiler in Go for better performance and portability.
- typescript go compiler rewrite performance portability
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
yesterday Microsoft dropped an
- 0:01
unexpected bombshell on programmers when
- 0:03
it announced that the Beloved typescript
- 0:05
programming language is being completely
- 0:07
reprogrammed a typescript is one of the
- 0:09
most important projects in modern web
- 0:10
development but it has one fatal flaw
- 0:12
the typescript language itself is
- 0:14
written in typescript and typescript is
- 0:16
just not optimized for building things
- 0:18
like typescript but you won't believe
- 0:19
which language Anders hilburg and
- 0:21
Microsoft chose for the rewrite it's not
- 0:23
the battle tested C++ it's not
- 0:25
Microsoft's Golden Boy C it's not the
- 0:27
highly memeable rust it's a language
- 0:29
know expected which I will reveal in
- 0:31
dramatic fashion at the end of this
- 0:33
video to optimize viewer retention for
- 0:35
the algorithm just kidding I ain't F to
- 0:37
play you like that they used go a
- 0:39
language developed by their arch nemesis
- 0:40
Google a language with a simplistic type
- 0:42
system and limited functional
- 0:44
capabilities a language that many people
- 0:46
on the internet love to hate nowadays
- 0:48
all the CP and rust Fanboys are feeling
- 0:50
the effects of this Panic function right
- 0:51
now and in today's video we'll find out
- 0:53
why this is a huge deal and answer the
- 0:55
question of why did Microsoft go with go
- 0:57
it is March 12th 2025 and your watching
- 1:00
the code report another day another bat
- 1:02
signal that must be answered but this
- 1:04
trend of waiting for the fireship video
- 1:05
on every Tech announcement has gotten
- 1:07
out of control the tech companies like
- 1:08
Microsoft spend millions of dollars
- 1:10
making these videos and you guys are
- 1:11
screwing everything up causing the
- 1:13
entire global economy to collapse I'm
- 1:15
Michael Jordan stop it get some help
- 1:18
that being said Anders hilburg is one of
- 1:21
the true 10x developer unicorns out
- 1:22
there he's the creator of Turbo Pascal C
- 1:25
and typescript and you really should
- 1:27
watch his video typescript is not your
- 1:28
typical programming language it's a
- 1:30
super set of JavaScript and doesn't
- 1:32
actually have its own runtime TS code
- 1:34
gets compiled or transpiled to JS code
- 1:36
which then runs somewhere like node.js
- 1:38
Dino bun or the browser the problem is
- 1:41
that because the typescript compiler is
- 1:42
written in typescript there's an
- 1:44
inherent lack of support for low-level
- 1:46
optimization like direct memory access
- 1:48
native multi-threading and so on the
- 1:50
only way to truly fix the typescript
- 1:51
compiler was to not write it in
- 1:53
typescript by switching to go the
- 1:55
compiler is already 10 times faster like
- 1:57
they cut the vs code compile time from
- 1:59
70 seconds to 7 seconds and they got


