Re: [Web-SIG] yield considered harmful (was: x-wsgiorg.flush)

2007-10-05 Thread Phillip J. Eby
At 01:07 PM 10/6/2007 +1000, René Dudfield wrote: >I think 'streaming' is good for speeding up web pages when processing >takes a while. > >I'll explain why... > >Say your page takes 0.2 seconds to process. > >If you wait until 0.2 seconds is up, then the first bytes that will >come to the browser

Re: [Web-SIG] yield considered harmful (was: x-wsgiorg.flush)

2007-10-05 Thread René Dudfield
I think 'streaming' is good for speeding up web pages when processing takes a while. I'll explain why... Say your page takes 0.2 seconds to process. If you wait until 0.2 seconds is up, then the first bytes that will come to the browser will arrive in at least 0.2 seconds. Whereas if you send d

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Phillip J. Eby
At 10:13 PM 10/5/2007 +0100, Robin Bryce wrote: >That's to much chicken/egg for my tastes. All you are really saying is >that the CGI model covers the majority of 'common' use cases. I don't >know of anyone who would disagree with this. But as things stand all >wsgi-ish implementations which aim to

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Robin Bryce
On 05/10/2007, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 05:34 PM 10/5/2007 +0100, Robin Bryce wrote: > >Is there a means to support a non blocking read on wsgi.input ? > > No. Some ideas have been proposed, but nobody has shown a practical > scenario where it is useful. > > For it to be usef

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Phillip J. Eby
At 07:38 PM 10/5/2007 +0200, Manlio Perillo wrote: >Phillip J. Eby ha scritto: > > I still don't see how this is *useful*. What will the application *do* > > with this information? > >As an example (not tested) SQLAlchemy can implements a >RequestSingletonPool, that is the equivalend of ThreadSing

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Manlio Perillo
Phillip J. Eby ha scritto: > At 05:14 PM 10/5/2007 +0200, Manlio Perillo wrote: >> Phillip J. Eby ha scritto: >> > At 12:41 PM 10/5/2007 +0200, Manlio Perillo wrote: >> >> Phillip J. Eby ha scritto: >> >> > In other words, those flags were to support legacy frameworks >> detecting >> >> > that the

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Phillip J. Eby
At 05:34 PM 10/5/2007 +0100, Robin Bryce wrote: >Is there a means to support a non blocking read on wsgi.input ? No. Some ideas have been proposed, but nobody has shown a practical scenario where it is useful. For it to be useful, you would have to have an asynchronous server that is interleav

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Phillip J. Eby
At 05:14 PM 10/5/2007 +0200, Manlio Perillo wrote: >Phillip J. Eby ha scritto: > > At 12:41 PM 10/5/2007 +0200, Manlio Perillo wrote: > >> Phillip J. Eby ha scritto: > >> > In other words, those flags were to support legacy frameworks detecting > >> > that they were in an incompatible hosting envir

Re: [Web-SIG] yield considered harmful (was: x-wsgiorg.flush)

2007-10-05 Thread Phillip J. Eby
At 11:57 AM 10/5/2007 -0300, Rob De Almeida wrote: >Phillip J. Eby wrote: >>I mean that you can't write a WSGI 2.0 application using a single >>generator function, because it has to return a tuple, not an >>iterator. This will discourage people from thinking "yield" is a >>good way to build up

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Robin Bryce
On 04/10/2007, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 05:54 PM 10/4/2007 +0200, Manlio Perillo wrote: > >Phillip J. Eby ha scritto: > > > At 04:48 PM 10/4/2007 +0200, Manlio Perillo wrote: > > >> Phillip J. Eby ha scritto: > > >> > It's always the case that a WSGI application can be paused

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Manlio Perillo
Manlio Perillo ha scritto: > Ian Bicking ha scritto: >> [...] >>> Ok, here is more useful definition. >>> >>> If wsgi.asynchronous evaluates to true, then the WSGI application >>> *will* be executed into the server main process cycle and thus the >>> application execution *will* be interleaved (s

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Manlio Perillo
Ian Bicking ha scritto: > [...] >> Ok, here is more useful definition. >> >> If wsgi.asynchronous evaluates to true, then the WSGI application >> *will* be executed into the server main process cycle and thus the >> application execution *will* be interleaved (since this is the only >> way to su

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Ian Bicking
Manlio Perillo wrote: > Phillip J. Eby ha scritto: >> At 12:41 PM 10/5/2007 +0200, Manlio Perillo wrote: >>> Phillip J. Eby ha scritto: In other words, those flags were to support legacy frameworks detecting that they were in an incompatible hosting environment. However, IIUC, there

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Manlio Perillo
Phillip J. Eby ha scritto: > At 12:41 PM 10/5/2007 +0200, Manlio Perillo wrote: >> Phillip J. Eby ha scritto: >> > In other words, those flags were to support legacy frameworks detecting >> > that they were in an incompatible hosting environment. However, IIUC, >> > there is no such existing frame

[Web-SIG] yield considered harmful (was: x-wsgiorg.flush)

2007-10-05 Thread Rob De Almeida
Phillip J. Eby wrote: > I mean that you can't write a WSGI 2.0 application using a single > generator function, because it has to return a tuple, not an > iterator. This will discourage people from thinking "yield" is a > good way to build up their output, instead of using a StringIO or > ''.j

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Phillip J. Eby
At 12:41 PM 10/5/2007 +0200, Manlio Perillo wrote: >Phillip J. Eby ha scritto: > > In other words, those flags were to support legacy frameworks detecting > > that they were in an incompatible hosting environment. However, IIUC, > > there is no such existing framework that could meaningfully use t

Re: [Web-SIG] [extension] x-wsgiorg.flush

2007-10-05 Thread Phillip J. Eby
At 12:36 PM 10/5/2007 +0200, Manlio Perillo wrote: >Phillip J. Eby ha scritto: > > [...] > > Yep, but another argument in favor of getting rid of as much > > statefulness from the protocol as we can. Making the status and headers > > part of the return value entirely eliminates the question of whe

Re: [Web-SIG] WSGI 2.0

2007-10-05 Thread Manlio Perillo
Phillip J. Eby ha scritto: > At 07:53 PM 10/4/2007 +0200, Manlio Perillo wrote: >> Phillip J. Eby ha scritto: >> > At 06:58 PM 10/4/2007 +0200, Manlio Perillo wrote: >> >> But why you are against adding a new environ value (not necessary >> named >> >> wsgi.asynchronous), that will explicitly stat

Re: [Web-SIG] [extension] x-wsgiorg.flush

2007-10-05 Thread Manlio Perillo
Phillip J. Eby ha scritto: > [...] > Yep, but another argument in favor of getting rid of as much > statefulness from the protocol as we can. Making the status and headers > part of the return value entirely eliminates the question of when > they're going to get written, and whether they can be

Re: [Web-SIG] NOOO! Another web framework

2007-10-05 Thread Chris Withers
DiPierro, Massimo wrote: > here are some unique features: > 1) full web based development, deployment and management of applications, no > more shell commands (unless you want them) Good. Zope seems to have moved away from this, which is a shame... > 2) built-in ticketing system to report bugs t