Repository navigation
v0.2.0 - native compiler preview
dartc is an independent native Dart compiler written in Dart, targeting complete Dart language implementation. Its goal is for Dart to bootstrap and evolve its own compiler, runtime and standard libraries through an optimizing native toolchain.
Version 0.2.0 is an early preview for macOS and Linux ARM64. The compatibility baseline is Dart 3.13.5; language implementation is in progress. Native compiler binaries and generated executables run without the Dart SDK, VM or snapshots.
Download the archive for your platform, verify it against SHA256SUMS, extract it, and add its bin/ directory to PATH. Keep bin/ and lib/ together: the archive includes the matching Dart runtime sources.
This version adds simple classes and accessors, nullable and runtime type checks, canonical const instances, lazy globals, noncapturing local and anonymous functions, structural function types, package configuration v2, language version selection, conditional imports, and library parts.
Capturing closures, inheritance, general generics, exceptions, async code, isolates and most SDK libraries remain unsupported. Managed storage is retained until process exit. Self-hosting is a milestone; it does not imply full language compatibility.
The pub package is also available as dart pub global activate dartc; that distribution uses the Dart SDK to host the compiler.
Installation and usage · Language support and gaps · Architecture