Flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:javascript
dartdevc
) and a production time compiler (dart2js
).Dart Native enables running Dart code compiled to native ARM or X64 machine code for mobile, desktop, and server apps.java
The Flutter framework is a popular multi-platform UI toolkit that’s powered by Dart Native when targeting mobile or desktop devices.web
Having a fast developer cycle is critical for iteration.chrome
The Dart VM has a just-in-time compiler (JIT) that supports both pure interpretation (as required on iOS devices, for example) and runtime optimization.app
More information: dart
VM toolide
When apps are ready to be deployed to production — whether you’re publishing to an app store or deploying to a production backend — you can use the Dart AOT compiler to ahead-of-time compile your app to native ARM or X64 code machine code. Your AOT-compiled app starts instantly and runs smoothly.ui
The AOT-compiled code runs inside an efficient Dart runtime that enforces the sound Dart type system and manages memory using fast object allocation and a generational garbage collector.google
More information: dart2aot
tooldebug
Dart Web enables running Dart code on web platforms powered by JavaScript. With Dart Web, you compile Dart code to JavaScript code, which in turn runs in a browser — for example, V8 inside Chrome.code
The Flutter framework, a popular multi-platform UI toolkit, is powered by Dart Web when targeting web apps. The AngularDart framework, a popular web app toolkit, is also powered by Dart Web.
More information: Get started: web apps
The Dart dev compiler (dartdevc) is a Dart-to-JavaScript compiler that’s optimized for quick turnaround. Instead of using dartdevc directly, you use it with webdev
, a tool that supports core developer tasks such as running, debugging, and building.
More information:
The dart2js
tool compiles Dart code to fast, compact, deployable JavaScript. It employs techniques such as dead-code elimination
More information:
https://dart.dev/platforms