Hacker News new | ask | show | jobs
by sillysaurusx 1637 days ago
There's not a whole lot of difference between minified JS and WASM anyway.
2 comments

How.. Wai... What do you mean? There is a lot of difference! That's like saying Java bytecode is the same as Java source code, not nearly the same thing! Things that can run JS can run minified JS but doesn't mean it can run WASM, and just because something can run WASM doesn't mean it can run JS.
If something can run wasm, it can run JS by running an interpreter compiled to wasm.

Conversely, wasm can be transpiled to JS, and asm.js is also a thing.

Sure but a from scratch implementation in pure JS instead of a wasm compile would be cool.