AI summary by TwinMind

TypeScript just changed forever

Theo - t3․gg

20m 2s

Project Announcement & Performance Gains

  • Microsoft announced native port of TypeScript type checker to Go
  • Not just compiler (TS to JS conversion) but full type checker implementation
  • Performance improvements: ~10x faster across major codebases
    • VS Code: 77 seconds → 7.5 seconds compilation
    • Playwright: 11 seconds → 1.1 seconds
    • tRPC client: 9.1x faster performance
  • Memory usage 50% less than JS version despite redundant parallel checking

Technical Implementation Details

  • Core approach: Direct port from TypeScript to Go, not complete rewrite
  • Used automated script to convert TypeScript code to Go syntax
  • Maintained nearly identical logic structure between versions
  • Example: getTypeOfSymbol function looks almost identical in both languages
  • 50,000+ line TypeScript checker.ts file (3MB) successfully ported
  • Feature incomplete but runs on real codebases currently

Why Go Over Other Languages

  • Syntax similarity to JavaScript enables easier porting
  • Flexible structures/type system matches JS flexibility
  • Built-in concurrency/parallelism as language primitives
  • Go routines can share memory (unlike JS web workers using JSON serialization)
  • >50% performance gain comes from parallel type checking capability
  • Garbage collection suitable for compiler workloads (vs manual memory management)

Why Not Rust Decision

  • Explored Rust extensively but faced unacceptable trade-offs
  • Would require complete rewrite taking years vs 1-year port timeline
  • Rust's concurrency layer more complex to implement
  • Unsafe code requirements for flexible JS-like structures
  • Go's Windows support improving (Microsoft will address gaps)
  • Quote from Andrew Hejlsberg: "JavaScript runtime optimized for UI/browser, not compute-intensive workloads like compilers"

Editor Integration & LSP Migration

  • Moving to traditional Language Server Protocol (LSP) implementation
  • TypeScript predates LSP, was built into VS Code specially
  • New approach treats TypeScript like other languages
  • Benefits available across all editors (Neovim, etc.)
  • Already working in VS Code with debug options
  • IDE performance improvements beyond just build times

Release Timeline & Roadmap

  • Mid-2025: Full preview of native TSC command-line implementation
  • End of 2025: Complete project build and language service for VS Code
  • TypeScript 6.0: Deprecation/breaking changes to align JS and Go versions
  • TypeScript 7.0: Official migration to Go by default
  • Currently missing JSX support (major limitation for React codebases)

Future of Dev Tools & AI Impact

  • Hypothesis: React/TypeScript are "last framework/language" due to AI training data
  • New APIs harder to adopt because AI lacks examples
  • Trend toward improving existing syntax vs creating new languages
  • Examples: React compiler, UV (Python), Mojo (Python-like to C)
  • 10x faster type checking enables AI tools to check types during code generation
  • Sub-3 second vs 30+ second wait times make AI integration practical

TwinMind

Get summaries like this for your own meetings

TwinMind takes notes in the background during meetings, lectures, and calls, then writes the summary for you.

Free plan to get started

No bot joins your calls

Phone, desktop & Chrome apps

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome