Hacker News new | ask | show | jobs
by notriddle 2308 days ago
It's faster. That's literally it. There aren't any new I/O facilities.
1 comments

A few examples of things it adds that are not widely available in JS (if at all, or requiring awkward hacks/hints in JS), off the top of my head:

int64

uint32

popcnt

copysign

reinterpret_cast equivalent (the js hack for this is abysmal)

pthreads

SIMD

AOT compilation

To be fair, it's been a while since I was last one of the authors of the webassembly spec, so I could be missing some things.

Could ads be served with web assembly?
Yes, though I don't know if it makes sense to do it for any reason other than hiding from ad blockers.
Well, for some it is the only reason needed...