Hacker News new | ask | show | jobs
by lxgr 807 days ago
asm.js was the opposite of an alternative to JavaScript: It was a performant JavaScript dialect used as a compilation target for various languages otherwise targeting emscripten.

WASM is the spiritual successor to that, getting rid of the (in retrospect quite hilarious) "embedded backwards compatibility layer".

1 comments

You don't compile to js because js is slow.

edit: for the record, I think having only one doc type (html) and only one scripting language (js) in the browser is a terrible idea.

I don't know what the other doc types and programming languages should be but performance alone seems like a poor idea. A compile target seems even worse. :)