On Tue, Dec 30, 2008 at 12:52 PM, Aaron Brady <[email protected]> wrote: > On Dec 29, 7:40 pm, "James Mills" <[email protected]> > wrote: >> On Tue, Dec 30, 2008 at 11:34 AM, Aaron Brady <[email protected]> wrote: >> > The OP may be interested in Erlang, which Wikipedia (end-all, be-all) >> > claims is a 'distribution oriented language'. > snip >> I'm presently looking at Virtual Synchrony and >> other distributed processing architectures - but >> circuits is meant to be general purpose enough >> to fit event-driven applications/systems. > > I noticed a while ago that threads can be used to simulate > generators. 'next', 'send', and 'yield' are merely replaced by > synchronizor calls (coining the term). > > Not the other way around, though, unless the generator guarantees a > yield frequently. 'settrace' anyone?
Aaron, circuits doesn't use generators :) What did your comment have to do with this ? I have often seen generators used to facilitate coroutine and coooperative programming though. cheers James -- http://mail.python.org/mailman/listinfo/python-list
