Day 56: A Little WebAssembly
Yesterday I paired with Rachel and Jeff to figure out how to do art in Rust.
Getting started with WebAssembly proved easier than expected. To run the canvas smiley face example, all we needed was:
git clone https://github.com/rustwasm/wasm-bindgen/
cd wasm-bindgen/examples/canvas
npm install
npm run serve
I was initially confused because the instructions called for npm, but this is a Rust program! It turned out that npm run serve runs a bunch of cargo commands behind the scenes.
Compilation took about 10 minutes on my slow computer and roughly 2 minutes on my fast one.
That's it. Now that I'm reminded Rust exists, I might tackle some rbspy issues today.



