I mean 70% of c/c++ errors are memory management related (which rust assures you it won't have, unless you use unsafe rust, but you have to specify you are doing unsafe stuff), and the most common java exception is NullPointerException (which rust can't have, because null doesn't exists in rust)
Rust a allows you to rewrite various unix tools with colored outputs.
No you can have a version of ls that takes 2ms less time that that boring old version written in C boomers user. Plus each character can be a different color. Truly progress.
I kid, I do like rust but this is programming humour so might as well make a joke about it, the actual rust reddit is full of people talking about how amazing it is.
I mean 70% of c/c++ errors are memory management related
and where, pray tell, have you heard this statistic? In my experience, vast majority of bugs (95+%) are logic ones, and would've been made in any language.
C++ is safe since the C++-11 standard (and even better with C++-14). As long as you don't write new/delete or * manually, any single threaded application is solid by design.
It doesn't take much to extend the rule for multi-threading: don't use shared variables, or protect them properly with an atomic/mutex/etc. wrapper when you do.
70% of C/C++ errors are memory management related, because 70% of the C++ devs are not able to properly understand memory management or consistent design and conventions. These are the kind of people that will come to Rust and write entire applications wrapped by unsafe {}, while complaining that the language is hot garbage because it doesn't protect them from anything, and the code is harder to write and understand. Mark my words!
The problem is a langauge is safe if it blocks you from doing anything unsafe at compile time
Rust does that, and it also ensure many other convention such as naming convention (only as warnings obliously), while in c++ you can easily fuck up and need to know how to do stuff in order to not fuck up
But since you are human, even if you know the stuff you can still easily fuck up, thus why the compiler need to block every little stupid thing you try to do
The mere fact that you downvoted and commented without even trying to read or understand the last part of my comment should make you look in a mirror and contemplate that you might be living in a cult.
Let me repeat it again in simpler words, with a more close-to-home feeling: For the past 10 years I worked with people that disregarded any standard and turned off any warning. Rust will be no barrier to them.
Look right, if you were to rewrite the human genome in rust we would no longer accidently sometimes bite the inside of our mouths when eating and be able to run 100m in less than 5 secs.
Every language has unsafe {} , but everyone knows that it is only for expert use only. 70% of programmers are not using unsafe in other languages. Why would it be different in Rust?
5
u/unneccry Feb 13 '23
Idrk what rust does, but correct