Filesystem-oriented flags: sad, messy and not going away
Filesystem-oriented flags: sad, messy and not going away
Posted Mar 20, 2020 10:15 UTC (Fri) by jezuch (subscriber, #52988)In reply to: Filesystem-oriented flags: sad, messy and not going away by rvolgers
Parent article: Filesystem-oriented flags: sad, messy and not going away
The rich type system also means that there are a lot of generic functions taking traits as inputs, which are not "real" types. So either you have a lot of monomorphization ("instantiation" in terms of C++ templates) where you substitute real types for the parameters, or you have dynamic dispatch, which is, well, akin to uncoditional surrender. Forcing dynamic linking also forces the latter, and this has huge impact on performance, maybe as much as impeded inlining has.
(Disclaimer: I speak from theory, not practice, so I may be more than a little wrong :) )