2 ms·
Dynamic dispatch is not terribly overloaded. It's dispatching based on run-time information instead of just compile-time information. The problem in this discu
by Jtsummers 5y ago
Dynamic dispatch is not terribly overloaded. It's dispatching based on run-time information instead of just compile-time information.
The problem in this discussion is that ukj has come to the belief (but communicated it poorly) that dynamic dispatch is somehow incompatible with static typing. And for some reason this also matters.
Static typing does not preclude dynamic dispatch, and despite being pointed to several mainstream languages that have both features, ukj decided to ignore reality or the common understanding of the phrase "dynamic dispatch" and produced this grotesque example of trying to communicate with an individual who is, apparently, just a troll. Feeding the troll, ukj, is probably the dumbest thing I did today, but I'll blame that on the insomnia reducing my ability to detect trolls.
- ukj 5y ago>Dynamic dispatch is not terribly overloaded. It's dispatching based on run-time information instead of just compile-time information. According to the above definition C++ does not have dynamic dispatch! The vtable in C++ is generated at compile time and used at runtime. It's immutable at runtime. That means it is NOT dynamic! https://en.wikipedia.org/wiki/Virtual_method_table#Comparison_with_alternatives https://en.wikipedia.org/wiki/Virtual_method_table#Compariso... "Virtual method tables also only work if dispatching is constrained to a known set of methods, so they can be placed in a simple array built at compile time." Like, I don't care how you use words, but you (and everyone) are using "dynamic" to speak about a statically-behaving system!
- ukj 5y agoYou've muddled your own thinking with the weasel word "incompatible". Living is not incompatible with dying if you do each at different times and you are doing type-checking and dynamic dispatch at different times. The "common understanding" doesn't even differentiate between the types of dynamic dispatch. My perspective is higher-fidelity than yours, yet you are trying to "correct my understanding". It's not troll-feeding - it's hubris.