logoalt Hacker News

IshKebablast Friday at 8:33 AM2 repliesview on HN

> some optimisation

That's underselling it a bit IMO. There's a reason asm.js was abandoned.


Replies

creatalast Friday at 10:09 AM

Wikipedia mentions that Wasm is faster to parse than asm.js, and I'm guessing Wasm might be smaller, but is there any other reason? I don't think there's any reason for asm.js to have resulted in slower execution than Wasm.

show 1 reply
gf000last Friday at 9:19 AM

Both undersell and oversell. There are still cases where vanilla JS will be faster.

And AFAIK asm.js is the precursor to WASM, like the early implementations just built on top of asm.js's primitives.