Re:Announcing Rust 1.0
by blake_himself on Friday May 15, 2015 @05:54PM
(#9553912)
> Will Rust always be faster than C?
(By 'always' did you mean 'ever'?)
That may be so, but their advertising gives the wrong impression. They should keep their claims muted until they can back them up.
If you consider that robust and memory efficient parallelization is way more easily achieved in Rust than in C, Rust might already win today for some applications if you limit the developer time. In C it's hard to fulfill the requirements at all.
The Rust language offers low-level access with amazing security guarantees, and is working on an optimizing toolchain.
Let me take Python as a comparison. It has fundamental[1] roadblocks for being fast on current and probably future hardware, because its dynamic nature requires many indirections which are problematic for CPU cache efficiency.
Will Rust always be faster than C? Probably not, but that is not needed to be blazingly fast. What is important is that there are no fundamental difficulties to be as fast as C.
[1] I know, you can work around some of those indirections.