Hacker News new | past | comments | ask | show | jobs | submit login

What does Google need to do to support asm.js? I thought asm.js is a subset of JavaScript so shouldn't it already be supported?



It runs, but running in the normal JS engine is slow. If code validates as asm.js code, you can compile it with fewer checks and no garbage collection, so that it would run a lot faster. https://en.wikipedia.org/wiki/Asm.js#Performance

Chrome already provides some speedup on asm.js code https://hacks.mozilla.org/2015/03/asm-speedups-everywhere/


By "support", I think the parent means "optimize". Chrome does not do the same kinds of optimizations for asm.js that Firefox does.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: