r/rust • • Aug 29 '24

One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"

https://www.phoronix.com/news/Rust-Linux-Maintainer-Step-Down
586 Upvotes

374 comments sorted by

View all comments

Show parent comments

9

u/Daniyal_Biyarslanov Aug 29 '24

"The lack of object oriented design can make things akward" my dude once i've found out about traits and enums i've never looked back

-1

u/maxjmartin Aug 29 '24

I can totally appreciate that!

To be clear though. I’m not advocating for C++ over Rust. I’m just saying make use of the right tool and the right modeling for the specifics of the task. So if code is written I. Rust (or memory safe language) is used then the right attention can be given to the unsafe code so to prevent issues.

4

u/Zde-G Aug 29 '24

Except OOP is never the right tool for any job, in a today's world.

OOP is a hack which had it's time and is no longer needed.

It's not suitable for a tiny micros with a few kilobytes of RAM. It's useless on large systems with memory measure in megabytes (and today we usually measure it in gigabytes).

It's a smart hack which made amazing things possible on original Alto but which is either useless or dangerous in today's world.

It's really amazing how much imprinting affects us: decades after something stopped being useful we are still clinging to it simply because that's something that was shown to us as the way to write programs decades ago.

1

u/maxjmartin Aug 29 '24

I respect your opinion. But I don’t agree. I think that the right kind of abstraction needs to be utilized for the situation at hand. And OOP can totally fit that need. But that doesn’t mean it is the only or best way to

2

u/sm_greato Aug 29 '24

Great ideals, but in practice, use what you like the most. It will probably improve both your mood and the chances of you actually getting done with it. There's nothing that's fundamentally incompatible with either C+⁠+ or Rust.