News for hackers. Stuff that matters.
Re:What it feels like when Rust saves your bacon by kevincox on Friday June 24, 2022 @02:35PM (#31867331)
> less time debugging

I would say it isn't even the debugging. As many of the C++ programmers here have said as you get good at C++ this becomes something that you are vigilant for and it rarely actually gets written. But just the lack of even needing to think about it is a huge load off my mind. When I used to write C++ I never really realized how vigilant I was. Every time I added code into the middle of a function I had to double check all of the lifetimes, every time I shorted the lifetime of a variable I had to search for it to the end of the function. Just not having to worry about this much really frees your mind for thinking about other things.

Re:What it feels like when Rust saves your bacon by blub on Friday June 24, 2022 @02:45PM (#31867502)
And what are you thinking about now?

For me it was what lifetimes and types to use to make my program work. Just as it was in C++, but with a static verification step at the end which most of the time got in my way.

Rust makes lots of sense in high-churn projects or projects which have very high security requirements (like browsers). Otherwise I’d think carefully about using it.

Re:What it feels like when Rust saves your bacon by dralley on Saturday June 25, 2022 @09:59AM (#31875350)
You had to think about lifetimes in C++, too, but in Rust at least they're written down and enforced.