5 ms·
Right, but the author here doesn't mention the Dart VM as a reason for the switch; they are not switching to get better performance in Chrome. They are switchin
by MatthewPhillips 14y ago
Right, but the author here doesn't mention the Dart VM as a reason for the switch; they are not switching to get better performance in Chrome. They are switching because they like the language/ecosystem better.
Also, IANAL but I'm pretty sure you don't have to include a disclaimer to post on the internet. No one is going to rush out and buy Google stock based on your comments so there is no conflict of interest to what you wrote.
- mraleph 14y agoYes, I agree with your point. Yet, I see quick edit&refresh as the part of the ecosystem. Hard to enable that without VM. [regarding the disclaimer: I add it for two reasons. First, I have seen people accusing others of hiding their bias, so I prefer to state my affiliation explicitly. Second, if anybody wants to ask any Dart VM related questions and get response they know where to ask :-)]
- _jmar777 14y agoSweet... so how does Dart compare with asms.js? /me ducks :)
- kyrra 14y agoSerious answer: The Dart2js compiler could easily take advantage of asm.js additions, and generate javascript code that uses asm.js. If asm.js does take off, all it can do is help Dart generate faster running code. Now, if we are talking about the DartVM, asm.js could be used as an argument not to include the DartVM in other browsers. But asm.js is still very much in it's infancy, so we really need to wait and see how it's adopted and how it progresses.
- _jmar777 14y agoThanks, I agree with your comments. I was mostly just trying to poke the bear, though (http://mrale.ph/blog/2013/03/28/why-asmjs-bothers-me.html http://mrale.ph/blog/2013/03/28/why-asmjs-bothers-me.html) :)
- ryeguy 14y agoNo it couldn't. asm.js has no garbage collector. The only way to get dart running on asm.js would be to port the entire VM to asm.js, which afiak won't work since the dart JIT emits machine code at runtime.
- _jmar777 14y agoI don't think @kyrra was suggesting that Dart would compile completely to asm.js code, just parts where it makes sense (just like normal JavaScript uses asm.js only where it makes sense).
- mraleph 14y agoI think there are incomparable. Dart is not a subset of JavaScript. Dart is dynamically typed. But Dart is more than just a language now, it's ecosystem of tools and libraries.
- xxgreg 14y agoThe DartVM has supported for typed arrays too, so it probably wouldn't be much work to hack emscripten to generate Dart source code. It would be very interesting to see a benchmark of emscripten/SomethingMonkey/asm.js vs emscripten/DartVM. (Could also add emscripten/dart2js/V8 for giggles)
- munificent 14y agoEarlier you said: > That it is Dart isn't the story here; they don't even mention the Dart VM as a benefit for the switch. Which I think is equating Dart with the VM? Then you say: > They are switching because they like the language/ecosystem better. That sounds to me like Dart is the story then. The language/ecosystem is Dart, isn't it? Can that be separated somehow?
- MatthewPhillips 14y agoDart just happens to be the ecosystem they've chosen; there's no reason they couldn't have chosen ClojureScript, for example, which provides all of the same benefits (a more out-of-the-box experience). It's more of a post about their desire for a package manager and module loader being built into the language.