The subtitle is “Unified Development for Web, Mobile, and Embedded Applications”.
I read 50 pages already and it’s pretty interesting. So far it’s covering how to write a checkers game in the lower-level WebAssembly Text format, which looks like this:
So, is that code WebAssembly or something sort of above WebAssembly?
My only experience with any sort of low-level programming is the nand2tetris stuff, and your code example reminds me a little bit of their virtual machine language, which sits in between their assembly and their high level language (so, a stepping stone for the compiler, if that makes sense).
and then clicking “download” will get you a binary .wasm file that can run in the browser.
If you have the WebAssembly Binary Toolkit installed, you can convert back and forth between wat and wasm formats. You can write raw WebAssembly Text, but I think WebAssembly is meant to be written in Rust/C/C++ or other languages.
Oh, OK. Thanks for the links. So WebAssembly text format does look quite a bit like the stack-based virtual machine language from nand2tetris . I guess from the name, I assumed .wasm files were in some sort of assembly, but evidently they are in binary?
These low level languages are interesting to learn a bit about, at least for me to have some idea what might be going on underneath the surface when I create something in a higher language. I’ve recently learned that Julia has two commands that reveal the generated LLVM code and x86 assembly for any Julia function (even user defined ones).
And I guess WebAssembly is yet another place I could put some C to use, and so yet another reason to (re)learn that.
I got the ebook below when it was on sale for $5 – it covers WebAssembly with C and C++ (also Vue.js and d3.js). I didn’t read it yet, but it looks interesting. I’m going to read the other Rust/Wasm book first.
If anyone is interested in the Programming WebAssembly with Rust ebook, it’s on sale until April 3 for $15 if you use the discount code aintnofool2019. I think the coupon code will work with any of their new releases.
Here is a giveaway for a free book on Fullstack Rust that includes WebAsssembly: Book Giveaway: Fullstack Rust – just click the poll in that post to enter the random drawing.