884: Typescript Just Got 10x Faster
Wes and Scott talk with Anders Hejlsberg and Daniel Rosenwasser about TypeScript’s leap to native code. They discuss the challenges, trade-offs, and the decision to port TypeScript to Go, unlocking faster compilation, better concurrency, and new possibilities for AI-assisted development.
Show Notes 00:00 Welcome to Syntax!
00:38 TypeScript compiler goes native
05:24 Challenges in rebuilding TypeScript
08:49 How long has this been in development?
10:32 What does porting TypeScript to native entail?
16:36 Why choose Go?
26:48 The porting process
35:02 Brought to you by Sentry.io
35:27 Type checking and parallel compilation
42:36 Fixing TypeScript’s performance bottlenecks
49:09 Large TypeScript codebases
54:11 What’s the timeline for the new compiler?
58:39 Optimization and AI
01:00:32 New features?
01:04:15 Sick Picks + Shameless Plugs
Sick Picks Daniel: pprof-it
Anders: USB Hand Warmers
Shameless Plugs TypeScript
Hit us up on Socials! Syntax: X Instagram Tiktok LinkedIn Threads
Wes: X Instagram Tiktok LinkedIn Threads
Scott: X Instagram Tiktok LinkedIn Threads
Randy: X Instagram YouTube Threads
The Type Annotations proposal
Daniel Rosenwasser and Ryan Cavanaugh from the TypeScript team at Microsoft join Nick and Boneskull to catch us up on the latest happening with the TypeScript project, including what’s exciting in the new 4.7 beta release. Then, we dive deep into the new, TC-39 stage 1 Type Annotations proposal, what it is, and what it means for the future of a not really typed JavaScript!
Join the discussion
Changelog++ members save 5 minutes on this episode because they made the ads disappear. Join today!
Sponsors:
Raygun – Never miss another mission-critical issue again — Raygun Alerting is now available for Crash Reporting and Real User Monitoring, to make sure you are quickly notified of the errors, crashes, and front-end performance issues that matter most to you and your business. Set thresholds for your alert based on an increase in error count, a spike in load time, or new issues introduced in the latest deployment. Start your free 14-day trial at Raygun.com
Square – Develop on the platform that sellers trust. There is a massive opportunity for developers to support Square sellers by building apps for today’s business needs. Learn more at changelog.com/square to dive into the docs, APIs, SDKs and to create your Square Developer account — tell them Changelog sent you.
Sourcegraph – Move fast, even in big codebases. Sourcegraph is universal code search for every developer and team. Easily search across all the code that matters to you and your organization: find example code, explore and read code, debug issues, and more. Head to info.sourcegraph.com/changelog and click the button “Try Sourcegraph now” to get started.
Featuring:
Daniel Rosenwasser – GitHub, X
Ryan Cavanaugh – GitHub, X
Nick Nisi – Website, GitHub, Mastodon, X
Christopher Hiller – Website, GitHub, Mastodon, X
Show Notes:
TypeScript 4.7 beta announcement
Type Annotations proposal (Stage 1)
Type checking JavaScript files
Understanding the TypeScript compiler
Something missing or broken? PRs welcome!