Interested to see a number of people mention one of the attractions with WebAssembly being the sandbox &customisation angles.
Sandboxed in-game avatar customisation was one of the motivations behind the "WebAssembly Calling Card" (WACC) project I released within the past couple of weeks, posted a Show HN here: https://news.ycombinator.com/item?id=24072304
"WACC: Like an avatar but WASM!"
The WACC specification defines how three 32-bit ints (returned via 3 calls to a function in a WASM module) get turned into triangles:
* 256x256 coord system.
* 15 bit color + 1 bit alpha per vertex triangles.
* 1 FPS!
In part, WACC & the WACC Viewer app is a demonstration of a WIP add-on for the Godot game engine that wraps the libwasmtime WebAssembly runtime so desktop Godot games/apps can call functions in WebAssembly modules. (The other demo app is a tool to help explore `.wasm` files: https://gitlab.com/RancidBacon/wasm-exploder)
The other main goal with WACC is to provide more visually interesting "first run" experiences for people embedding WASM runtimes and/or provide a creative outlet for starting to play around with generating/writing WebAssembly.
So, if you're interested in playing around with some non-browser WASM you might like to have a play with WACC--maybe implement the spec for a different host or create your own Calling Card. (I would particularly like to see it running on standalone hardware like a badge or similar.)
Sandboxed in-game avatar customisation was one of the motivations behind the "WebAssembly Calling Card" (WACC) project I released within the past couple of weeks, posted a Show HN here: https://news.ycombinator.com/item?id=24072304
"WACC: Like an avatar but WASM!"
The WACC specification defines how three 32-bit ints (returned via 3 calls to a function in a WASM module) get turned into triangles:
* 256x256 coord system.
* 15 bit color + 1 bit alpha per vertex triangles.
* 1 FPS!
In part, WACC & the WACC Viewer app is a demonstration of a WIP add-on for the Godot game engine that wraps the libwasmtime WebAssembly runtime so desktop Godot games/apps can call functions in WebAssembly modules. (The other demo app is a tool to help explore `.wasm` files: https://gitlab.com/RancidBacon/wasm-exploder)
The other main goal with WACC is to provide more visually interesting "first run" experiences for people embedding WASM runtimes and/or provide a creative outlet for starting to play around with generating/writing WebAssembly.
So, if you're interested in playing around with some non-browser WASM you might like to have a play with WACC--maybe implement the spec for a different host or create your own Calling Card. (I would particularly like to see it running on standalone hardware like a badge or similar.)
Main site here: https://wacc.rancidbacon.com/