Jump to content
nedo

TypeScript - New Compiler and Moving to GitHub

Recommended Posts

Posted

Introducing the New Compiler

The first change we’re making to TypeScript is that we’ve been taking a good, hard look at the compiler performance we had with 1.0. We knew we could leverage the experience from building the original compiler over the last two years. This led to experimenting with a new, lighter-weight compiler core. The early results with this new compiler core were so positive that we’re now focused on growing this core into the new TypeScript compiler and language service.

The first stage of this effort is to build 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. Once complete, the new compiler should be drop-in compatible with the existing one. 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.

Our work to date on the new compiler has been very promising. At its current level of completeness, the new compiler is able to compile existing real-world TypeScript code 5x faster than the currently shipping compiler. These results are still early. Once the compiler has reached parity, we'll be able to report out a more complete picture of the performance improvements.

We have a good start, but there’s a lot of work to do. For the experiment to mature into a full-featured compiler, in addition to making sure the code is robust and correct, we still need to flesh out the following features:

Parser – Strict mode, incremental parsing for the language service (if necessary).

Type checking – Get type checker to parity with 1.0 in terms of error coverage. This is nearing completion.

Compiler options – Support for --propagateEnumConstants, --watch, --locale, --logFile and --version.

Language service – Adapt the language service to work with new compiler.

Emitter – .d.ts output and comment preservation.

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.

If you’d like to help us out, you can find the new compiler at our new TypeScript repository on GitHub, which leads us to change #2.

Moving to GitHub

We’ve heard your feedback, and we’re making the move to GitHub. We’re continually looking for ways to improve how TypeScript works with the community, and we’re excited about what the move to GitHub could help us do in the coming months.

The new site will work similarly to the current one.

Source code moves to the TypeScript git repository on GitHub

Issues move to the TypeScript issues on GitHub

Please note: since we’re moving to a new issue tracker and a new codebase, we are not copying all issues over. If you have issues in the current CodePlex issue tracker, please try them against the new codebase and file them in the GitHub issue tracker if they still repro.

Wiki documentation moves to the TypeScript wiki on GitHub

Forums will now be more organized.

For questions about how to use TypeScript and how to work with various JavaScript libraries and patterns, please use the TypeScript StackOverflow site. This helps users have a one-stop place to find the best answers and get started quickly.

For feature requests and design discussions, please post to the TypeScript issues on GitHub

The blog will continue to be hosted on MSDN and will not change at this time.

Sursa aici. Pentru cei ce nu stiu ce este typescript: cititi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...