Running compiled Lisp code from command line; using LISP for CGI programming 
Author Message
 Running compiled Lisp code from command line; using LISP for CGI programming

I just  don't want to use another server. We have several servers running
at school here and I wanted to show it to others that it's possible
to write CGI programs in Lisp withouht the hastle of installing
another server. I know Perl somewhat well and it happens to
be a big language, especially Perl 5. But, it is being used
by almost everyone for CGI scripting at this time. Common Lisp,
which is superior in terms of functionality  may be a good
scirpting language if it could be used.

Jugal

----------------------------------------------------

Subject: Re: Running compiled Lisp code from command line; using LISP for CGI
+        programming
Date: Tue Oct 07 12:32:10 EDT 1997
Organization: USC-ISI
Lines: 22
X-Newsreader: Gnus v5.3/Emacs 19.34

Quote:

> 2) USING LISP TO CREATE CGI SCRIPTS:
>       I also want to use Lisp for CGI scripts. I have used
>       Perl quite a bit for CGI programming, but I am not
>       sure how to go about doing so with Lisp. I don't
>       want to use the CL-HTTP server available from MIT.

I'm curious why you don't want to use the MIT CL-HTTP server.  It
provides a nice integration of lisp with HTTP and has the bonus of being
faster than CGI scripts, in part because there is no process start-up
overhead in responding to computed pages.  That is because the functions
are already present in the server itself, rather than being invoked as
separate processes.  I imagine that this process start-up overhead will
be even worse for anything that first has to start up an entire lisp job
before processing.

In answer to your actual question, I would imagine that you should be
able accomplish your immediate goal once you get a command line
invocation of lisp code functional.  Unfortunately I don't know anything
about GCL, so I'll have to leave that to others.



Sun, 26 Mar 2000 03:00:00 GMT  
 Running compiled Lisp code from command line; using LISP for CGI programming

Quote:

>I just  don't want to use another server. We have several servers running
>at school here and I wanted to show it to others that it's possible
>to write CGI programs in Lisp withouht the hastle of installing
>another server. I know Perl somewhat well and it happens to
>be a big language, especially Perl 5. But, it is being used
>by almost everyone for CGI scripting at this time. Common Lisp,
>which is superior in terms of functionality  may be a good
>scirpting language if it could be used.

As far as stand-alone scripting, there is probably more work being
done in Scheme than in CL. SIOD works real well, but I think that
there are folks using most of the major implementations out there.

Plus there are several versions of Scheme that will compile into C.

In essence, they are doing what folks here are saying to do with Lisp,
but several of the Scheme's support the shells #! syntax directly.
SIOD also comes in a DLL for working on the Gates Of Hell's systems.

I imagine scsh would fit in here as well.

No, Scheme is not CL, but its closer than Perl is, and seems to
be more of a focus for scripters right now.

So, if none of the Lisp solutions suit you, you may want to look at
its baby brother.

--

1990 VFR750 - VFR=Very Red    "Ho, HaHa, Dodge, Parry, Spin, HA! THRUST!"
1993 Explorer - Cage? Hell, it's a prison.                    -D. Duck



Mon, 27 Mar 2000 03:00:00 GMT  
 Running compiled Lisp code from command line; using LISP for CGI programming


Quote:

> I just  don't want to use another server. We have several servers running
> at school here and I wanted to show it to others that it's possible
> to write CGI programs in Lisp withouht the hastle of installing
> another server. I know Perl somewhat well and it happens to
> be a big language, especially Perl 5. But, it is being used
> by almost everyone for CGI scripting at this time. Common Lisp,
> which is superior in terms of functionality  may be a good
> scirpting language if it could be used.

SIOD is an obvious choice.

The biggest issue otherwise maybe startup time. If
you have CLISP in main memory, it might be fast enough.

Other option: take a Lisp do a connection via
CGI to a running Lisp.

Another option: compile a Lisp library, so that you can link
it against the web server, or load it via some server
extension mechanism.

--
http://www.lavielle.com/~joswig/



Tue, 28 Mar 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Running compiled Lisp code from command line; using LISP for CGI programming

2. running non-compiled LISP from the command-line?

3. Running Koza's GP1 Lisp code on Common Lisp

4. Running Koza's GP1 Lisp code on Common Lisp

5. Lisp code that writes non-lisp code

6. Lisp,LIsp,LISp,LISP...

7. Lisp,LIsp,LISp,LISP...

8. can LISP be used with CGI??

9. Sun Common Lisp command line info needed

10. Running Rexx programs from command line with 2.1 Workbench installed

11. Lisp Based Machine Code (Simulators) [was Re: Lisp Machines]

12. Lisp Based Machine Code (Simulators) [was Re: Lisp Machines]

 

 
Powered by phpBB® Forum Software