too many bees
black lives matter
Back to Portfolio

Gluing The Web And WebAssembly Together

Brooklyn JS

This presentation is a technical talk that describes how to add convenience code that makes running WebAssembly easier. wasm-bindgen and emscripten generate convenient glue code automagically, but because I distrust magic (ironic for a Ruby on Rails programmer) I had to figure how it really worked under the hood before I was willing to let a library do the heavy lifting.

This talk begins from the very first problem–WebAssembly's limit of just four primitive data types–and builds toward a working interactive game of hangman. The result is a set of JavaScript snippets that can be used to make WebAssembly easy to load and run; or at least to better understand how the automated tools do it.