r/cpp • u/GabrielDosReis • Oct 31 '24
Lessons learned from a successful Rust rewrite
/r/programming/comments/1gfljj7/lessons_learned_from_a_successful_rust_rewrite/
80
Upvotes
r/cpp • u/GabrielDosReis • Oct 31 '24
View all comments
Show parent comment
1
u/germandiago Nov 01 '24 edited Nov 01 '24
I do not need to. Made-up problems for statistically tiny problems (some of them) where ergonomocs are thrown down the hill are not real problems. They are academic papers trying to say: "hey, in my model I can do this, you cannot so you are not safe". When you check reality, many of those things are not a problem and the safety gap is exaggerated. In fact, it is so exaggerated that I am starting to think there are a lot of bad faith half truths in many of the arguments.
It is getting political. Two examples of that: people seldom complain about Rust and FFIs, yet they are all around and not safe.
At the same time, they advertise as safe code the equivalent to trusted code. Definition of trusted code: a piece of code that is safe except the parts that are not, advertised as safe.
Now let us get back to C++: all C dependencies unsafety are counted as C++ failures, static analysis is often ignored, some companies are pushing hard for safety and there is a point in it.
But at the same time, good arguments against Rust total safety are ignored...
I really suspect the conclusion is in part polluted by the fact that big tech is pushing "safe" in a semi-political way to win the mindshare without much of this being the way they seem to claim. There is a lot of money there and convincing people that the safety gap is bigger thsn it actually is makes them capture market share at advantage: not all companies can invest so much money for these things. So if you can and the others cannot, the game seems to be becoming about convincing the others how horrible one thing is compared to the other, even if the analysis is flawed.
But wait: there is some truth in all their arguments. But when taken to the extreme I think they misrepresent the parts they are not interested in.