Primetalk / SynapseGrid

SynapseGrid is a framework for constructing dynamic low latency data flow systems.
Other
124 stars 8 forks source link

Scalaz Actors #3

Closed sirinath closed 10 years ago

sirinath commented 10 years ago

Hi,

Is it possible to also add support for Scalaz Actors alongside Akka and they are much faster. Also consider including Scalaz IO when released.

Also general Scalaz and type level support is welcome.

Suminda

Primetalk commented 10 years ago

I'm afraid, I do not master Scalaz Actors yet. So it is not in the nearest future. If you have some implementation you may send a pull request. We'd then had a synapse-grid-scalaz-actors jar.

As for being the fastest, I guess that native concurrency (synapse-grid-concurrent) can be more appropriate for running SynapseGrid, also I haven't done extensive performance tests yet.

Also If you look at Scalaz Actor's signature, you'll see that it has no output (A=>Unit). Whereas intention of SynapseGrid is to make outgoing connection explicit and observable.

sirinath commented 10 years ago

But Akka actors do this through Any => Unit which ends with Unit also or am I missing something?

sirinath commented 10 years ago

Some info on performance:

https://github.com/plokhotnyuk/actors (some perfomance tests, Scalaz actors are 2x or more faster than Akka)

http://stackoverflow.com/questions/5997018/whats-the-difference-between-the-different-actors-implementation-in-scala

Perhaps you can re open this though you might not want to work on it immediately.