4 ms·
I find asm.js pointless. If all you need a fast numeric calculations in JavaScript, the better compiler backend would be WebCL - OpenCL binding to JavaScript.
by nivertech 14y ago
I find asm.js pointless.
If all you need a fast numeric calculations in JavaScript, the better compiler backend would be WebCL - OpenCL binding to JavaScript.
- michaelwww 14y agoCould you expand on this? It seems like an apples and oranges comparison.
- nivertech 14y agoAsm.js only allows numeric operations on emulated heap buffer. You can do much better with OpenCL on CPU device. Asm.js intended to be used as a backend for compilers. One of OpenCL use cases is the same. Asm.js code pretends to be a JavaScript code, OpenCL does not, but there is WebCL - a JavaScript binding standard for OpenCL.
- michaelwww 14y agoAsm.js is still JavaScript. You can do all kinds of things that JavaScript can't do by itself if you call native code with a plug in. That's the difference. No plugin. No installation.
- nivertech 14y agoWhat's the difference between Mozilla deciding to bundle Asm.js with Firefox vs. Google deciding to bundle WebCL and WebGL with Chrome?
- michaelwww 14y agoI refer you to http://asmjs.org/faq.html http://asmjs.org/faq.html to understand the difference. Particularly the Question: "Why not NaCl or PNaCl instead? Are you just being stubborn about JavaScript?"