Asm.js performance improvements in the latest version of Firefox
hacks.mozilla.org
hacks.mozilla.org
http://arewefastyet.com/#machine=12&view=breakdown&suite=asm...
This is great news for anyone for whom V8 was already good enough, although Safari's still handily beaten by Firefox with asm.js mode, which is handily beaten by native. I wonder whether Apple is interested in implementing a special asm.js mode for Safari, which, LLVM being LLVM, might surpass Firefox.
together with all the other work on optimizing
asm.js, allows it to run at around 1.5x slower
than the speed of the same C/C++ when compiled
natively
Running at 67% of native speed, and backwards compatible with all non ASM.js browsers? That's pretty great!With a little effort stuff can be ported, I ported CPython that way. But typed arrays is far better.
Keep in mind Operating systems were written in assembly, asm.js is not as bad as assembly in some regards.
http://jlongster.com/Compiling-LLJS-to-asm.js,-Now-Available...
It's not worth bothering with unless you're vectorising or want to use some other instructions that are not normally emitted (e.g. ARM add-with-saturation).
Asm.js on the other hand, is portable and just that makes it way better than any regular assembly. Also it seems better looking than regular assembly (no registers as such, no jumps, etc.).
It's a huge step back compared to plain JS, but it's not that impossible to write in.
Unfortunately, the first demo terminates my browser with a segfault.
Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0
Arch Linux, 64-bit, fully updated. Nvidia proprietary drivers, triple headed setup with i3-wm.
Discussion: https://bbs.archlinux.org/viewtopic.php?id=181408
Worked really smoothly on Windows.
I have been playing for quite sometime now, but the only problem is I can't find how to change the guns. There is no menu options or anything.
Played it for an hour or so.