Re: c reactor / gordon's examples

2015-01-26 Thread Alan Conway
On Mon, 2015-01-19 at 13:57 -0500, Rafael Schloming wrote: On Mon, Jan 19, 2015 at 11:52 AM, Alan Conway acon...@redhat.com wrote: On Wed, 2015-01-14 at 08:28 -0500, Rafael Schloming wrote: Hi Everyone, I've been doing some work on a C reactor API for proton that is intended to

Re: c reactor / gordon's examples

2015-01-26 Thread Rafael Schloming
On Mon, Jan 26, 2015 at 9:43 AM, Alan Conway acon...@redhat.com wrote: On Mon, 2015-01-19 at 13:57 -0500, Rafael Schloming wrote: On Mon, Jan 19, 2015 at 11:52 AM, Alan Conway acon...@redhat.com wrote: On Wed, 2015-01-14 at 08:28 -0500, Rafael Schloming wrote: Hi Everyone,

Re: c reactor / gordon's examples

2015-01-19 Thread Rafael Schloming
My intention is to support a variety of scenarios for I/O. I believe it is a key requirement that we can create sockets/fds in either python or C and regardless of where they are created, they need to be serviceable by a single I/O loop written either buy us or by others in C or in pure python. (I

Re: c reactor / gordon's examples

2015-01-19 Thread Alan Conway
On Wed, 2015-01-14 at 08:28 -0500, Rafael Schloming wrote: Hi Everyone, I've been doing some work on a C reactor API for proton that is intended to fit both alongside and underneath what gordon has been doing in pure python. I have several goals with this work. - Simplify/enable a

Re: c reactor / gordon's examples

2015-01-19 Thread Rafael Schloming
On Mon, Jan 19, 2015 at 11:52 AM, Alan Conway acon...@redhat.com wrote: On Wed, 2015-01-14 at 08:28 -0500, Rafael Schloming wrote: Hi Everyone, I've been doing some work on a C reactor API for proton that is intended to fit both alongside and underneath what gordon has been doing in

Re: c reactor / gordon's examples

2015-01-16 Thread Gordon Sim
On 01/16/2015 08:06 AM, Flavio Percoco wrote: One thing that I did want to mention (and forgot, obviously) is that for things like non-blocking IO, we want to make sure the API works well not just with eventlet but also with asyncio[0]. Also, it'd be worth taking a look at how the Twisted[1]

Re: c reactor / gordon's examples

2015-01-15 Thread Gordon Sim
On 01/14/2015 01:28 PM, Rafael Schloming wrote: Hi Everyone, I've been doing some work on a C reactor API for proton that is intended to fit both alongside and underneath what gordon has been doing in pure python. I have several goals with this work. - Simplify/enable a reactive style of

Re: c reactor / gordon's examples

2015-01-15 Thread Flavio Percoco
On 14/01/15 08:28 -0500, Rafael Schloming wrote: Hi Everyone, I've been doing some work on a C reactor API for proton that is intended to fit both alongside and underneath what gordon has been doing in pure python. I have several goals with this work.  - Simplify/enable a reactive style of

Re: c reactor / gordon's examples

2015-01-14 Thread Darryl L. Pierce
On Wed, Jan 14, 2015 at 08:28:50AM -0500, Rafael Schloming wrote: snip import sys reactor = Reactor(Program()) reactor.acceptor(0.0.0.0, 5672) reactor.connection(Client(localhost:5672, sys.argv[1:])) reactor.run() I like the simplicity of how a simple app can be setup. The above can be

c reactor / gordon's examples

2015-01-14 Thread Rafael Schloming
Hi Everyone, I've been doing some work on a C reactor API for proton that is intended to fit both alongside and underneath what gordon has been doing in pure python. I have several goals with this work. - Simplify/enable a reactive style of programming in C that is similar to what gordon has