3 ms·
Of course a fiber/green threads based solution would be easier to use, but Rust is supposed to provide zero cost abstractions for concurrency: Maximum performan
by ha_jo_331 6y ago
Of course a fiber/green threads based solution would be easier to use, but Rust is supposed to provide zero cost abstractions for concurrency: Maximum performance and efficiency (and safety) coming first, usability second. THat is perfectly fine.
Whereas others (Go for example) sacrifice some efficiency and performance to ergonomics.
- jedisct1 6y agoIs it still zero cost if the price to pay is a steep increase of code complexity? The current model also still requires a lot of boxing and cloning, so it is far from being “zero cost” as advertised.
- steveklabnik 6y ago> Is it still zero cost if the price to pay is a steep increase of code complexity? Yes, because the "cost" in "zero-cost" only refers to runtime cost.