AOT compiling Dart for iOS Android (Dart Developer Summit 2016)

Google for Developers · 5K views · 2016 · 23:17

Open on YouTube

Compilers, interpreters & program analysisSoftware performance & optimizationtalkdated

Why Stack Overflow recommends it

Stack Overflow users link it as a rare primary source when asking or answering how Dart AOT works, why iOS can't use JIT, and why Flutter apps can't load new code over the network.

Recommended by 0 people across 0 different months, 2018 to 2021.

What it is

A 23-minute talk from the 2016 Dart Developer Summit, published by Google for Developers, on ahead-of-time compiling Dart to native code for iOS and Android. It covers why iOS forbids JIT compilation and how the Dart toolchain produces native machine code instead.

What people said

Cites Josh · 2018-04 · Stack Overflow · on “How Does Dart AOT Work?”

In my search for how Dart AOT works, I have not found many resources except this video [this video] . I would like to know how it is that code can be compiled down to native machine code, such as Android or iOS, when there exists different pieces of hardware that code needs to run on. From what I understand, there are only descriptions of apps produced in Flutter. That description (written in Dart) is then compiled down to native machine code, but how? A program written in Swift is different from a program written in Kotlin.

Cites Edman · 2018-05 · Stack Overflow · on “Fluter/Dart code loading over network”

I'm not sure Eric was talking about the data or the actual code. It does sound like he meant both. It may have been possible to load code over the network because on these early days they shipped the dart VM on releases and code was JIT compiled. Since late 2015 Flutter moved to Dart's AOT compilation (see this video [this video] ). So no, it's not possible to update your flutter apps through the network.

Cites Ben Butterworth · 2021-09 · Stack Overflow · on “Difference between Dart interpreter and Dart JIT compiler?”

Background In AOT compiling Dart for iOS Android (Dart Developer Summit 2016) [this video] : iOS restriction: Can't JIT And also, from reading an article from the dart team: Flutter: Don’t Fear the Garbage Collector [LINK] , I read: In debug mode, most of Dart’s plumbing is shipped to the device: the Dart runtime, the just-in-time compiler/interpreter ( JIT for Android and interpreter for iOS ), debugging and profiling services. Question I wonder what the differences are between these 2 concepts, for dart specifically. Why can't iOS support JIT compilation but it can support a Dart interpreter? Non-question This is not about AOT vs JIT compilation, which is the more common question. You can find