duckerudeon Hacker News • Recommends
On “A 10x Faster TypeScript”
#typescript#go#andershejlsberg
22K subscribers • 12 videos on Hallway
Intermediate. Assumes working knowledge.
102K views1 year ago3 recommendations
Programming languagesSystems programmingTypeScriptGoCompilers and interpreters
Anders Hejlsberg discusses the decision to port the TypeScript compiler to Go, explaining the performance benefits and language trade-offs involved.
You're about to see concurrent 10x performance on your type checking with half the memory and much faster editor startup. The TypeScript team has been porting the project to Go for the past 8 months. devblogs.microsoft.com/typescript/typescript-native-port/ In this interview with Anders Hejlsberg, co-creator and lead architect of TypeScript, we tried to ask questions that would be valuable to library authors, power users, and compiler contributors. If you have any questions, you should join the AMA on the TypeScript Community Discord 10 AM PDT | 5 PM UTC on March 13th. in this episode... Introducing Anders codename Strada and Corsa whose idea was Corsa? regarding other attempts (e.g. stc by DongYoon Kang) discussions within the team about performance and scalability it started in August 2024 "we realized, we can get to 10x with this!" what was the general feeling on the team? unprecedented move to "eject" from being self-hosted there may always be some parts written JavaScript why not Rust? rational for why it has to be a garbage collected language re: Rust's constraints: borrow checker, cyclic data structures adding it all up: Go makes a lot of sense JavaScript has a lot more in common with Go than Rust why not C#? the current codebase is written in a functional style Strada's extensive use of flag packing with TypeScript Enums typescript-go's memory consumption is HALF (!!) (while also being 10 times faster) has spending so much time writing Go had any influce on TypeScript? JavaScript is a very strange language to write a compiler in in the first place ensuring a smooth transition (in absence of a language spec) the AST will not change library authors will not have to maintain two versions of their types all 20,000 conformance tests already run without crashing what do you foresee being the toughest challenges ahead? challenge: deterministic ordering of type union members in a multi-core environment largest challenge is providing a modern API to the existing codebase what about the cross-language connection points for the API? WebAssembly? Rust bindings? strengthening the Language Server Protocol how long will the existing codebase be maintained after typescript-go is GA? typescript-go is expected to be ready to use by the end of 2025, if not much sooner will the Go and TypeScript codebases be merged, or stay separate? what will happen to existing PRs? will type-aware tooling also get a 10x speed up? how hard was it to add concurrency to the type checker? the current codebase make heavy use of immutability and structural sharing why shared memory concurrency is so important to this codebase (something Go is excellent at) adding concurrency in typescript-go was like 10 lines of code (!!!) bWhat people say. Recommended for its deep dive into why the TypeScript team chose Go over Rust or C# for their compiler port.
duckerudeon Hacker News • Recommends
On “A 10x Faster TypeScript”
yohanneskon Hacker News • Recommends
On “A 10x Faster TypeScript”
u/JeanMechein r/typescript • Recommends
u/BrunnerLivioin r/typescript • Mentions
On “A 10x Faster TypeScript”
u/urzopin r/dotnet • Mentions
On “The TypeScript team porting TypeScript to Go”
u/RyanCavanaughin r/typescript • Mentions
On “A 10x Faster TypeScript”
u/JeanMechein r/typescript • Mentions
On “A 10x Faster TypeScript”
u/rpkarmain r/ProgrammingLanguages • Mentions
On “TypeScript compiler is being ported to Go”
fixprixon Hacker News • Mentions
On “A 10x Faster TypeScript”
bokwoonon Hacker News • Mentions
On “A 10x Faster TypeScript”
xanthon Hacker News • Mentions
On “A 10x Faster TypeScript”
emn13on Hacker News • Mentions
On “Past, present, and future of Sorbet type syntax”
homebreweron Hacker News • Mentions
On “Type-constrained code generation with language models”
osigurdsonon Hacker News • Mentions
On “Why Go Rocks for Building a Lua Interpreter”
jtbakeron Hacker News • Mentions
On “Rv, a new kind of Ruby management tool”
u/lord_braleighin r/typescript • Mentions
On “A 10x Faster TypeScript”