Hello,
Weren’t method calls originally referred to as messages in SmallTalk?
The problem is not message passing, but the complete absence of type safety
when doing so. It is quite ironic that it is developed in part by a company
called “TypeSafe”.
As it is, you can send any object to any actor, no matter how absurd it may
be. The compiler will never catch sending the wrong object. Thanks to the
robustness of Akka, a completely wrong object may not even cause much noise
during runtime. If you intended to send a case class and forgot the constructor
arguments, it will just send the companion object instead, with typically
puzzling consequences.
I am very happy to hear that typed actors are planned for Akka 3.
Best, Oliver
From: [email protected] [mailto:[email protected]] On Behalf
Of Akka Team
Sent: Friday, November 21, 2014 9:12 AM
To: Akka User List
Subject: Re: [akka-user] Use TypedActor or something else
Hello Vladimir,
The typed actors in 2.x are not the best solution and introduce some overhead
on invoking them.
In general you should accept the fact that the network is message based anyway
and it's more powerful to express things as messages (you reason about messages
then),
instead of hiding them under "what looks like a method".
If you're wondering if we're going to remove the current typed actors from 2.x,
the answer is no - they're still useful (mostly as integration point with
legacy code though).
We're aiming to reimplement typed actors to be proper and included in Akka 3,
but that's a long time ahead of us yet (1+ year).
--
Konrad
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
To post to this group, send email to
[email protected]<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
***********************************************************************************************************************
This email message and any attachments are intended solely for the use of the
addressee. If you are not the intended recipient, you are prohibited from
reading, disclosing, reproducing, distributing, disseminating or otherwise
using this transmission. If you have received this message in error, please
promptly notify the sender by reply email and immediately delete this message
from your system. This message and any attachments may contain information that
is confidential, privileged or exempt from disclosure. Delivery of this message
to any person other than the intended recipient is not intended to waive any
right or privilege. Message transmission is not guaranteed to be secure or free
of software viruses.
***********************************************************************************************************************
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.