Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


I'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.


Emscripten 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.


Look 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: