Starting from the previous example, we rebuild the program code to import its memory instead of exporting it. We then use this to simplify the application loading code.
Emscripten: https://kripken.github.io/emscripten-site/
Demo Repo: https://github.com/guybedford/wasm-intro