dart-sdk/pkg/dev_compiler
2016-10-24 09:01:50 +02:00
..
bin fixes #610, incorrect help output 2016-08-12 15:06:41 -07:00
doc
lib fix #27644, allow "dart" and "dartx" to be renamed if needed 2016-10-21 11:48:19 -07:00
test fix #27644, allow "dart" and "dartx" to be renamed if needed 2016-10-21 11:48:19 -07:00
tool fix #27532, implementing a native type with fields 2016-10-20 15:59:18 -07:00
web Emulate compiling a source file in the context of an existing library. Add --debugger-compile flag that performs permissive dynamic calls on private members. Polish web_command.dart adding the ability to evaluate code in the context of an existing library. 2016-10-18 16:34:48 -07:00
.analysis_options
.gitignore fix #626, add AMD module format and make it default 2016-08-25 09:39:36 -07:00
CHANGELOG.md fix #626, add AMD module format and make it default 2016-08-25 09:39:36 -07:00
codereview.settings
karma.conf.js Travis / chrome fixes 2016-10-06 08:33:06 -07:00
LICENSE.md
package.json Testing support for FF and Safari 2016-09-14 08:41:43 -07:00
README.md Update README.md 2016-10-24 09:01:50 +02:00
STRONG_MODE.md Update STRONG_MODE.md (#27391) 2016-09-26 11:57:22 +02:00
test-main.js Start cleaning up the HTML tests. 2016-10-13 08:47:27 -07:00
USAGE.md Update USAGE.md 2016-08-15 07:27:15 -07:00

dev_compiler

Build Status Coverage Status

The Dart Dev Compiler (DDC) is an experimental development tool and transpiler. It is at a very early stage today. Its aims include the following:

  • A static checker based on stricter-than-standard-Dart type rules.
  • A modular Dart-to-ES6 transpiler for Dart programs that statically check.

DDC attempts to map to idiomatic EcmaScript 6 (ES6) as cleanly as possible. To do this while cohering to Dart semantics, DDC relies heavily on static type information, static checking, and runtime assertions.

DDC is intended to support a very large subset of Dart. If a program does not statically check, DDC will not result in valid generated code. Our goal is that a program execution (of a valid program) that runs without triggering runtime assertions should run the same on other Dart platforms under checked mode or production mode.

DDC does support untyped Dart code, but it will typically result in less readable and less efficient ES6 output.

DDC has the following project goals:

  • Effective static checking and error detection.
  • A debugging solution for all modern browsers.
  • Readable output.
  • Fast, modular compilation of Dart code.
  • Easy use of generated code from JavaScript.

DDC is still in a very early stage as highlighted by our choice of ES6. ES6 itself is in active development across all modern browsers, but at various stages of support: kangax.github.io/compat-table/es6.

We are targeting the subset of ES6 supported in Chrome.

To try out DDC and/or give feedback, please read our usage page.