3 ms·
> zero-cost multi-threading I think you mean zero cost abstractions. Which aren't usually zero cost, but just zero additional cost over doing it yourself. The
by eloff 6y ago
> zero-cost multi-threading
I think you mean zero cost abstractions. Which aren't usually zero cost, but just zero additional cost over doing it yourself.
There's no such thing as zero cost multi threading. Just tradeoffs. Rust actually doesn't help with performance here (it gets in the way often) but it definitely does help with correctness - which is truly hard with multi threaded programs.
- atonse 6y agoI mis-worded. I meant safe multi-threading using rust’s abstractions that make this a lot easier and guaranteed, and zero cost meaning no overhead. Is that not the case? maybe not the case with threading.