News for hackers. Stuff that matters.
Re:Why is Rust slightly slower than C? by ncmncm on Thursday September 12, 2019 @02:06AM (#20948490)
One hopes that the optimizer has arranged to check the bounds at the start of the loop, and not in it. Apparently Rust's doesn't, yet, but it seems usually to happen to overlap the checking it does with other stalls, so it might not usually matter much.
Re:Why is Rust slightly slower than C? by kzrdude on Thursday September 12, 2019 @02:18AM (#20948558)
The actual bounds checking instructions are often negligible in terms of overhead, but it can inflict damage by inhibiting other optimizations and loop optimizations, like reduction or vectorization.
Re:Why is Rust slightly slower than C? by ncmncm on Thursday September 12, 2019 @02:26AM (#20948599)
Low-hanging fruit. But there are still bigger fish to fry.

Lower-hanging bigger fish?

Rust isn't mature yet. Give it ten years. It will either exceed C performance, or fade away. It's still too early to say which.

Re:Why is Rust slightly slower than C? by kzrdude on Thursday September 12, 2019 @10:59AM (#20952219)
What's the bigger things that need solving in Rust?
Re:Why is Rust slightly slower than C? by ncmncm on Saturday September 14, 2019 @03:32AM (#20969451)
Compile speed. Feature completeness. Tooling maturity.
Re:Why is Rust slightly slower than C? by kzrdude on Wednesday September 18, 2019 @04:24PM (#21009713)
Compile speed is the one I agree on, the others I haven't really run into.