3 ms·
What a weird argument. C is not "better" than Javascript, it is vastly worse for the vast majority of current Javascript uses - where raw performance is a less
by kristofferR 8y ago
What a weird argument. C is not "better" than Javascript, it is vastly worse for the vast majority of current Javascript uses - where raw performance is a less important consideration than development time.
Javascript is far from perfect, but it has improved by leaps and bounds the last few years. WebAssembly is great, but a variant of Javascript or other high-level languages will continue to dominate web development, not C. People aren't going to "escape" from Javascript to C, except certain niches where performance is vital.
- burfog 8y agoI 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...