3 ms·
I've been studying C++ over 15+ years and still don't feel very productive thanks to the fear of getting paged every releases.
by summerlight 3y ago
I've been studying C++ over 15+ years and still don't feel very productive thanks to the fear of getting paged every releases.
- criddell 3y agoDoes Rust give guarantees around paging? Is Rust similar to C++ in that respect?
- summerlight 3y agoAt least you won't get paged due to some weird memory bugs. Yes, this happens quite frequently. Worse, it's usually not something local to a single change but interaction across seemingly safe changes.
- criddell 3y agoIs well written Rust code better with respect to paging than well written C++ code?
- brigadier132 3y agoRust code that compiles gives you certain guarantees that C++ code that compiles does not. The question isn't is well written code in one language better than well written code in another language. The question is, do I know this code is well written? In Rust you know, in C++ you don't without jumping through a bunch of other hoops.
- criddell 3y agoWhat I'm trying to get to is if the guarantees include better control over the heap and paging. Everybody wants to tell me C++ likely has bugs which I understand, but it's not what I'm asking about. Edit: I missed that the original person I responded to was talking about being paged when a problem arises and not about memory performance. I'm still curious though if Rust memory guarantees give the programmer better tools for dealing with memory paging.
- summerlight 3y agoAha, I should've mentioned that it's about getting paged on weekend...
- shepmaster 3y agoFWIW, I believe the person you are replying to means "paged" as in "an alert was sent to my pager at 3AM that the entire system is down and I need to wake up and fix it", not the paging in/out of memory.
- criddell 3y agoOh wow, I totally missed that. Thanks for clearing it up.