▲ 87 ▼ Are there any advantages of using Rust instead of C in the Linux kernel? (lemmy.world) submitted 3 years ago by BearPear@lemmy.world to c/linux@lemmy.ml 41 comments fedilink hide all child comments Will there be performance and security improvements?
[–] Haugerud@discuss.tchncs.de 11 points 3 years ago (2 children) You can use compile time polymorphism in C++ without any runtime performance cost. permalink fedilink source parent hideshow 4 child comments replies: [–] PuppyOSAndCoffee@lemmy.ml 0 points 3 years ago Compile time has got to be part of the convo esp when it comes to the kernel. The Linux kernel is one of the few bits where end-users are actively encouraged to compile from source. It is a feature! Adding C++ compilitis is pain for what gain, from a kernel pov. I am not a big fan of c++ overall however that is because other languages have emerged that are sweeter than C that gate some of the people issues with C++. Anyone who has ever had a thing that was like a thing but not exactly the thing, in C, knows C ain’t great at that. permalink fedilink source parent [–] anti_antidote@lemmy.zip -5 points 2 years ago (2 children) Unfortunately, that's not true permalink fedilink source parent hideshow 4 child comments replies: [–] cmeerw@programming.dev 8 points 2 years ago The description says: In this video, we'll do a deep dive on what C++ Polymorphism is, what "virtual" does under the hood, and ultimately why it is SUCH a performance hit compared to languages like C and Rust. This is not about compile-time polymorphism. permalink fedilink source parent [–] PipedLinkBot@feddit.rocks [B] -1 points 2 years ago Here is an alternative Piped link(s): https://piped.video/watch?v=aq365yzrTVE Piped is a privacy-respecting open-source alternative frontend to YouTube. I'm open-source, check me out at GitHub. permalink fedilink source parent
[–] PuppyOSAndCoffee@lemmy.ml 0 points 3 years ago Compile time has got to be part of the convo esp when it comes to the kernel. The Linux kernel is one of the few bits where end-users are actively encouraged to compile from source. It is a feature! Adding C++ compilitis is pain for what gain, from a kernel pov. I am not a big fan of c++ overall however that is because other languages have emerged that are sweeter than C that gate some of the people issues with C++. Anyone who has ever had a thing that was like a thing but not exactly the thing, in C, knows C ain’t great at that. permalink fedilink source parent
[–] anti_antidote@lemmy.zip -5 points 2 years ago (2 children) Unfortunately, that's not true permalink fedilink source parent hideshow 4 child comments replies: [–] cmeerw@programming.dev 8 points 2 years ago The description says: In this video, we'll do a deep dive on what C++ Polymorphism is, what "virtual" does under the hood, and ultimately why it is SUCH a performance hit compared to languages like C and Rust. This is not about compile-time polymorphism. permalink fedilink source parent [–] PipedLinkBot@feddit.rocks [B] -1 points 2 years ago Here is an alternative Piped link(s): https://piped.video/watch?v=aq365yzrTVE Piped is a privacy-respecting open-source alternative frontend to YouTube. I'm open-source, check me out at GitHub. permalink fedilink source parent
[–] cmeerw@programming.dev 8 points 2 years ago The description says: In this video, we'll do a deep dive on what C++ Polymorphism is, what "virtual" does under the hood, and ultimately why it is SUCH a performance hit compared to languages like C and Rust. This is not about compile-time polymorphism. permalink fedilink source parent
[–] PipedLinkBot@feddit.rocks [B] -1 points 2 years ago Here is an alternative Piped link(s): https://piped.video/watch?v=aq365yzrTVE Piped is a privacy-respecting open-source alternative frontend to YouTube. I'm open-source, check me out at GitHub. permalink fedilink source parent