4 ms·
Asm.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 co
by nivertech 14y ago
Asm.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?"