# GopherCon 2025: Porting the TypeScript Compiler to Go for a 10x Speedup V2 - Jake Bailey

> For agents: start with the [agent guide](https://ratstack.sh/llms.txt). Every page is Markdown by default; add `Accept: text/html` for HTML.

[Gopher Academy](https://www.youtube.com/@GopherAcademy) · Published 2026-01-06 · 39:17 · B tier · TypeScript

[Watch on YouTube](https://www.youtube.com/watch?v=PZm_YbE3fcA) · [All RatTube videos](/tube)

## Summary

Jake Bailey explains why the native TypeScript compiler needed to be a port rather than a fresh rewrite. Preserving existing behavior constrained the choice of implementation language and the way the team moved the code.

The technical examples cover pooled node allocation, concurrent access to cached node flags, and string-related performance problems. Go's race detector and profiling tools help reveal assumptions that were harmless in the single-threaded JavaScript compiler.

## Section notes

- [7:24](https://www.youtube.com/watch?v=PZm_YbE3fcA\&t=444s): Without a complete specification, the team preserves behavior by porting the existing code.
- [21:35](https://www.youtube.com/watch?v=PZm_YbE3fcA\&t=1295s): A pool allocates nodes from slices to reduce allocations.
- [28:36](https://www.youtube.com/watch?v=PZm_YbE3fcA\&t=1716s): The race detector finds concurrent mutation of cached node flags.
- [35:28](https://www.youtube.com/watch?v=PZm_YbE3fcA\&t=2128s): Profiling reveals string and cache performance problems in the Go port.

## Key concepts

No matching wiki page yet.

## Our take

Jake Bailey on porting the 150,000-line compiler and its 90,000 tests to Go, the problems they hit and the lessons they learned. Watch it for the engineering story behind the speedup.

## Related videos

- [TypeScript 7 Is Here (And It's 10× Faster)](/tube/typescript-7-ten-times-faster)
- [A 10x Faster TypeScript with Anders Hejlsberg | BRK116](/tube/ten-times-faster-typescript-anders-hejlsberg)
- [Generics: The most intimidating TypeScript feature](/tube/generics-the-most-intimidating-typescript-feature)

Summary based on the transcript. Written 2026-11-15.
