3 ms·
Dart VM will never be in IE , Firefox or Safari. What's the point of Dart ? to compile down to javascript? if i had to work with an alternative to JS i would ch
by camus 13y ago
Dart VM will never be in IE , Firefox or Safari. What's the point of Dart ? to compile down to javascript? if i had to work with an alternative to JS i would chose haxe instead of Dart , since it is compatible with some parts of javascript and one can use the DOM api directly. Dart is great in theory but has little future.
- ahoge 13y ago> Dart VM will never be in IE , Firefox or Safari. Same deal with CoffeeScript or TypeScript. But that shouldn't stop anyone since you can just compile to JavaScript. Minifying Dart and compiling Dart to JavaScript is almost the same thing. In both cases it's a single line which calls the compiler. If you already doing one of those things, adding the other one to your build script won't hurt one bit. You can also use the Dart executable like Node. You can use it to write command line applications or web servers. You can also embed the VM into other applications. Like V8, the VM itself is just a library. There will be also a Dart VM for ARM CPUs a bit later this year. > i would chose haxe instead of Dart , since it is compatible with some parts of javascript and one can use the DOM api directly You can also interact with JS stuff if you use Dart. DOM stuff is done via 'dart:html', which provides a very idiomatic API. For example, all list-like things are actual Lists, which is very convenient. It's similar to jQuery, I'd say. > Dart is great in theory but has little future. It's great in practice, too. If you don't care about IE8, that is. Also, Google is committed to Dart. They are also already using it for a bunch of new projects.
- spankalee 13y agoDisclaimer: I work on Dart. Yes, the point of Dart is to compile to JavaScript. That's the point of any alternative language that wants to run in today's browsers. People are still mistaken that Dart's only road to success is via all browsers adopting the VM. Dart will be just fine even if no browser, including Chrome, uses the VM. The VM in Dartium already provides for a great developer experience, and the standalone VM means it has a great server and command-line platform, and unit-testing story. Dart will be even better off if/as browsers, mobile OSes, cloud hosting providers, etc. support it.