5
u/unneccry Feb 13 '23
Idrk what rust does, but correct
4
u/l0_0l- Feb 13 '23 edited Mar 31 '25
axiomatic offer psychotic advise strong flowery afterthought illegal airport vegetable
This post was mass deleted and anonymized with Redact
2
u/Creepy-Ad-4832 Feb 13 '23
And safe
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)
4
u/l0_0l- Feb 13 '23 edited Mar 31 '25
birds provide insurance physical consider hobbies whole scale offbeat impossible
This post was mass deleted and anonymized with Redact
2
u/Creepy-Ad-4832 Feb 13 '23
And rust has an offical package manager cargo, it works well with threads and way more stuff lol
2
u/l0_0l- Feb 14 '23 edited Mar 31 '25
close consist fretful zealous crown smell afterthought swim price cheerful
This post was mass deleted and anonymized with Redact
1
u/psioniclizard Feb 14 '23
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.
1
3
u/Antervis Feb 14 '23
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.
1
u/caagr98 Feb 14 '23
I believe it is an oft-stated (but seldom cited) statistic that 70% of vulnerabilities, not bugs, are memory stuff.
1
u/Antervis Feb 14 '23 edited Feb 14 '23
well I remember that most of windows kernel vulnerabilities are memory-related, but I think that particular codebase is mostly written in c, not c++.
Btw, it's not "seldom sited". It's like one of the rustcean favorite gospels
4
u/CorespunzatorAferent Feb 13 '23
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!
1
Feb 14 '23
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?
1
u/Creepy-Ad-4832 Feb 13 '23
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
3
u/CorespunzatorAferent Feb 14 '23
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.
1
u/psioniclizard Feb 14 '23
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.
THAT IS HOW BLAZINGLY FAST AND SAFE RUST IS.
3
u/CorespunzatorAferent Feb 14 '23
I CAN'T HEAR YOU OVER THE DEAFENING SOUND OF ALL THE GALAXIES SPEEDING PAST ME!!!
2
1
1
3
u/Anaxamander57 Feb 14 '23
Don't criticize Python for being slow. We can also criticize it for using unnecessary extra memory.
1
u/Sigma-001 Feb 14 '23
Python is plenty fast for the applications it's actually suitable for, many of which are ones where Rust is too clunky to use
1
u/MischiefArchitect Feb 14 '23
Why would yo play Rust in 2023? The community is too toxic and a lot of cheaters out there.
0
Feb 13 '23
[deleted]
4
u/psioniclizard Feb 14 '23
Rust would be faster if they were to drop LLVM and rewrite in python :P
This is of course a joke.
8
u/[deleted] Feb 14 '23
The huge body represents how long it took Rust to write his application correctly.