[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

A standard like WSGI for Ruby?

rubyfan

9/22/2006 1:11:00 AM

There's a perennial discussion on Reddit about the strengths of Python vs Ruby.

there was mention of WSGI as a web-app standard on Python. here's the quote:

"That's the point, it is a language-wide standard that has been
adopted by the community officialy. It makes it trivial to make a web
application that supports WSGI to run on any server that runs on WSGI.
In Ruby, you look at something like Mongrel and it has to explicitly
add Rails, Camping, Nitro support. In Python, if a server is WSGI,
anything that supports WSGI will run on it. Some frameworks, like
Pylons, have incorporated it throughout the stack to make it trivial
to swap put template systems, ORMs, you name it. Rubyists would do
best to check it out; while it is a very simple standard, it is very
empowering to the web development community. That's why you see so
many frameworks in Python, because frankly they are rather easy to put
together."

Could Ruby benefit from an internal standard like this?

6 Answers

Devin Mullins

9/22/2006 2:04:00 AM

0

Phil Tomson wrote:
> In Ruby, you look at something like Mongrel and it has to explicitly
> add Rails, Camping, Nitro support. In Python, if a server is WSGI,
> anything that supports WSGI will run on it.
Well, part of that is mindshare. Consider that the Nitro, IOWA authors
wrote the Mongrel adapters themselves (for the most part). In this case
you could call the Mongrel API the Ruby version of WSGI.

> Some frameworks, like
> Pylons, have incorporated it throughout the stack to make it trivial
> to swap put template systems, ORMs, you name it.
Yeah, that's my (limited) understanding of where WSGI shines. In Ruby,
OTOH, there need to exist m*n adapters between m view libraries and n
controller libraries. I dunno... big whoop. The adapters are, like, 3
lines of code, and there isn't a heck of a lot of demand for Amrita (as
in, not erb) as *is*.

> That's why you see so
> many frameworks in Python, because frankly they are rather easy to put
> together.
Not true. WSGI arose *because* of the so many frameworks, and the
pro-Rails argument that "we don't have to waste time choosing a stack."

> Could Ruby benefit from an internal standard like this?
Muh... I dunno. No?

Devin

khaines

9/22/2006 5:45:00 AM

0

Logan Capaldo

9/22/2006 1:43:00 PM

0

On Fri, Sep 22, 2006 at 02:44:32PM +0900, khaines@enigo.com wrote:
> On Fri, 22 Sep 2006, Devin Mullins wrote:
>
> >Well, part of that is mindshare. Consider that the Nitro, IOWA authors
> >wrote the Mongrel adapters themselves (for the most part). In this case
> >you could call the Mongrel API the Ruby version of WSGI.
>
> At the end of the day, the IOWA/Mongrel integration is a trivial thing,
> and something like WSGI could hardly make it easier than it already is
> without imposing design decisions on me.
>
I think that was exactly Devin's point. (Is that it's so trivial, Ruby
doesn't need such a standard.)

khaines

9/22/2006 1:47:00 PM

0

Logan Capaldo

9/22/2006 1:55:00 PM

0

On Fri, Sep 22, 2006 at 10:46:32PM +0900, khaines@enigo.com wrote:
> On Fri, 22 Sep 2006, Logan Capaldo wrote:
>
> >>At the end of the day, the IOWA/Mongrel integration is a trivial thing,
> >>and something like WSGI could hardly make it easier than it already is
> >>without imposing design decisions on me.
> >>
> >I think that was exactly Devin's point. (Is that it's so trivial, Ruby
> >doesn't need such a standard.)
>
> Yeah. I was trying to support his point with my example. :)
>
I'm glad this whole thread is people agreeing!
>
> Kirk Haines

M. Edward (Ed) Borasky

9/22/2006 2:07:00 PM

0

Logan Capaldo wrote:
> On Fri, Sep 22, 2006 at 10:46:32PM +0900, khaines@enigo.com wrote:
>> On Fri, 22 Sep 2006, Logan Capaldo wrote:
>>
>>>> At the end of the day, the IOWA/Mongrel integration is a trivial thing,
>>>> and something like WSGI could hardly make it easier than it already is
>>>> without imposing design decisions on me.
>>>>
>>> I think that was exactly Devin's point. (Is that it's so trivial, Ruby
>>> doesn't need such a standard.)
>> Yeah. I was trying to support his point with my example. :)
>>
> I'm glad this whole thread is people agreeing!
>> Kirk Haines
>
>
Yes ... I agree

Hey -- a new Rejected Ruby Book Title!!

Ruby Don't Need No Stinkin' WSGI