News for hackers. Stuff that matters.
Re:Walt: JavaScript-like syntax for WebAssembly by burfog on Wednesday October 10, 2018 @10:19PM (#18190591)
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.

Re:Walt: JavaScript-like syntax for WebAssembly by abuldauskas on Wednesday October 10, 2018 @10:29PM (#18190621)
That'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.
Re:Walt: JavaScript-like syntax for WebAssembly by dtf on Thursday October 11, 2018 @05:03AM (#18191938)
It'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_fo...

[2] https://github.com/tmcw/wah

[3] https://github.com/serprex/luwa

[4] https://medium.com/cirru-project/webassembly-s-expression-an...

Re:Walt: JavaScript-like syntax for WebAssembly by danShumway on Wednesday October 10, 2018 @10:50PM (#18190681)
You 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.