Re:WebAssembly: Docker Without Containers
by zozbot234 on Wednesday December 21, 2022 @06:56AM
(#34079488)
Docker containers will still be far more efficient than something which has to be interpreted in a VM. The real advantage of WASM/WASI is architecture independence - and perhaps some kind of trusted verification of proof assertions in the code, which would of course be easier in a VM compared to trying to verify actual binary assembly.
[ Parent
| on HN ]
Re:WebAssembly: Docker Without Containers
by MrJohz on Wednesday December 21, 2022 @07:29AM
(#34079804)
Wasm doesn't need to be interpreted, it's designed to be compatible with streaming compilers to produce machine code as the file is being downloaded, which can then be optimised more completely later on. In a Docker-like situation, I would imagine that you can skip the first compilation step altogether and just generate optimised code.
I suspect that still won't be as optimal as if you'd compiled the application for the target architecture in the first place, but I would suspect for most applications the performance will be relatively negligible.