The Dart VM has a builtin interpreter, which is used on iOS without JIT optimizations.
Unless there's an unannounced experiment involving some kind of AoT compilation for iOS, I don't think we can run optimized Dart code, JIT or AoT (yet).
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
But I'm confused. Shouldn't native precompilation produce a native executable? How are snapshots loaded if they contain native code?
Also, are there benchmarks comparing AoT compilation against interpretation and JIT on a similar Android devide?
I think iOS snapshots are a compact binary form of Dart code, just like any Dart snapshot on other platforms. They're not AoT native bytecode.
The Dart VM has a builtin interpreter, which is used on iOS without JIT optimizations.
Unless there's an unannounced experiment involving some kind of AoT compilation for iOS, I don't think we can run optimized Dart code, JIT or AoT (yet).
I thought I read in a Flutter thread that interpretation was used on iOS, but I could be mistaken.
I guess it just links parts of the Dart VM within the executable (gc, event-queue, APIs, snapshot loader?).
It's probably very early, but I'm curious regarding the performance characteristics of AoT Dart.
I suspect the gains could be significant if the compiler cares about types.
But I guess it would meen a whole new specification is required.
With regard to Flutter (previously called Sky), I do not remember that it was advertised to be implemented in Dart.
But the repository contains Dart files and Flutter is meant to be used with Dart code which must run somehow.
Dart VM does not have an interpreter. In JIT based execution, JIT initially creates unoptimized code that is run until hot code is detected. Hot functions are optimized, unoptimized code is replaced with optimized code.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.