3 ms·
There's a lot of complexity in using WebAssembly, but I thought this article did a good job of focusing on one specific point of confusion: why there are multip
by paulgb 4y ago
There's a lot of complexity in using WebAssembly, but I thought this article did a good job of focusing on one specific point of confusion: why there are multiple compile targets, and what the difference between emscripten and WASI are.
- Kukumber 4y agowrong, there is no complexity clang --target=wasm32 That's it, you target WASM People somewhere decided that it was too easy and went ahead to bloat everything with Emscripten, WASI and the like Here is all you need to know to target WASM: https://schellcode.github.io/webassembly-without-emscripten https://schellcode.github.io/webassembly-without-emscripten The only target for WASM is the browser, everything else is just bloat and a waste of energy
- paulgb 4y agoWASI and Emscripten exist because people want to write code that interacts with the outside world. Your approach is fine if you just want to call into some math functions and are ok writing your own bindings, but that’s not how most people use wasm.