[#14464] who uses Python or Ruby, and for what? — ellard2@...01.fas.harvard.edu (-11,3-3562,3-3076)

A while ago I posted a request for people to share their experiences

12 messages 2001/05/01

[#14555] Ruby as a Mac OS/X scripting language — Dave Thomas <Dave@...>

10 messages 2001/05/02

[#14557] Arggg Bitten by the block var scope feature!!! — Wayne Scott <wscott@...>

13 messages 2001/05/02

[#14598] Re: Arggg Bitten by the block var scope feature!!! — "Conrad Schneiker" <schneik@...>

# On Thu, 3 May 2001, Wayne Scott wrote:

9 messages 2001/05/03

[#14636] Yet another "About private methods" question — Eric Jacoboni <jacoboni@...2.fr>

I'm still trying to figure out the semantics of private methods in Ruby.

39 messages 2001/05/04
[#14656] Re: Yet another "About private methods" question — Dave Thomas <Dave@...> 2001/05/04

Eric Jacoboni <jaco@teaser.fr> writes:

[#14666] Ruby and Web Applications — "Chris Montgomery" <monty@...> 2001/05/04

Greetings from a newbie,

[#14772] Re: Ruby and Web Applications — Jim Freeze <jim@...> 2001/05/07

On Sat, 5 May 2001, Chris Montgomery wrote:

[#14710] Why's Ruby so slow in this case? — Stefan Matthias Aust <sma@3plus4.de>

Sure, Ruby, being interpreted, is slower than a compiled language.

12 messages 2001/05/05

[#14881] Class/Module Information — "John Kaurin" <jkaurin@...>

It is possible to modify the following code to produce

18 messages 2001/05/09

[#15034] Re: calling .inspect on array/hash causes core dump — ts <decoux@...>

>>>>> "A" == Andreas Riedl <viisi@chello.at> writes:

15 messages 2001/05/12

[#15198] Re: Q: GUI framework with direct drawing ca pabilities? — Steve Tuckner <SAT@...>

Would it be a good idea to develop a pure Ruby GUI framework built on top of

13 messages 2001/05/15

[#15234] Pluggable sorting - How would you do it? — "Hal E. Fulton" <hal9000@...>

Hello all,

16 messages 2001/05/16

[#15549] ColdFusion for Ruby — "Michael Dinowitz" <mdinowit@...2000.com>

I don't currently use Ruby. To tell the truth, I have no real reason to. I'd

12 messages 2001/05/22

[#15569] I like ruby-chan ... — Rob Armstrong <rob@...>

Ruby is more human(e) than Python. We already have too many animals :-).

15 messages 2001/05/23

[#15601] How to avoid spelling mistakes of variable names — ndrochak@... (Nick Drochak)

Since Ruby does not require a variable to be declared, do people find

13 messages 2001/05/23

[#15734] java based interpreter and regexes — "Wayne Blair" <wayne.blair@...>

I have been thinking about the java based ruby interpreter project, and I

48 messages 2001/05/25

[#15804] is it possible to dynamically coerce objects types in Ruby? — mirian@... (Mirian Crzig Lennox)

Greetings to all. I am a newcomer to Ruby and I am exploring the

13 messages 2001/05/27
[#15807] Re: is it possible to dynamically coerce objects types in Ruby? — matz@... (Yukihiro Matsumoto) 2001/05/27

Hi,

[#15863] Experimental "in" operator for collections — Stefan Matthias Aust <sma@3plus4.de>

There's one thing where I prefer Python over Ruby. Testing whether an

13 messages 2001/05/28

[#15925] Re: Block arguments vs method arguments — ts <decoux@...>

>>>>> "M" == Mike <mike@lepton.fr> writes:

43 messages 2001/05/29
[#16070] Re: Block arguments vs method arguments — "Hal E. Fulton" <hal9000@...> 2001/05/31

----- Original Message -----

[#16081] Re: Block arguments vs method arguments — Sean Russell <ser@...> 2001/05/31

On Thu, May 31, 2001 at 11:53:17AM +0900, Hal E. Fulton wrote:

[#16088] Re: Block arguments vs method arguments — Dan Moniz <dnm@...> 2001/05/31

At 11:01 PM 5/31/2001 +0900, Sean Russell wrote:

[#15954] new keyword idea: tryreturn, tryturn or done — Juha Pohjalainen <voidjump@...>

Hello everyone!

12 messages 2001/05/29

[ruby-talk:14906] Re: Ruby and Web Applications

From: "Benjamin J. Tilly" <ben_tilly@...>
Date: 2001-05-09 09:16:23 UTC
List: ruby-talk #14906
(ObNote: Can we tone it down a little?)

Todd Gillespie <toddg@linux127.ma.utexas.edu> wrote:
>MJ Ray <markj+comp.lang.ruby@cloaked.freeserve.co.uk> wrote:
>: You're missing the overheads from the compilation and lack of caching.
>: An app server app only has to be loaded once, rather than
>: reinterpreted each time the page is executed, and it can cache the
>: results of the intermediate stages.
>
>Umm.. no.  Overhead from compiliation is in my little table, under
>'compiled scripts'.  That's sort of the point of embedded scripting, and
>the primary difference from CGI.

I thought that the main point of embedded scripting is to
reduce startup costs such as launching a new process and
opening database connections.  That is the primary difference
from CGI, and those two items are the majority of the
performance boost that you can gain.  (They are not the be all
and end all of what you can do, of course.)

>Caching is in no way limited to application servers; I use caching all
>the time in Aolserver, which we would best describe as an embedded Tcl
>scripting webserver.
>
>I think we are either using different terminology or you are unfamiliar
>with this problem domain.

I think that you are reading what he wrote uncharitably.  Read
his next paragraph:

>: Although embedded scripting can work around these, it usually doesn't.
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>: If it's built into the framework of a good app server, you get them
>: every time.

He is well aware of the fact that you *can* make embedded
scripting avoid compilation and caching.  He is saying that
usually they don't.  And that is a claim I have to admit to
agreeing with.  For instance in the mod_perl world people
tend to take CGI scripts and use Apache::Registry to speed
them up rather than write real mod_perl handlers.

This is a worthwhile thing to do because you can reuse
database connections and you don't have to launch processes.
However you still compile the script on each request, and
you have no opportunity for caching.  To get those you need
to write real handlers.  But many people don't, and don't
understand that there is a difference to them mod_perl is
mod_perl.

(For those who don't know this area, mod_perl uses an
embedded Perl interpreter in Apache to serve the request.
A mod_perl handler is just a function written in Perl that
is run in Apache, often returning a page like you would
from a CGI script.  Apache::Registry provides a generic
handler that will execute specified CGI scripts by evaling
them into the current process.)

>And we need the overhead of an app server rather than a good
>implementation of embedded Ruby, why, exactly?

You make it sound like these are mutually exclusive
options.  I don't think they are.

There is no reason that both cannot exist.  Furthermore
in practice I don't think there is much of a gap between
Apache with mod_* (written with real handlers) and an
application server.  I don't know Aolserver (though I
know just enough that when you say "Aolserver" and "TCL"
I think, "Ars Digita") but I would expect the same could
be said for it.

If things are done right, I see no reason that expecting
projects to be portable between a webserver with embedded
scripting and a dedicated application server to be
substantially different from supporting two different
webservers with embedded scripting.  If there *is* a major
difference, then the application server is the one that
will probably lose.  (Because the most widely used platform
is probably going to be Apache with mod_ruby.)

Cheers,
Ben

In This Thread

Prev Next