Hacker News new | ask | show | jobs
by scrungus 2489 days ago
I think it depends on how you compile it i think. for example,you can use SDL or something with an emscripten compiler flag [1]. but i am not super sure how that works without canvas, i haven't tried it with normal sdl

web assembly is not necessarily just for the browser though. you can have webassembly without any web[2], just to run binaries across different platforms. i think it's pretty cool

[1] https://timhutton.github.io/sdl-canvas-wasm/

[2] https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webas...