TypeScript is being ported to Go | interview with Anders Hejlsberg
Channel:Michigan TypeScript · Length:1:01:31 · Published:2025-03-11 · Views:102484
Summary
An interview with Anders Hejlsberg, lead architect of TypeScript, about porting the TypeScript compiler to Go. He covers the 10x type-checking speedup, lower memory use, and why Go was chosen.
Why HN recommends it
HN points to it as the authoritative answer to why the team picked Go rather than C# or Rust, citing timestamps on cyclic data structures and garbage collection.
Check the longer interview here — HN, 2025
C, C++, Rust, Go & systems languages · Compilers, interpreters & program analysis · Tech pioneers & interviews
Subtitles (excerpt)
the JavaScript was never really intended to be the the language for compute intensive system level workloads right for sure whereas go was precisely intended to be that we're going for full compatibility here we really want this to be a plug andplay replacement for the old compiler but I think far more interesting is thinking about the implications of having a type Checker that is 10 times faster when you couple that with all of the stuff that's happening in Ai and agentic programming and and whatever and like what could we do with information that we can produce 10 times faster like contextual information for the llm about like what are these types actually resolved to what is this symbol which symbol where was this actually declared as because all the llms look at right now is just the spelling of it you know it doesn't really know you know and so we could we could IM imbue it with a lot more higher Fidelity information you know in in a real time manner right the typescript type Checker one of the most fundamental software development tools in the world just got 10 times faster with today's announcement that the team has been porting the codebase to go for months when Anders halsberg
On Hacker News
Anders Hejlsberg explains here: [VIDEO] . TL;DW: - C# is bytecode-first, Go targets native code. While C# does have AOT capabilities nowadays this is not as mature as Go's and not all platforms support it. Go also has somewhat better control over data layout. They wanted to get as low-level as possible while still having garbage collection. - This is meant to be something of a 1:1 port rather tha… — duckerude, 2025-03
If you are wondering why not Rust instead of Go, they outline why Rust was not chosen. This is a port not a reimplementation. Many of the data structures can not easily be ported to Rust, such as Nodes with cyclic dependencies. Check the longer interview here: [VIDEO] Also, I think the discussion on esbuild's choice of language applies here as well as it has a large similarity. You can find it he… — yohannesk, 2025-03
[VIDEO] Around the 13 minute mark, Anders goes into it. IIRC, the big things were the GC and them both supporting cyclic data structures. — jtbaker, 2025-08
Yeah. They said that there were lots of nested structures with cycles and so on so it would be hard to do with Rust. Link below. [VIDEO] — osigurdson, 2025-06
While I'm most familiar with C#, and haven't used Ruby professionally for almost a decade now, I think we'd be better off looking at typescript, for at least 3 reasons, probably more. 1. Flowsensitivity: It's a sure thing that in a dynamic language people use coding conventions that fit naturally to the runtime-checked nature of those types. That makes flow-sensitive typing really important. 2. D… — emn13, 2025-05
Related videos
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Jim Simons (full length interview) - Numberphile · Numberphile2 · 1:00:43
- Steve Jobs Stanford Commencement Speech 2005 · JoshuaG · 14:34
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05
- Alan Kay - Normal Considered Harmful · powerfuloutlet · 1:07:26
- Growing a Language, by Guy Steele · Bill Pugh · 53:31
- A Philosophy of Software Design | John Ousterhout | Talks at Google · Talks at Google · 1:01:40
- "Uncle" Bob Martin - "The Future of Programming" · Paul Stringer's Mobile Tech · 1:18:21
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33
- VCF East: Ken Thompson interviewed by Brian Kernighan · Vintage Computer Federation · 1:03:51
- Hamming, "You and Your Research" (June 6, 1995) · securitylectures · 44:02
- RustConf 2018 - Closing Keynote - Using Rust For Game Development by Catherine West · Rust Programming Language · 42:29
- Tech Talk: Linus Torvalds on git · Google · 1:10:15
- Alan Kay's tribute to Ted Nelson at "Intertwingled" Festival · TheTedNelson · 17:33