Hacker News new | ask | show | jobs
by Siecje 4058 days ago
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?
2 comments

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.