TypeScript Goes Light, Moves To GitHub
Written by Alex Denham   
Thursday, 24 July 2014

The TypeScript team has reworked the compiler core of TypeScript to be lighter and faster and has moved the project to GitHub.

After experimenting with a new, lighter-weight compiler core, and having seen very positive early results, the TypeScript team plans on using the core in the new TypeScript compiler and language service.

This will happen in stages, starting with the creation of a complete standalone compiler based on this new core architecture. The new compiler follows the same TypeScript 1.0 language spec, has the same compiler flags and compiler functionality, and outputs nearly identical code to the currently shipping TypeScript compiler. When the team is happy the compiler is complete, it should be drop-in compatible with the existing one.

Writing about the new compiler on the TypeScript blog, Jonathan Turner says:

“the goal here isn't new compiler features, but rather a cleaner compiler architecture that has better performance and allows us to add new features with greater ease in releases to come.”

The performance improvements in the new compiler are impressive; at its current level of completeness, the new compiler is able to compile existing real-world TypeScript code five times faster than the currently shipping compiler.

As yet the compiler is incomplete in feature terms; the parser needs to have Strict mode added, along with incremental parsing for the language service. Type checking is nearing completion, but still needs work on its error coverage, while the compiler options are missing support for --propagateEnumConstants, --watch, --locale, --logFile and --version.

The developers also need to adapt the language service to work with new compiler, and to add comment preservation to the emitter.

Turner says “As we reach parity with our existing compiler, we’re looking forward to moving on to ECMAScript 6 features and exploring the top user requests.”

Alongside the new compiler, and in response to feedback from its community, the team is moving to entire TypeScript project to Github.

 

typescript1

More Information

TypeScript website

TypeScript on Github

Related Articles

TypeScript 1.0 Released

TypeScript Fully Accepted into Visual Studio

TypeScript - Microsoft's Replacement For JavaScript

Getting Started With TypeScript

 


To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

 

Banner


pg_parquet - Postgres To Parquet Interoperability
28/11/2024

pg_parquet is a new extension by Crunchy Data that allows a PostgreSQL instance to work with Parquet files. With pg_duckdb, pg_analytics and pg_mooncake all of which can access Parquet files, is  [ ... ]



Discover PostgreSQL How-Tos
16/12/2024

A veritable treasure trove of assorted how-to recipes for PostgreSQL, stored as a Github repository, has been started by Nikolay Samokhvalov, well known in the PostgreSQL world.


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info