Author ncoghlan
Recipients Tilka, ncoghlan, sbt
Date 2013-05-21.13:43:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369143808.32.0.181040486938.issue17140@psf.upfronthosting.co.za>
In-reply-to
Content
No, I mean implementing communicating sequential processes with independent state machines passing messages to each other. There aren't necessarily any fixed request/reply pairs. Each actor has a "mailbox", which is a queue that you dump its messages into. If you want a reply, you'll include some kind of addressing info to get the answer back rather than receiving it back on the channel you used to send the message.

For threads, the addressing info can just be a queue.Queue reference for your own mailbox, for multiple processes it can either be multiprocessing queue, or any other form of IPC.

It's a very different architecture from that assumed by futures, so you need to drop down to the pool layer rather than using the executor model.
History
Date User Action Args
2013-05-21 13:43:28ncoghlansetrecipients: + ncoghlan, sbt, Tilka
2013-05-21 13:43:28ncoghlansetmessageid: <1369143808.32.0.181040486938.issue17140@psf.upfronthosting.co.za>
2013-05-21 13:43:28ncoghlanlinkissue17140 messages
2013-05-21 13:43:28ncoghlancreate