4 ms·
>non-JS WASM backend ...what's a non-js wasm backend?
by mlevental 9y ago
>non-JS WASM backend
...what's a non-js wasm backend?
- slimsag 9y agoWebAssembly can be used anywhere. It is not tied to JavaScript in nature. So think of it kind of like the JVM in a way (but it's not an implementation, just a spec).
- tudelo 9y agoSo people are using wasm in a non web context ?
- slimsag 9y agoYes. Not a ton of people (yet), but yes, some are.
- EugeneOZ 9y agobut why, if you have plenty of good languages to do this? Wasm is good for browsers because only choice we have is js.
- kodablah 9y agoWASM can be good for other things too. It is portable and fairly easy to target. It's like asking "why emscripten of you have plenty of other languages to choose from, LLVM is good for executables"
- rictic 9y agoI'm ignorant of the details, but WASM is an assembly language that's designed from the ground up for running untrusted code. It will also have multiple independent open source implementations, which has some nice properties.
- kodablah 9y agoYup: https://github.com/cretz/asmble https://github.com/cretz/asmble
- mlevental 9y agobut i'm asking what are some webasm languages/backends/use cases that aren't a JS interpreter?
- kodablah 9y agoSee http://webassembly.org/docs/non-web/ http://webassembly.org/docs/non-web/. Portability. For example, I can use Rust on the JVM: https://github.com/cretz/asmble/tree/master/examples/rust-regex https://github.com/cretz/asmble/tree/master/examples/rust-re...
- jononor 9y agoThere is a work ongoing to enable WASM to be used for Etherum smart contracts, replacing the custom VM/bytecode. One could use WASM for reconfigurable on-edge computing, all the way down to microcontrollers.
- swsieber 9y agoWASM for Ethereum would be amazing. There are a lot of languages with much better safety stories than the current one.