News for hackers. Stuff that matters.
Re:Await in Rust by pcwalton on Monday August 12, 2019 @05:44PM (#20680364)
As I've always said, you can use CSP in Rust. Just use threads and channels. They work great, and they even scale well on Linux to all but the absolute most demanding workloads. If you want a Go-like M:N scheduler, we've got that too: use mioco.

CSP as implemented in languages like Go is just threads, but with an idiosyncratic implementation.

Re:Await in Rust by ngrilly on Wednesday August 14, 2019 @04:21AM (#20693638)
> they even scale well on Linux to all but the absolute most demanding workloads

What about the stack size? I guess the default is about 4 MB, compared to a few kB in Erlang or Rust. This implies a virtual memory usage 100x or 1000x higher. I understand the unused virtual pages in each stack will never be mapped to physical memory, but isn't this putting a lot of pressure on the virtual memory system? I'd be curious to read a real world benchmark on this topic.