5 ms·
Is there anywhere a "hello world" or simple DOM modification program which I can implement with WebAssembly?
by therealmarv 9y ago
Is there anywhere a "hello world" or simple DOM modification program which I can implement with WebAssembly?
- remcob 9y agoI made this factorial compile-and-run example in NodeJS: https://gist.github.com/Recmo/e0b6911992897c5f51c38fda822537c2 https://gist.github.com/Recmo/e0b6911992897c5f51c38fda822537... To run it you need at least Node 8.0.0 and the `--expose-wasm` flag. Sorry for using modern JS, you will need to use babel-node to run it. Or you can port it to old fashioned JS.
- Houshalter 9y agoI didn't know you could run wasm from node, awesome.
- readittwice 9y agoAFAIK you cannot access the DOM from WebAssembly right now, although it probably will come in future versions. But you can use the WebAssemblyExplorer https://mbebenita.github.io/WasmExplorer/ https://mbebenita.github.io/WasmExplorer/: There is also a nice video about using WebAssemblyExplorer and even uses a simple WebAssembly-Module: https://www.youtube.com/watch?v=3XrGjSnPHGY&t=310s https://www.youtube.com/watch?v=3XrGjSnPHGY&t=310s