--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
Threads and background tasks are essential for Android in order not to block the UI thread. Dart is single threaded. So it is very questionable if Dart is the right choice for Android.
If this problem would be solved somehow then I would not spend effort into a Dart to Java compiler but I would enhance the Dalvik VM to be also capable of executing Dart byte code.
Hans
--
I would recommend you to read the following article of the dart documentation. https://www.dartlang.org/articles/event-loop/
In the browser Dart is compiled to JavaScript and Javascript is single threaded by design. Isolates can be used with the VM, but they are not the same as threads because they can not be interrupted and can communicate only via messages.
If this problem would be solved somehow then I would not spend effort into a Dart to Java compiler but I would enhance the Dalvik VM to be also capable of executing Dart byte code.
I fully understand and agree that it is frustrating to have this awesome Dart VM and not reusing it for Android native application development, but I really think the bytecode + ART runtime way is the only one possible if we talk about first class support.
I am not an Android developer but I try to take the POV of Android team at Google and Android developers since THEY are going to decide if they are going to use Dart or not. Mobile native development is not Web development. These are 2 different worlds and if you have a look in detail to Android 5.0, you will see that these are going to stay 2 different worlds at runtime level for quite a long time, even if there will be some convergence, like Paper Elements, Material Design, perhaps for the component model ... Google has put a HUGE effort in creating this ART runtime that uses OAT bytecode compiled Ahead Of Time on the device to go faster, consume less power, etc. Android API is huge, and is developed to run as bytecode (DEX on Android <= 4.0 or OAT created from DEX in Android >= 5.0).
--
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
I like the Mobile Chrome Apps approach. And you don't need to port the cordova plugins to dart, from dart you can just use the dart <-> js interop.
One of the most distinct additions to Jack is ANTLR v3.4, a very powerful tool for generating language parsers. This may prove to be the first step towards language-level customizations, support for additional languages, or very advanced language inlining. For example, it may soon be possible write raw SQLite queries in the middle of code, or write an app in C# or Python without the use of special libraries (assuming the runtime supports all of the necessary features).