3 ms·
wasm makes using a statically-typed language possible in web applications. For those that have embraced JS, that may not be compelling but for those of us that
by monocularvision 8y ago
wasm makes using a statically-typed language possible in web applications. For those that have embraced JS, that may not be compelling but for those of us that prefer strong, static typing it is a positive development.
- eridius 8y agoEmscripten let you do that too, compiling to asm.js. WebAssembly certainly is an improvement, but it's not like you couldn't do this at all before. And heck, even without that, there are languages that transpile directly to JavaScript.
- monocularvision 8y agoLook at the comment I was responding to: I wasn’t claiming there weren’t other ways to do this. I was responding to the question as to why you might use wasm over JS. I understand it was based on previous efforts like asm.js. Also, for several languages, specifically those based on LLVM, the path to wasm is much clearer than compiling to JS.
- sacado2 8y agoI'm using typescript, so I already have a statically-typed language for my web apps. What is compelling with WASM is that it lets me provide a web-browser version of my C++ libraries, for stuff which needs decent execution speed and cannot afford a GC.