ktock / container2wasm

Container to WASM converter

Home Page:https://ktock.github.io/container2wasm-demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accelerate docker wasm workloads

audiovention opened this issue · comments

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.

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)