SUMMARYMicrosoft released the first release candidate of TypeScript 7.0, a major compiler rewrite in Go that was planned more than two years ago by creator Anders Hejlsberg. The company said the new version can run about 10 times faster than TypeScript 6.0 by using native code speed and shared-memory parallelism. TypeScript 7.0 is expected within the next month, and developers can test it now through the rc package on npm.
It was more than two years ago that TypeScript's creator Anders Hejlsberg announced plans to rewrite its compiler in Go. This week Microsoft announced its first Go-based release candidate for TypeScript 7.0, reports InfoWorld:
TypeScript 7.0 is often about 10 times faster than TypeScript 6.0, Microsoft said, thanks to native code speed and shared memory parallelism... Unlike TypeScript 6.0, TypeScript 7.0 performs many steps in parallel, including parsing, type checking, and emitting, Microsoft said. Some of these steps, such as parsing and emitting, can mostly be done independently across files. For that reason, parallelization automatically scales well with larger codebases with relatively little overhead. However, not every step in a TypeScript build is easily parallelizable, Microsoft said. Microsoft plans to release TypeScript 7.0 within the next month, the article points out, but developers can try the new compiler by installing it from the typescript package on npm: npm install -D typescript@rc