lunes, 6 de julio de 2026

TypeScript 70 Rewritten in Go Achieves Milestone

Microsoft has reached a significant milestone in the development of TypeScript 7.0, releasing its first release candidate built with a compiler entirely rewritten in Go. This transformation, initially announced by TypeScript's creator Anders Hejlsberg over two years ago, represents a fundamental shift in the language's underlying architecture and promises substantial performance improvements for developers worldwide.

TypeScript 7.0 Rewritten in Go Achieves Milestone

The most compelling advantage of this rewrite is speed. According to Microsoft, TypeScript 7.0 delivers performance that is approximately 10 times faster than its predecessor, TypeScript 6.0. This remarkable improvement stems from two key technical enhancements: native code execution speed and shared memory parallelism. The Go-based compiler leverages these capabilities to process TypeScript code more efficiently than ever before.

A crucial innovation in TypeScript 7.0 is its approach to parallel processing. Unlike TypeScript 6.0, which handled compilation tasks sequentially, the new version performs multiple steps simultaneously, including parsing, type checking, and code emitting. Microsoft has engineered the compiler so that certain operations, particularly parsing and emitting, can be executed independently across different files. This architectural decision enables the parallelisation to scale effectively with larger codebases whilst maintaining relatively low overhead, making it especially beneficial for enterprise-level projects with extensive TypeScript implementations.

However, Microsoft acknowledges that not every aspect of the TypeScript build process lends itself easily to parallelisation. Some compilation steps still require sequential execution due to their interdependent nature. Despite these limitations, the overall performance gains represent a substantial leap forward for the TypeScript ecosystem.

Developers eager to experience these improvements need not wait long. Microsoft plans to release TypeScript 7.0 officially within the next month. In the meantime, adventurous developers can already experiment with the release candidate by installing it from the typescript package on npm using the command: npm install -D typescript@rc. This early access allows teams to begin testing compatibility and measuring performance improvements in their own projects ahead of the general release.

Fuente Original: https://developers.slashdot.org/story/26/07/05/2335217/go-based-typescript-70-finally-reaches-release-candidate-stage?utm_source=rss1.0mainlinkanon&utm_medium=feed

Artículos relacionados de LaRebelión:

Artículo generado mediante LaRebelionBOT

No hay comentarios:

Publicar un comentario