Re: Lisp and Web Programming



> > only exists because writing a fast cGI bridge requires C programming
> > anyway; unless the bridge is written in LISP.
>
> apache modules are de facto standards: mod_php, mod_perl, mod_gzip,
> etc.
>

Apache is just one particular web server implemented in C for posix
systems. There are many others supporting CGI. I don't want to
recompile Apache just to write a web application in Common Lisp.


> if you really really must use CGI and want it to be fast you could
> write a mod_lisp.cgi program, this would be a trivial C program which
> reads from **env and translates this into the mod_lisp wire protocol.
>

CGI in common lisp is faster than CGI in C: C cannot load memory image,
Lisp can. And more powerful, of course, I can do with data whatever I
want before sending it to the stateful long-running application (if
needed). Besides, I don't want to program in C just to write a web
application in Common Lisp.

My CGIs in Common Lisp are fast and poweful, when they need, they
connect to a stateful framework. No C, Python, Perl, Java involved.
Works with any web server. What's wrong with that?

And yes, I wrote some half million lines in C in my life, rolled out a
few Python and Perl web applications, and am behind at least one big
commercial successful product in Java. But I don't see any reason to
add anything of it to the mix when I program my web applications in
lisp (which I do for 10 years now, in various lisp dialects, albeit
only for a few months in Common Lisp).

David

.



Relevant Pages

  • Re: How to run perl cgi under TomCat server?
    ... some PERL cgi programming. ... AKAIK, Tomcat is a servlet container, not a web server. ... What I have is called Apache Tomcat server. ... How you configure a web server to run CGI scripts is a feature of the ...
    (comp.lang.perl.misc)
  • Re: Whats with "long running processes" ?
    ... extension modules for apache. ... FWIW, when apache is configured to use mod_python, it starts a first python interpreter process at startup, then some more python "sub-interpreters" when needed, according to your configuration. ... most basic way to deliver dynamic content from a web server like apache is to use CGI - which means that on each http request, ... CGI or mod_python - but the first solution is very inefficient, and the second is not really appropriate for shared hosting given how mod_python works. ...
    (comp.lang.python)
  • Re: Web host has PHP 5 "as a module"...whats that?
    ... The Apache web server can process a scripting language in two different ... crash Apache -- CGI isolates the interpreter as a separate process, ... itself for every request. ...
    (comp.lang.php)
  • Re: Database Security Issues
    ... > Could you elaborate on how you'd do this on an ISP's web server ... With apache it seem that suexec is the way to go (and thus introducing ... new problems like running php as cgi, but the enhanced per user security ...
    (comp.lang.php)
  • Re: Password protection system for web app
    ... Depends on what the web server is, ... let Apache do both the authentication and the directory browsing. ... Doing HTTP authentication yourself with CGI has problems. ... and remove the default error page for 403, or auth won't work. ...
    (comp.lang.python)