B
B
beduin012019-08-02 10:03:11
Android
beduin01, 2019-08-02 10:03:11

Why is Java development for Android considered "native", but not Dart?

How is Android development on Dart fundamentally different from Java development? And there and there VM-ka.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
EVGENY T., 2019-08-02
@Beshere

Dart is a replacement for Java Script. And Java is Java, they came up with Kotlin to replace it.

T
tutuborg, 2019-08-03
@tutuborg

1. Dart doesn't have a VM, strictly speaking. The VM is used in Dart for debugging purposes only. And the finished application is compiled into machine code, which is even lower and faster than the Java VM.
2. As if there is a big difference - Java VM in Android is the main base after all. It is always there, it is always running, the lion's share of applications work with this VM. If, hypothetically, you will have some other additional VM, besides the main Android VM, for only one application, this is the volume of the application when downloading is large and you need more RAM space, and more disk space is required.
3. Dart's limitations on using the API can be considered non-native. A typical Java/Kotlin native app on Android has access to 99.99% of the API. But for a Dart application made, only those APIs are available that are either built into Dart or under which a compatibility layer is implemented (written in Java / Kotlin) - and this is far from even 80%

  1. Hot reload first
  2. Well, the division into two layers - actually Dart and pieces-bridges to the API (which are written in Java / Kotlin)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question