I wanted to prove how easy it is to integrate Web Assembly into a project,
without using the wasm-bindgen
a very complex demo of how wasm-bindgen
is incredibly important,
this demo reads raw memory locations and directly has to translate binary
into something meaningful either in the rust backend or the JavaScript frontend.
use hjkl to move in this demo
more research also lead me to figure out how to deal with direct memeory allocated to
the wasm program and modify it in js
turns out Web Assembly is like running a executable in a virtual enviroment, in the browser this is like creating your own runtime for that enviroment but inside JavaScript, that means you have to create your own memeory allocator and control scheme all inside js. this really good post covers so much more about it I cant wait to make more cool tech with Web Assembly.