i should port something else to webassembly. maybe that'll bring me happiness

@whitequark

@tigerhiddenadam has been trying to get one of the CHERIoT simulators working in a browser so that we can have a complete demo environment working on the web site…

@david_chisnall @tigerhiddenadam is there a repo i can look at

@whitequark @david_chisnall thank you. This is quite rough at the moment. I can get the simulator to display the help flags but it doesn't currently run an ELF. It also wouldn't build for me on aarch64.

https://github.com/tigerhiddenadam/cheriot-sim.wasm

GitHub - tigerhiddenadam/cheriot-sim.wasm

Contribute to tigerhiddenadam/cheriot-sim.wasm development by creating an account on GitHub.

GitHub
@tigerhiddenadam @david_chisnall oh that's fascianting; i've never used Sail before!

@whitequark @tigerhiddenadam

If we can, the MPact simulator would be the best one to run in WAsm because it's much faster than the Sail and it also has an integrated debugger, so is more interesting for a live development environment.

@david_chisnall @tigerhiddenadam ok yeah that looks like it'd be *way* easier, "just" use the official emsdk bazel configuration with the build (i'm sure it'll break in some exciting manner)
@whitequark @david_chisnall let me give it a go. I did promise Tor we'd try it.