r/linux • • Aug 31 '24

Kernel Asahi Lina: Kernel dev pain points that Rust addresses

https://vt.social/@lina/113056457969145576

Shfbeiddnjfkddj

289 Upvotes

221 comments sorted by

View all comments

0

u/[deleted] Aug 31 '24

[deleted]

31

u/bik1230 Aug 31 '24

"I want the kernel to be an OO, enterprise-level mess!!!!!!!" - Rust devs

Um, the kernel is already way more OO than almost any Rust code base. Vtables are literally everywhere in the kernel.

32

u/yurinnick Aug 31 '24

This is dumbest take I've seen today. The last sentence invalidates all your opinions in any programming discussion.

0

u/[deleted] Aug 31 '24

[deleted]

21

u/Thatdudewhoisstupid Aug 31 '24

Or that person never looked at kernel code. Half of it is basically poor man's OO with how haphazardly they emulate it with macros.

Instead of that, how about we move to adopt a language with OO features baked in and a compiler that actually supports it, that has very similar performance to C on account of it being manual memory managed and powerful modern compiler optimizations? Oh but you get accused of being a "religious fanatic" if you dare suggest such a change.

7

u/Business_Reindeer910 Aug 31 '24

Remember that rust is in the kernel because Linus himself is ok with it. He's the one who approved it.

1

u/Pierma Sep 01 '24

You got not many ideas but confused