ktock / container2wasm

Container to WASM converter
https://ktock.github.io/container2wasm-demo/
Apache License 2.0
2.06k stars 83 forks source link

Accelerate docker wasm workloads #139

Open audiovention opened 1 year ago

audiovention commented 1 year ago

Hi, that's a really awesome project you have created! I've been thinking a lot lately on the in-browser virtualization topics, with my dream to run a full-blown linux distro with acceptable performance in the browser. Something that comes to mind right now, related to container2wasm, docker now has (beta) support for wasm workloads - https://docs.docker.com/desktop/wasm/ I can't help but thinking there must be a way to run those in the browser with very good performance. I don't have any proper suggestion, just wanted to start a discussion. Could there be a way to forward the wasm workload execution straight to the browser? i.e. something like QEMU/Bochs/TinyEMU exposing a virtual WASM cpu (I realize that's really far-fetched and ambitious idea), so that wasm code can be executed by the virtualizing browser, instead of translated a number of times, and executed by the emulator.

ktock commented 1 year ago

a way to forward the wasm workload execution straight to the browser

SGTM. We now have networking on browser so I believe we can send wasm binaries from the container to the outside (e.g. other WebWorker)