5 ms·
It already does, and they're working on making it easier. https://github.com/dart-lang/sdk/issues/34343 https://github.com/dart-lang/sdk/issues/34343 Not sure
by markdog12 7y ago
It already does, and they're working on making it easier.
https://github.com/dart-lang/sdk/issues/34343 https://github.com/dart-lang/sdk/issues/34343
Not sure if this will use AOT or JIT though.
- munificent 7y ago> Not sure if this will use AOT or JIT though. You can do either. You can compile a snapshot and run that on the JIT VM. This basically gives you faster startup because it doesn't have to do all the source parsing, resolution, type-checking, etc. but gives you the general runtime performance of a JIT VM (think V8 or the JVM). Or you can AoT compile your app all the way to native code. It's similar to how a shipped Go or OCaml works where it compiles your code and the language's runtime together into a single executable.
- markdog12 7y agoI was more referring what Flutter would do out of the box for desktop, but yeah, the question didn't mention Flutter. By the way, is there a good performance breakdown between Dart's AOT vs JIT? I've read some tweets/comments that JIT is still generally faster. Not including warm-up of course.
- munificent 7y agoI don't know of any good canonical references. The perf story is always changing since a lot of this back-end work is pretty new. Also, the type system changes in 2.0 are still fairly new and I'm not sure how much the back-ends take advantage of those types yet.