HackerTube.dev

TypeScript is being ported to Go | interview with Anders Hejlsberg

Michigan TypeScript · 102.4K views · 2025-03-11 · 1:01:31

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

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.

On Hacker News

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.

Recommended by 2 HN people across 1 months · HN mentions 2025–2025

Topics

Search by tags

What people said

duckerude · 2025-03 · Recommendation

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 than a rewrite, and the old code uses plain functions and data structures without an OOP style. This suits Go well while a C# port would have required more restructuring.

Read the original HN comment ↗
yohannesk · 2025-03 · Recommendation

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 here on hn

Read the original HN comment ↗
jtbaker · 2025-08 · Reference

[VIDEO] Around the 13 minute mark, Anders goes into it. IIRC, the big things were the GC and them both supporting cyclic data structures.

Read the original HN comment ↗

Sources

Video by Michigan TypeScript, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources