3 ms·
Are WASM and containers not fundamentally different things? At their heart, modern containers are a clever way to create something that looks like a Linux VM w
by colonial 2y ago
Are WASM and containers not fundamentally different things?
At their heart, modern containers are a clever way to create something that looks like a Linux VM without the overhead of actual virtualization. Your application still executes "natively," just inside of a Potemkin environment (modulo whatever holes you poke in the veneer.) The latter bit is why we use containers.
WASM is a bytecode format. It doesn't carry around the environment it needs to execute correctly like a container does. In fact, it (by definition) needs an environment with certain properties (interpreter/JIT present) to work!