Re:To Save C, We Must Save ABI
by pjmlp on Thursday August 13, 2026 @05:41AM
(#49283607)
Except that to keep objc_msgSend performance good enough with Objective-C dispatch semantics, a little bit of pure Assembly code help is required.
[ Parent
| on HN ]
well, I wasn't implying full semantics. Or fast, to be honest. Still could be faster than vtable though...
Sure enough.
Going back to the technical implementation part, depending on the C++ version, and being able to understand the target at compile time, no need to do it manually and hacky.
There is enough support in constexpr, consteval, concepts, and now compile time reflection, to do it automatically, assuming the dispatch target can be resolved at compile time.