Y
Hacker News
new
|
ask
|
show
|
jobs
by
skolemtotem
2937 days ago
How is it native if you're just replacing a JavaScript VM with a Dart VM? Or is the Dart somehow compiled to native code?
2 comments
tybit
2937 days ago
Dart has a VM (with hot reloading) for dev time and an AOT compiler for release builds.
I’d say that’s one of the most attractive things about Dart to compensate for yet another language.
link
pritambaral
2937 days ago
How large and invasive is the Dart runtime though? Running in a VM and running with a runtime are only so far apart. And I'm interested in distribution package sizes too.
link
afsina
2937 days ago
Here is some info:
https://flutter.io/faq/#how-big-is-the-flutter-engine
link
gcb0
2937 days ago
in summary : a minimal UI app goes from 40k of java code to 6700k of compressed dart code
link
afsina
2937 days ago
Not compressed, compiled to machine code.
link
gcb0
2936 days ago
why does the linked article calls ot out as "compressed" but not mention it for java bytecode?
link
myguysi
2937 days ago
You’re right, it gets compile to native code
link
I’d say that’s one of the most attractive things about Dart to compensate for yet another language.