3 ms·
Cool project! Have you already tried asm.js and/or measured performances?
by ecesena 13y ago
Cool project! Have you already tried asm.js and/or measured performances?
- frik 13y agoYou cannot write asm.js by hand (in a sane way... it uses one big array for everything). It's meant to be translated from emscripten clang compiler project. So you can compile C/C++ code to asm.js. But Javascript engines like V8 with its JIT are way faster than Python. You can even use typed arrays that give you almost native speed for such operations (e.g. matrix). I am coding a 3D game in WebGL and JS is as fast as Java when used in a modern fashion, though JS run in every browser