BearPear@lemmy.world to Linux@lemmy.mlEnglish · 1 year agoAre there any advantages of using Rust instead of C in the Linux kernel?message-squaremessage-square22fedilinkarrow-up13arrow-down10file-text
arrow-up13arrow-down1message-squareAre there any advantages of using Rust instead of C in the Linux kernel?BearPear@lemmy.world to Linux@lemmy.mlEnglish · 1 year agomessage-square22fedilinkfile-text
minus-squareHaugerud@discuss.tchncs.delinkfedilinkarrow-up0·1 year agoYou can use compile time polymorphism in C++ without any runtime performance cost.
minus-squareAnti-Antidote@lemmy.ziplinkfedilinkarrow-up0arrow-down1·1 year agoUnfortunately, that’s not true
minus-squarecmeerw@programming.devlinkfedilinkarrow-up1·1 year agoThe 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.
You can use compile time polymorphism in C++ without any runtime performance cost.
Unfortunately, that’s not true
The description says:
This is not about compile-time polymorphism.