Rust code has memory leaks as well, memory leaks are considered safe, also in Rust.
Announcement
Collapse
No announcement yet.
Rust-Written Replacement To GNU Coreutils Progressing, Some Binaries Now Faster
Collapse
X
-
C is just a broken old language.
- Likes 3
Comment
-
Originally posted by BesiegedAce View PostThere is a certain irony to you whining about language choice and then beating the tired drum of "cancel culture". Anyone sane can understand what is meant by the title.
- Likes 13
Comment
-
Originally posted by kylew77 View PostI will need to see benchmarks of any language being faster than C that is not named machine code or assembly. I find it VERY hard to believe that any Rust language program can beat a pure C language program. I have some friends that are die hard Rust fans and I don't see the point in learning it when I already know C and C++. Throw in a bit of shell scripting, Perl Scripting, and good old C and you can write an entire OS!
- Likes 1
Comment
-
Originally posted by sdack View PostOne could have spent the time to improve GNU Coreutils performance if there is an opportunity to do so. So instead of giving back to the GNU Coreutils, which people have been using for decades, are the GNU Coreutils instead used to make a show.
Frankly, not giving back, but instead making it into some sort of cancel culture is pathetic.
FWIW, I don't love coreutils. Never have. It's too crufty, but it gets the job done. The way I see it, at least this project is providing equivalent functionality in a more modern codebase, where someone could more easily experiment with better metadata formats and data processing modalities. It might shock you to learn that this 25-year veteran of the bash shell doesn't love bash scripting, either. We can do better.
- Likes 10
Comment
-
Originally posted by JellyBrain View PostBut doesn't the Coreutils inherntly need to use unsafe code in rust (because it's directly interacting with the operating system)?
It doesn't gain the advantage of rust's memory safety, right?
Or is it still reduces the amount of unsafe code they use, and they still gain it on all the other code?
I am really asking, I don't know if my assumption is correct.
- Likes 2
Comment
-
Originally posted by MadCatX View PostA proof of what exactly? ...Last edited by sdack; 29 January 2022, 04:10 PM.
- Likes 2
Comment
-
As an aside: UNIX and C have aged astonishingly well. More than 50 years old! How often does that even happen, in the tech world?
And they're not done, yet! But, when have we ever collectively decided the following?
"No, that technology is perfect. Don't improve it further."
Never. Technology isn't a closed system. Advancements in one area feed on advancements in another. When C was developed, computers didn't have the horsepower for a language like Rust to be feasible. Now they do. Without specifically backing Rust, the whole tenor of this discussion just sounds oblivious to the basic fact that advancement is an innate characteristic of technology.
- Likes 11
Comment
-
Originally posted by kylew77 View PostI will need to see benchmarks of any language being faster than C that is not named machine code or assembly. I find it VERY hard to believe that any Rust language program can beat a pure C language program. I have some friends that are die hard Rust fans and I don't see the point in learning it when I already know C and C++. Throw in a bit of shell scripting, Perl Scripting, and good old C and you can write an entire OS!
- Rust's strict aliasing rules allow it to use optimisations that are difficult or impossible in C by essentially automatically inferring const or volatile pointers
- On a somewhat related topic, the Rust compiler does a better job at autovectoring code
- Compared specifically to C++, Rust can elide bounds checks in many cases and still remain safe. In C++ you must either use [] and ensure safety manually, or use at() and have the penalty every time
- Rust, being higher level than C, makes it easier to implement more efficient algorithms
- Rust makes it much, much easier than C to parallelise your code
It's not a silver bullet and your mileage may vary like in any language, including C. The main point in learning Rust when coming from C though is not so much performance but provability.
- Likes 5
Comment
Comment