Re:Pony – High Performance Actor Programming
by Matthias247 on Sunday May 03, 2015 @06:41PM
(#9483376)
I guess the claim was that such an erlang actor would run forever when nobody sends it a message to stop it. And with pony it would be detected that the actor is no longer reachable and it would be automatically stopped.
Indeed, Pony can automatically detect actors with empty stacks and message queues, also when these are part of a cycle.
Erlang has something like that as well:
http://erldocs.com/17.3/erts/erlang.html#hibernate/3
Hibernate compresses the current memory, save it and then kill the active process. Then if a message is sent to it, it "wakes" up.
For arguments' sake here is what a simple Erlang actor looks like:
Maybe you can spawn it with: