Re:The Elegance of Deflate
by barrkel on Monday August 22, 2016 @06:40AM
(#12335330)
Rust's abstractions are only zero cost if you're looking in the wrong place for your costs. The Result / try! stuff in particular I would be very surprised if it is faster than a good exception approach, for example, particularly the happy path. It's amortised throughout though, while different exception throwing mechanisms have dramatically different performance, so people's intuitions aren't reliable.
I like Rust a lot. Zero costs is not a reason though; my reason is no GC and not as bad as C or C++.
I like Rust a lot. Zero costs is not a reason though; my reason is no GC and not as bad as C or C++.