News for hackers. Stuff that matters.
Re:A WebAssembly interpreter written in JavaScript by TekMol on Wednesday December 13, 2017 @03:25PM (#15917343)
Do browsers that support WASM support reading the text format?

If not, this could be useful to write WASM directly.

In the article, the links under "The parsing is available for the following formats:" are broken. Does anybody know where they should point to?

As soon as it is possible to write WASM directly and have it execute it by the browser, I would start trying it out. I hope somebody will come up with a better textual representation then the currently proposed one with all the parenthesis.

Re:A WebAssembly interpreter written in JavaScript by pjmlp on Wednesday December 13, 2017 @04:14PM (#15917725)
You can already play with WASM directly in the browser.

https://wasdk.github.io/WasmFiddle/

https://mbebenita.github.io/WasmExplorer/

I prefer the explorer one.

The s-exp representation is great for doing compiler development, hence why it was chosen.

Re:A WebAssembly interpreter written in JavaScript by krapp on Wednesday December 13, 2017 @07:13PM (#15918925)
WASM is bytecode and a spec - writing it by hand would make as much sense as writing an executable binary in assembly. You could do it that way, but it kind of defeats the point, and writing anything nontrivial becomes impractical.

Write something in a language that targets WASM and compile to it - it's an easier way of accomplishing the same end result, and that's what it's for.

Re:A WebAssembly interpreter written in JavaScript by xtuc on Thursday December 14, 2017 @02:59AM (#15920660)
Browsers won't support it, that's a good point. Note that WAST (text) is much more bigger than WASM (binary).