3 ms·
> coordinated groups of Wasm envs too much overhead. The way that zap gets so fast as in the video is by decreasing overhead, minimizing coordination, and by
by dnautics 6y ago
> coordinated groups of Wasm envs
too much overhead. The way that zap gets so fast as in the video is by decreasing overhead, minimizing coordination, and by allocating on the stack instead of the heap for all allocations related to context switching. One could imagine a BEAM system where you create a custom allocator where FIRST you get allocations on the stack for the first X register refs, then later it reaches out to the heap. This would be blazingly fast for the 99% use case in elixir.
You're also generally going to have a hard time figuring out how to do this in rust, as I don't think it's so easy to mix stack and heap allocations into a single interface for rust.
- sitkack 6y ago> mix stack and heap allocations into a single interface for rust. I am not good enough at Rust to even discuss, let alone debate this. We can talk about things, Zig and Rust and then go up an abstraction level and talk about systems and communities, I believe both want to address this issue. I think it is more important to outline the problem and them to address it. The languages are just the reification of a philosophy.