2 ms·
I address this argument in the rest of my comment. Asm.js is not standards track as far as I know. Actually let me post a thought experiment. Suppose that Dar
by haberman 13y ago
I address this argument in the rest of my comment. Asm.js is not standards track as far as I know.
Actually let me post a thought experiment. Suppose that Dartium, instead of processing straight Dart source, processed a format that is like JS except that all the Dart is in JavaScript comments at the top of each Dart2JS-outputted function.
And suppose developers compiled their Dart to these JS-with-Dart-in-comments files, and distributed these on the web instead of Dart and JS as two separate files?
At that point, how is Dart different than asm.js?
- pcwalton 13y ago> At that point, how is Dart different than asm.js? It's not guaranteed that the Dart VM and the dart2js-compiled code implement the same semantics. (And, in fact, they don't, by design—bignums operate differently in JS and the Dart VM, which could break sites in non-Chrome browsers.)