From: Stefan <[EMAIL PROTECTED]>
Date: Sat, 18 Nov 2006 13:13:34 +0100


Am 18.11.2006 um 12:53 schrieb Theodore H. Smith:

On Nov 17, 2006, at 15:41 UTC, Richard Hillsdon wrote:

In other words, instead of writing my scripts in PHP or Perl
etc., I
want to write them as a command line RB project. That way I am not
having to keep switching between languages and can re-use lots
of my
code.

OK, it sounds like you want to make CGIs. That's pretty easy to do;
you just make a command-line RB app that parses out the request
headers, does its work, and prints the result to stdout

At this point I'd ask regarding performance considerations. For
example
PHP and other languages are available as FastCGIs. How about RB?

Any performance data available?

Use ElfData if you want a fast CGI. It's perfectly suited for this
sort of thing!

But ElfData doesn't transform an RB CGI into a FastCGI? I suppose you
mean, that
your plugin speeds up the whole application. Right?

It's good for processing strings.

Let's say you want to dynamically generate some strings. Well ElfData has the FastString class which will really help with that.

HTML is all about string generation, after all.

No, it won't transform an RB CGI into a FastCGI, that's totally out of my scope :)

RB would make a great "fast cgi" thing though! What with it's compiled RBScripts. All you need to do is cache the RBScripts so they don't get recompiled. Unfortunately, RBScript doesn't work with ElfData :( (or anything external). Unless you want to wrap common ElfData functions, especially my FastString class.

--
http://elfdata.com/plugin/



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to