BearPear@lemmy.world to LinuxEnglish · 1 年前Are there any advantages of using Rust instead of C in the Linux kernel?message-squaremessage-square33fedilinkarrow-up189arrow-down12file-text
arrow-up187arrow-down1message-squareAre there any advantages of using Rust instead of C in the Linux kernel?BearPear@lemmy.world to LinuxEnglish · 1 年前message-square33fedilinkfile-text
minus-squareHaugerud@discuss.tchncs.delinkfedilinkarrow-up12arrow-down1·1 年前You can use compile time polymorphism in C++ without any runtime performance cost.
minus-squareAnti-Antidote@lemmy.ziplinkfedilinkarrow-up1arrow-down6·1 年前Unfortunately, that’s not true
minus-squarecmeerw@programming.devlinkfedilinkarrow-up8·1 年前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.
minus-squarePipedLinkBot@feddit.rocksBlinkfedilinkEnglisharrow-up1arrow-down2·1 年前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.
You can use compile time polymorphism in C++ without any runtime performance cost.
deleted by creator
Unfortunately, that’s not true
The description says:
This is not about compile-time polymorphism.
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.