2 ms·
>Google started their proprietary NaCl and Dart projects because they claimed you couldn't make JavaScript any faster than it currently is I don't remember the
by mistercow 14y ago
>Google started their proprietary NaCl and Dart projects because they claimed you couldn't make JavaScript any faster than it currently is
I don't remember them saying that. I remember them saying that JS has insurmountable performance problems, but that's very different from saying that JS is as fast as it can get.
As for asm.js, it's another approach to the same problem. An insurmountable problem for a VM usually means that there's a limit to how well the VM can reason about arbitrary code. The clever thing about asm.js is that it gets around that by just restricting the language rather than inventing a new one. The clever thing about Dart is that you would rather write in it than kill yourself.
And yes, of course asm.js is meant to be written by compiling via emscripten, but that means trading far more dynamicness for speed than you would with Dart.