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 “WebAssembly cannot currently” every time I consider wasm for anything I see this phrase or a phrase like it
maybe I’m salty that half of the rust ecosystem is now piles and piles of code to compile for wasm or wasi or some shit that doesn’t work like anything else and makes porting to a new platform a fucking nightmare