Rewriting the TypeScript Compiler in Go
Anders Hejlsberg (tweet, video, Hacker News):
To meet those goals, we’ve begun work on a native port of the TypeScript compiler and tools. The native implementation will drastically improve editor startup, reduce most build times by 10x, and substantially reduce memory usage. By porting the current codebase, we expect to be able to preview a native implementation of
tsc
capable of command-line typechecking by mid-2025, with a feature-complete solution for project builds and a language service by the end of the year.You can build and run the Go code from our new working repo, which is offered under the same license as the existing TypeScript codebase.
[…]
Again using the Visual Studio Code codebase as a benchmark, the current time to load the entire project in the editor on a fast computer is about 9.6 seconds. This drops down to about 1.2 seconds with the native language service, an 8x improvement in project load time in editor scenarios.