3 ms·
It's funny you should say that. I have the exact opposite intuition: message passing is substantially slower than method calls, especially statically bound meth
by barrkel 17y ago
It's funny you should say that. I have the exact opposite intuition: message passing is substantially slower than method calls, especially statically bound method calls in a statically typed, compiled language.
You're right that message passing is a different way of looking at things; but obviously it's something different to method calls. Delegation, for one thing, is much easier with message passing, as are other strategies, like default implementations, remoting (never mind how poorly RPC scales), etc. On the other hand, getting two objects to communicate over a private channel can be more awkward, as they need to share pre-arranged references, rather than simply being friends / package / internal visibility, or similar visibility override.
- arethuza 17y agoYeah, to me "message" makes me think of very heavy duty systems like MQ.