Repository navigation
v0.3.0 - native compiler preview
dartc 0.3.0 is an early preview of an independent native Dart compiler written in Dart. The compatibility reference is Dart SDK 3.13.7; complete Dart language and standard-library implementation remains the goal.
This release adds:
- Capturing local and anonymous functions, bound instance-method values and callable objects.
- Generic top-level and method calls with bounds, partial inference and runtime type arguments, plus generic aliases and traditional typedefs.
- Switch expressions, if-case, object/List patterns, destructuring and pattern switch statements.
- Cascades, null-aware access and List conditional, loop, spread and null-aware elements.
- Static members, named and const constructors, field initializer lists and generative redirection.
- Dart implementations of List insertion, removal and slicing, and StringBuffer character writing.
- SSA contract checks, runtime type-graph root enumeration, reproducible differential cases and compiler/program resource measurements.
Download the macOS ARM64 or Linux ARM64 archive and verify it against SHA256SUMS. Keep its bin/ and lib/ directories together. The native compiler and generated executables run without the official Dart SDK or VM.
The runtime ABI is now 14, up from 11 in 0.2. Use the compiler and runtime sources from the same release.
Inheritance, generic classes, generic function values, exceptions, async code, isolates and most SDK libraries remain incomplete. Failed runtime checks terminate the process, and managed storage is retained until process exit. Self-rebuilds do not establish complete language compatibility.
The pub package provides the SDK-hosted compiler: dart pub global activate dartc 0.3.0.