4 ms·
I disagree about "better", but... If you like your JavaScript, you can keep your JavaScript. You have no reason to care about WebAssembly. Why would you build
by burfog 8y ago
I disagree about "better", but...
If you like your JavaScript, you can keep your JavaScript. You have no reason to care about WebAssembly. Why would you build a JavaScript imitation on WebAssembly when you can just use JavaScipt?
WebAssembly is for the rest of us.
- abuldauskas 8y agoThat's the thing though. We are all "us" here. We can all compile whatever we want to WebAssembly, that's the point of WebAssembly. One way of doing things doesn't take away from another.
- danShumway 8y agoYou might like a JavaScript-like language but want to get rid of the garbage collector, or work closer to the bare metal than Javascript currently allows. WebAssembly is for everyone.
- dtf 8y agoIt's not a JavaScript imitation. This is a JavaScript-like syntax for writing WebAssembly. Other than that, (excepting the closure helper) it's 1-to-1 WebAssembly. Not everyone enjoys writing verbose S-Expressions [1], even if it makes for a good canonical format. If you despise JavaScript so much that you can't bear the thought of something that vaguely looks like JavaScript, then don't worry there are other "skins" for writing WebAssembly [2-4] and it should not be too hard to write your own. Finally, nobody owns WebAssembly. It's for clever people like yourself just as much as it is for dirty JavaScript programmers like me. [1] https://developer.mozilla.org/en-US/docs/WebAssembly/Text_format_to_wasm https://developer.mozilla.org/en-US/docs/WebAssembly/Text_fo... [2] https://github.com/tmcw/wah https://github.com/tmcw/wah [3] https://github.com/serprex/luwa https://github.com/serprex/luwa [4] https://medium.com/cirru-project/webassembly-s-expression-and-cirru-syntax-a556b5c6ea52 https://medium.com/cirru-project/webassembly-s-expression-an...