oh my fucking god https://developer.mozilla.org/en-US/docs/WebAssembly/Guides/Concepts#porting_from_cc wasm is so fuckex
By itself, WebAssembly cannot currently directly access the DOM; it can only call JavaScript, passing in integer and floating point primitive data types. Thus, to access any Web API, WebAssembly needs to call out to JavaScript, which then makes the Web API call. Emscripten therefore creates the HTML and JavaScript glue code needed to achieve this.
literally what the fuck is the point of this. any of this
@hipsterelectron wasm is only useful OUTSIDE of the web because you need so much js to do web stuff with it, however it does provide us the possibility to cross compile anything that can be compiled to wasm to c89 and then run it on plan 9 so thats fun