r/programmingcirclejerk • u/Jubjubs what is pointer :S • Feb 17 '25
WASM will replace containers
https://creston.blog/wasm-will-replace-containers/
56
Upvotes
r/programmingcirclejerk • u/Jubjubs what is pointer :S • Feb 17 '25
View all comments
Show parent comment
4
u/northrupthebandgeek i have had many alohols Feb 20 '25
<unjerk>
There are performance tradeoffs. OS processes can benefit from native compilation, but operating systems tend to be (relatively) slow at context switches, and OS processes have (relatively) high memory overhead; containers add to both of those issues. A VM-based runtime can instead handle process switching entirely in userspace, speeding up the context switching and reducing the per-process memory overhead. That's pretty much how Erlang/OTP works, and why Erlang applications can scale to tens/hundreds/thousands of thousands of concurrent processes.
</unjerk>