WSGI Is Dead: Long Live WSGI Lite
dirtsimple.org
dirtsimple.org
Correct me if I'm wrong, but doesn't this mean that it's WSGI extra rather than WSGI lite? I mean, you don't generally consider the lite version of something to have the all the features of the full version and then some.
That being said, I've only briefly looked over the WSGI Lite code and neither advocate nor criticize its direction.
- Armin: "you can't replace the 'bad' bits of WSGI for asynchronous apps without using some python extension like greenlet"
- to which this article replies: "Armin is wrong, i've replaced WSGI! PS: if you're an asynchronous server you have to use greenlet!"
see 'known limitations'
basically, in trying to challenge armin he's proved him right. and he does this without a hint of irony?!
yup (though to conclude anything from that fact is a clear fallacy).
I've realised that what I actually disliked most was his blog-post and not the actual project (I've used identical shims to wsgi-lite by choice over the years).
"CAN'T REPLACE WSGI WITH SOMETHING BETTER? CHALLENGE ACCEPTED"
"WSGI IS DEAD" (Except when it isn't.)
I realise that the above was probably done for facetious editorial reasons rather than his actual intention with the lib. He hasn't really replaced wsgi, he admits should only be used wherever appropriate
Armin uses the async point in part to give technical reasons why WSGI can't really be replaced in full, before concluding that he thinks replacing WSGI for purported notions of pluggable utopia is a red-herring anyway before posing the question of any WSGI replacement: does this really '[make] frameworks work better with each other?'
I don't think PJ really tackles any of that.
This approach seems to take care of the 90% problem while leaving the full power of WSGI exposed if you want/need it. It's like a minimalist web framework to do just the smoothing over of the WSGI API and nothing else.
The backwards compatability is key: It can be adopted by application developers, and doesn't depend on server developers.
It may not have sprung into existence in a perfect form but I think it is definitely worth exploring this approach.
* Let's talk about WSGI - http://www.b-list.org/weblog/2009/aug/10/wsgi/
* Snakes on the web - http://jacobian.org/writing/snakes-on-the-web/
I don't really understand what is meant by this. Does this mean they want Django to interact with, say, Bottle?