News for hackers. Stuff that matters.
Re:Five Years of Rust by empath75 on Friday May 15, 2020 @08:16PM (#23199083)
Yeah it’s definitely around using clones everywhere.
Re:Five Years of Rust by masklinn on Saturday May 16, 2020 @07:24AM (#23202541)
I don't know that clones are problems in and of themselves rather than what they do behind the scenes: allocations. Cloning an Rc is completely innocent, cloning a HashMap<String, Vec<String>> is deadly in a way you may not expect if you're used to shallow-copying hashmaps (or even deep-copying them).

And it's true that if you think of allocations as being no big deal unless you're aiming for very high performance, your Rust is going to be slow (also your C++ and your C).