News for hackers. Stuff that matters.
Re:The cost of dynamic vs. static dispatch in C++ (2013) by adrusi on Saturday February 28, 2015 @06:31PM (#9125451)
Because c++'s type system doesn't make it possible to determine the actual implementation in most cases. Concepts would allow rust-style monomorphization, but they aren't part if the standard yet.
Re:The cost of dynamic vs. static dispatch in C++ (2013) by kazinator on Saturday February 28, 2015 @08:30PM (#9125688)
None of this matters if you create the "flexible joints" in the right places, where you get the benefit of dispatch, without making hundreds of millions of calls per second to it.