I've always wanted to see some articles about Wasm that would help explain ...
All of these points are about teaching people about WebAssembly, but I noticed resistance to teaching people about WebAssembly via this repo in #232. I'm not sure, perhaps it was just because not enough design decisions had been made at the time, or because I mixed in a text format proposal... But I wonder if there would there be more willingness to have "teaching materials" if they were located somewhere else? A couple of options:
Also, if we have teaching articles, I think the beginning of each design document should link to a closely related "primer", if available.
These all sound like good suggestions, but it seems a bit early to worry about "teaching". We are still iterating on the initial design (including goals), there is no fully functional implementation yet, and so on. Anything written outside the repo would probably be outdated a few days later. I think creating material like that will start making more sense once the MVP is stable, hopefully in a couple of months.
I agree with rossberg, we are still too early. I think that we could do a series of blogs or short things that would show where we are up to. So something more than just the twitter.
But anything as big as what you say would mean that you would have to update the teaching documents and the design at the same time and I think that overhead is not yet warranted
I'm firm believer in learning by doing and that's why I have published a WASM playground where people can see for themselves how WASM works on the semantics level:
http://ast.run/
I think this kind of tools/toys can be very useful in teaching about WASM even though real applications won't be written in WASM but compiled from higher level languages.
@data-ux How does the editor work? Is the source code available?
The user is directly manipulating the WebAssembly AST, which is rendered to html on the fly. The interpretation of the WASM program is handled by binaryen.js.
The code is here:
https://github.com/data-ux/wasm-playground
@data-ux I just pushed a similar demo using sexpr-wasm. Not nearly as fancy, but it's fast and gives nice errors.
P.S. newer version
@binji: very nice!
@kripken just don't look at my C to JS binding code :blush:
@binji, nice demo! The generated descriptions are very informative.
We probably need to turn this issue into wiki page with set of links to the demos.
Here is another one: http://mbebenita.github.io/WasmExplorer/ . It is a C-to-wast translator via web service, plus it demonstrates compilation of the WebAssembly to machine code on a browser side (it's only SpiderMonkey on x86/64-bit architecture atm).
/cc @mbebenita
@s3ththompson has done a bunch of work recently to improve this situation. Closing this issue. Please file smaller issues for anything that's missing from newer work.
Most helpful comment
@data-ux I just pushed a similar demo using sexpr-wasm. Not nearly as fancy, but it's fast and gives nice errors.
P.S. newer version