Paul Krill
Editor at Large

Go-based TypeScript 7.0 reaches release candidate stage

news
Jul 1, 20262 mins

First version of TypeScript built with Go is 10x faster than JavaScript-based TypeScript 6, according to Microsoft.

A red line on a curvy road: speed trail, go fast.
Credit: Taiga / Shutterstock

Microsoft has announced a release candidate (RC) of TypeScript 7.0. A port of JavaScript-based TypeScript that is based on the Go language, TypeScript 7.0 is often about 10 times faster than TypeScript 6.0, Microsoft said, thanks to native code speed and shared memory parallelism.

Developers can get the new compiler by installing it from the typescript package on npm:

npm install -D typescript@rc

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.

With TypeScript 7.0 RC now available, Microsoft plans to release TypeScript 7.0 within the next month. The company said it will focus on release coordination and logistics, reported regressions, and future API capabilities in TypeScript 7.1.

Because a stable programmatic API will not be available until TypeScript 7.1, Microsoft has made it a priority to ensure TypeScript 7.0 can be run side-by-side with TypeScript 6.0 without conflicts over which tsc is which. A compatibility package, @typescript/typescript6, provides an executable named tsc6, allowing TypeScript 7.0 to be installed side-by-side without tsc naming conflicts. The @typescript/typescript6 package also re-exports the TypeScript 6.0 API, so that tsc can be used for TypeScript 7.0 while other tools can continue to rely on TypeScript 6.0.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author