Announcement
Collapse
No announcement yet.
Git Developers Discuss The Possibility Of Beginning To Use Rust Code
Collapse
X
-
Originally posted by bug77 View PostAnd here is a really interesting, yet little talked about aspect:
This is how I think Rust will displace C in a decade or two: there will simply be no more programmers that will spend the time needed to learn C, when they can do 99% the same things in Rust.
- Likes 5
Comment
-
-
Originally posted by bug77 View Post
Not really. There was something merged that will compile Rust... but it doesn't have a borrow checked. Thus, it will happily compile things that rustc would reject.
- Likes 2
Comment
-
Originally posted by Weasel View PostDark days ahead of new breed of bad "programmers" unfortunately.
Why have seat belts, stability control or even doors?
We're all 100% pros here, every day, every minute, in every situation.
Yeah, talk like a true buffoon to me, you know you want to.
Oh, wait, I have another new word for you: hubris.Last edited by reba; 13 January 2024, 03:42 PM.
- Likes 15
Comment
-
@Michael: in addition to the "Like" button, can we please have an "Unlike" (or don't like, or disagree) button for others' comments? This isn't Facebook.
Personally, if the kernel is going to get infected with another language, I'd strongly prefer Rust over C++. Without reading 100% of the code, you just can't read a page of C++ code and be absolutely sure what it means. Not so with Rust, and that's important for kernels.
- Likes 13
Comment
-
Originally posted by Weasel View PostDark days ahead of new breed of bad "programmers" unfortunately.
C comes from an era when the compiler (and CPUs) could only do so much. Today, they can do much more, including offering crutches for some of the more dangerous pitfalls. Of course, Rust has still to prove itself in some ways. But wherever it has been tried so far, it has done so pretty well. So, without taking anything away from C, why do you think it's a good idea to dismiss Rust?
- Likes 5
Comment
-
I once attempted to multithread the SDL rendering of Cataclysm: Dark Days Ahead. It's forbidden to add such a feature because everybody hates to maintain a multithreaded C++ codebase but goddamnit I want to zoom-out the screen on my 6 year old phone.
Sure was painful to do and it ended up slower than the single-threaded version because I peppered everything with mutexes - no easy way to tell if a class is thread safe or not.
If it were instead written in Rust, we'd have access to the Sync/Send traits and no one will complain about the maintenance burden because the compiler itself will help with the checking.
- Likes 11
Comment
Comment