3 ms·
Though it might be useful in niche situations. In the C world, crypto libraries often use inline assembler. I assume there might be similar use cases for JS a
by tyingq 7y ago
Though it might be useful in niche situations. In the C world, crypto libraries often use inline assembler. I assume there might be similar use cases for JS and WASM.
- Eikon 7y agoNot really applicable here as WASM is not machine code and is interpreted / compiled / JIT compiled behind the scenes. Something you definitely don’t want for cryptography.
- tyingq 7y agoI wasn't directly suggesting cryptography. Rather pointing to a similar "niche" use case of inlining in a different ecosystem. I assume there are several use cases where WASM is faster than JavaScript, despite all the things you mention. Some types of canvas manipulation are typically faster with WASM, for example.