[erlang-questions] STM vs Actor Model?

Bin Wang wbin00@REDACTED
Tue May 6 06:18:25 CEST 2014


I'm coming up with this idea with STM. Please see how about this
comparing to Erlang's way?

In Erlang, actors communicate through messages. That is, a request is
sent, and the actor do one of them at a time.

But in STM way, all requests could be done at the same time. And then
see if there are some conflicts. If so, undo and redo. It seems with
high performance and less annoying than locks.

So thinking about this kind of actor or object: it doesn't do only one
request in the same time. But it will treat its methods as
transactions. So multi processes to call its methods could be executed
in the same time and the actor/object will not be blocked in the most
of the time.

Bin Wang

More information about the erlang-questions mailing list