You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pub package ships self-hosted compiler libraries for macOS ARM64, Linux ARM64 and Linux x64. Both the Dart compilation API and the package CLI use the bundled compiler.
The compiler is written anew; ARCHITECTURE.md tells how it works. Correct programs no longer depend on what an optimizer can prove, and each is checked against the official runtime.
The language is supported but for deferred imports, variables of type Never and external variables. Of the libraries, dart:isolate and parts of dart:io are missing. README.md has the list.
Programs read files, and standard input and output, with the official dart:io.
dart:ffi calls C, is called by C, and has structs, unions and arrays. C posts to ports and has native ports, concurrent ones too, through NativeApi, and Handle and the functions of dart_api_dl.h (version 2.7) work, as do weak and finalizable handles, external typed data from C, and NativeCallable.listener with Handle. LIMITS.md lists where they differ from the official runtime, and why.
Targets are macOS ARM64, Linux ARM64 and Linux x64. Intel Macs are no longer supported.
--kind is exe unless told otherwise; it was object.
package:dartc/compiler.dart has compileProgram and compileLibrary in place of Compiler. The libraries for parts of the old compiler are gone. package:dartc/interop.dart has only Export.