3 ms·
This repository compiles asm.js into webassembly [1]. Otherwise, you will have a hard time to convert your Javascript code. You have to implement a JIT compile
by s-macke 9y ago
This repository compiles asm.js into webassembly [1].
Otherwise, you will have a hard time to convert your Javascript code. You have to implement a JIT compiler and GC too. Webassembly was never designed to be a replacement for JavaScript. And especially, it was never designed to protect your source code. A minimizer/obsfucator does a great job of making your JavaScript code unreadable.
[1] https://github.com/WebAssembly/binaryen https://github.com/WebAssembly/binaryen
- baybal2 9y ago>And especially, it was never designed to protect your source code. I hardly get that, all and every major backer of WASM did effectively admit at some point that "ip protection" was the one and only reason they back it. The absence of a native dom interface or proper I/O implementation at this point means that WASM compiled code actually runs slower for everyday web apps than non-compiled code.
- the_duke 9y ago> all and every major backer of WASM did effectively admit at some point that "ip protection" was the one and only reason they back it. I'm sure you wouldn't mind providing sources for this bold claim?
- s-macke 9y agoI have looked at obsfucated JavaScript code as well as webassembly disassembly. I don't see much difference. What might obfuscate is the fact, that it comes without any libraries. You have to program like in C without any library support, which is more or less what you do with bare metal programming now.