Originally posted by NobodyXu
View Post
Announcement
Collapse
No announcement yet.
Rust For Linux Kernel v9 Patches Trim Things Down Greatly For Easier Upstreaming
Collapse
X
-
Originally posted by mdedetrich View Post
Do note that there are multiple definitions of "zero cost". One is that it is literally free (as is with the case of exceptions, exceptions are "free" as long as you never catch them) where as the other is "for the abstraction you are opting into which in this case is vtables/OO, the implementation is as efficient as possible". C++ generally follows the latter definition of "zero cost", so its not that OO is free but rather their implementation of OO is as fast as you can get.
The definition in of-itself is a bit loose when you deal with compiler optimisations as you noted.
- Likes 1
Comment
Comment