I think it's important to point out that there is a difference between "Flutter"(DartVM + Skia) & "Dart"(just the DartVM)
While it's true that Flutter's high level API is in pure Dart, the underlying engine is not.
Flutter's engine is powered by Skia written in C++.
Skia does the heavy lifting when it comes to painting the UI to screen. C++ for the graphics is why I suspect Flutter can compile to AOT
Vanilla Dart cannot be compiled AOT i.e to machine code it needs a VM
EDIT: It seems AOT compilation has been available for vanilla Dart since version 1.24.
It's just that no one really knows how to use the feature besides the Flutter core devsπ
Cool, thanks for pointing out the difference. I am aware that Skia is what is being used to draw the graphics on the screen. Presently AOT is exposed for Flutter and hopefully in future will be available on other platforms.
Dart now has instructions for AOT dart.dev/platforms#optimized-produ... :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think it's important to point out that there is a difference between "Flutter"(DartVM + Skia) & "Dart"(just the DartVM)
While it's true that Flutter's high level API is in pure Dart, the underlying engine is not.
Flutter's engine is powered by Skia written in C++.
Skia does the heavy lifting when it comes to painting the UI to screen. C++ for the graphics is why I suspect Flutter can compile to AOT
Vanilla Dart cannot be compiled AOT i.e to machine code it needs a VMEDIT: It seems AOT compilation has been available for vanilla Dart since version 1.24.
It's just that no one really knows how to use the feature besides the Flutter core devsπ
Cool, thanks for pointing out the difference. I am aware that Skia is what is being used to draw the graphics on the screen. Presently AOT is exposed for Flutter and hopefully in future will be available on other platforms.
Dart now has instructions for AOT dart.dev/platforms#optimized-produ... :)