Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Brian Smith
Manlio Perillo wrote: > Brian Smith ha scritto: > > We already have standard mechanisms for doing something > > similar in WSGI: multi-threaded and multi-process WSGI > > gateways that let applications block indefinitely while > > letting other applications run. > > Ok, but this is not the best so

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Graham Dumpleton
On 07/03/2008, Manlio Perillo <[EMAIL PROTECTED]> wrote: > Moreover with an asynchronous gateway it is possible to implement a > "middleware" that can execute an application inside a thread. > > This is possible by creating a pipe, starting a new thread, having the > main thread polling the pip

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Graham Dumpleton
On 06/03/2008, Manlio Perillo <[EMAIL PROTECTED]> wrote: > But I have to say that: > > 1) the asynchronous model is the "right" model to use to develope > robust and scalable applications (expecially in Python). No it isn't. It is one model, it is not necessarily the 'right' model. The asyn

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Graham Dumpleton
On 07/03/2008, Brian Smith <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > Anyway, WSGI 2.0 currently talks about returning a single > > tuple containing status, headers and iterable. What if it > > actually optionally allowed the response to itself be an > > iterable, such that you co

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Manlio Perillo
Brian Smith ha scritto: > > [...] > > That idea doesn't really benefit Manlio's programs. Manlio's program is > trying to say "use my thread for some other processing until some > (external) event happens." Right. > We already have standard mechanisms for doing > something similar in WSGI: mu

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Brian Smith
Graham Dumpleton wrote: > This following idea may not make much sense, but baby keeping > me up, its 4am and I am probably not going to get back to > sleep until I get this idea out of my head now. :) I think you need to have a serious discussion with the baby. Maybe if she got a job she wouldn'

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Manlio Perillo
Phillip J. Eby ha scritto: > At 01:11 PM 3/6/2008 +0100, Manlio Perillo wrote: >> Manlio Perillo ha scritto: >> > [...] >> > >> > I'm not sure that having two standards is the best solution, since it >> > will complicate the implementation of a WSGI middleware. >> >> A correction: it should be WSGI

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Graham Dumpleton
On 07/03/2008, Brian Smith <[EMAIL PROTECTED]> wrote: > Manlio Perillo wrote: > > Brian Smith ha scritto: > > > Manlio Perillo wrote: > > >> Fine with me but there is a *big* problem. > > >> > > >> WSGI 2.0 "breaks" support for asynchronous applications (since you > > >> can no more send head

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Phillip J. Eby
At 01:11 PM 3/6/2008 +0100, Manlio Perillo wrote: >Manlio Perillo ha scritto: > > [...] > > > > I'm not sure that having two standards is the best solution, since it > > will complicate the implementation of a WSGI middleware. > >A correction: it should be WSGI gateway and not WSGI middleware. On

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Brian Smith
Manlio Perillo wrote: > Brian Smith ha scritto: > > Manlio Perillo wrote: > >> Fine with me but there is a *big* problem. > >> > >> WSGI 2.0 "breaks" support for asynchronous applications (since you > >> can no more send headers in the app iter). > > > > WSGI 1.0 doesn't guarentee that all asynch

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Manlio Perillo
Manlio Perillo ha scritto: > [...] > > I'm not sure that having two standards is the best solution, since it > will complicate the implementation of a WSGI middleware. A correction: it should be WSGI gateway and not WSGI middleware. Manlio Perillo

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Manlio Perillo
Lawrence Oluyede ha scritto: >> No, you are wrong. >> WSGI *allows* an implementation to develope extensions. >> >> I'm complaining that WSGI 2.0 will break support for truly-async web apps. > > Correct me if I'm wrong. WSGI is great on paper and almost great in > daily use. One of this peculia

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Lawrence Oluyede
> No, you are wrong. > WSGI *allows* an implementation to develope extensions. > > I'm complaining that WSGI 2.0 will break support for truly-async web apps. Correct me if I'm wrong. WSGI is great on paper and almost great in daily use. One of this peculiarities in the "middleware extension pat

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Manlio Perillo
Phillip J. Eby ha scritto: > At 09:37 AM 3/6/2008 +1100, Graham Dumpleton wrote: >> You probably need to explain the second half of that sentence a bit >> better. From memory the WSGI 1.0 specification says that for an >> iterable, the headers should be sent upon the generation of the first >> non

Re: [Web-SIG] ngx.poll extension (was Re: Are you going to convert Pylons code into Python 3000?)

2008-03-06 Thread Manlio Perillo
Graham Dumpleton ha scritto: > Let me get this right. You are complaining that the WSGI 2.0 would > break your non standard extension which was never a part of the WSGI > 1.0 specification to begin with. > No, you are wrong. WSGI *allows* an implementation to develope extensions. I'm complaining