News for hackers. Stuff that matters.
Re:Performance of Rust Language [pdf] by nicoburns on Tuesday May 26, 2026 @07:01AM (#48278006)
A little slower but safe is a pretty good default I think. Most of the time you're not in a hot loop and even a 5% slowdown would be negligable.

And in the cases where you are in a hot loop you just have to put in a little extra effort to optimise it and gain the performance back, either by writing the code in a way that allows the compiler to prove correctness (e.g. using an iterator or assert), or by using the unsage keyword to "pinky-promise" to the compiler that your usage is correct.

IME that extra effort in performance-critical places almost always ends up being a lot less than the effort needed to avoid correctness/safety issues in mundane boilerplate/glue/plumbing code in C++.

Especially as Rust's package management system means that often you don't even have to do that optimisation work yourself: you can just pull in a crate that's done it for you (and Rust's safety guarantees make that a much less scary thing to do than it is in C++)

Re:Performance of Rust Language [pdf] by edevrk on Tuesday May 26, 2026 @07:19AM (#48278160)
Your comment is at odds with the submission and lots of comments here.

Did you generate your comment using LLM?

> negligable

Negligible.

Re:Performance of Rust Language [pdf] by nicoburns on Tuesday May 26, 2026 @07:50AM (#48278431)
> Did you generate your comment using LLM?

(It was hand written. Typos and all.)