4 ms·
Dart compiles to just JavaScript that works in all browsers, and if a browser integrates the Dart VM, it'll run faster. asm.js is just JavaScript that works in
by spankalee 13y ago
Dart compiles to just JavaScript that works in all browsers, and if a browser integrates the Dart VM, it'll run faster.
asm.js is just JavaScript that works in all browsers and if a browser integrates an asm.js compiler, it'll run faster.
Yes there are deployments steps needed to serve both Dart and JS to browsers: Those steps are:
1. Include both the JS and Dart in your static resources.
2. There is no 2.
- pcwalton 13y agoThe difference between asm.js and Dart is, as I mentioned before, that it is impossible to serve a Web app with asm.js that does not work in all modern browsers, due to the fact that asm.js is just JavaScript. With Dart, however, if you serve the Dart and don't include the corresponding JS, then your app only works in browsers that implement the Dart VM.
- dragonwriter 13y ago> With Dart, however, if you serve the Dart and don't include the corresponding JS, then your app only works in browsers that implement the Dart VM. Since no general use browser implements the Dart VM, no one would do that, so its really pretty irrelevant.
- pcwalton 13y ago> Since no general use browser implements the Dart VM, no one would do that, so its really pretty irrelevant. That's right. My hope is that it continues to stay that way, absent browser-manufacturer consensus.
- kihara 13y agoPlease correct me if I am reading you wrong: so you hope that web developers will never get access to a better development platform?
- FeloniousHam 13y agoThis. Set aside that Javascript has hit "peak speed", its failures for large codebases are fundamental [1]. I don't agree with the Google hate, but I can understand. What I don't understand: outright denial of the possibility of something better than JS. (for my personal projects, I genuinely love JS) 1 As someone who works in a large organization, I live this. Small groups with great programmers can make use of all the many tools and tricks for maintaining their project, but for teams fractured across time and space and governance, it is no fun.
- dragonwriter 13y agoThe "absent browser-manufacturer consensus" limitation in the post suggest that the hope is that a better development platform won't come with the cost of a fragmented web; i.e., that whatever the choice is for improvement (Dart or something else) it won't be one or more vendor-specific targets, but one broadly-accepted target that can be used freely without worrying about either locking-out users of other major browsers or providing different browser-specific alternative s.