Re: A newbie start...

Richard Newman <[email protected]> Thu, 5 Oct 2006 16:24:35 +0100
Newsgroups gmane.lisp.web
Message-ID <[email protected]>
--===============8129421019416679522==
Content-Type: multipart/alternative; boundary=Apple-Mail-2--781434838


--Apple-Mail-2--781434838
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=WINDOWS-1252;
	delsp=yes;
	format=flowed

When you use Perl, PHP, or C to serve pages, you're using CGI (or =20
similar features in Apache).

Apache receives HTTP requests, and starts up the Perl script to =20
generate a page.

It's possible to do something similar with Lisp; search for "mod_lisp".

However, most Lisp web applications get rid of Apache from this  =20
equation. The Lisp application handles the entire HTTP request; you =20
don't tear down the application between requests any more than you =20
restart Apache each time you serve a page.

Both Araneida and (Portable) AllegroServe provide complete web =20
stacks; run Lisp, load them, start a server, and it'll start handling =20=

requests.

You can, if you wish, run your Lisp application behind Apache, but =20
this is only really worthwhile if you wish to use Apache to serve =20
other pages. There are other solutions, too; see http://apsis.ch/=20
pound and THTTPD.

Furthermore, if you want to do something PHP-like (i.e., a single =20
page mixing HTML and code), try

<http://www.google.com/search?q=3Dlisp-server-pages>

-R

On  5 Oct 2006, at 2:14 PM, Andre Camargo Fernandes wrote:

> Hi,
>
> I am new to Lisp, I did read some Lisp books but none of those =20
> explained how to develop and serve LISP Web Pages. I=B4ve seen there=20=

> =B4s the araneida project, but I am a lot lost yet.
>
> Is there a tutorial on developing web pages in lisp (I mean, for =20
> programmers of other languages, rather than for Lisp hackers)? I =20
> wanna try Lisp at my webpages and maybe at work too, I use PHP, =20
> perl and C/C++ right now, so I already know about web programming =20
> but I could not create a Lisp program, except when running inside =20
> Lisp environment (what was not bad, but not what I needed), so how =20
> could I create a Lisp Web page, compile it and run it in a server =20
> (Apache, for example).
>
> Actually I work with =93Lisp in a box=94 with CLisp in windows.
>
> Is there a way to compile a lisp program to run outside the lisp =20
> environment?
>
>
>
> Thanks in advance for any answer,
>
> Andre.
>
>
>
> PS: I am sorry for my poor writing English, I hope it is not too bad.
>
> _______________________________________________
> lispweb mailing list
> [email protected]
> http://www.red-bean.com/mailman/listinfo/lispweb


--Apple-Mail-2--781434838
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=WINDOWS-1252

<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; ">When you use Perl, PHP, or C to =
serve pages, you're using CGI (or similar features in Apache).<DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Apache receives HTTP =
requests, and starts up the Perl script to generate a =
page.</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>It's =
possible to do something similar with Lisp; search for =
"mod_lisp".</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>However, most Lisp web =
applications get rid of Apache from this=A0 equation. The Lisp =
application handles the entire HTTP request; you don't tear down the =
application between requests any more than you restart Apache each time =
you serve a page.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Both Araneida and =
(Portable) AllegroServe provide complete web stacks; run Lisp, load =
them, start a server, and it'll start handling requests.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>You can, if you wish, run =
your Lisp application behind Apache, but this is only really worthwhile =
if you wish to use Apache to serve other pages. There are other =
solutions, too; see <A =
href=3D"http://apsis.ch/pound">http://apsis.ch/pound</A> and =
THTTPD.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Furthermore, if you want to =
do something PHP-like (i.e., a single page mixing HTML and code), =
try</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>&lt;<A =
href=3D"http://www.google.com/search?q=3Dlisp-server-pages">http://www.goo=
gle.com/search?q=3Dlisp-server-pages</A>&gt;</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>-R</DIV><DIV><BR><DIV><DIV>On=
=A0 5 Oct 2006, at 2:14 PM, Andre Camargo Fernandes wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"> <DIV =
class=3D"Section1"><P class=3D"MsoNormal"><FONT size=3D"2" =
face=3D"Arial"><SPAN lang=3D"EN-US" style=3D"font-size: =
10.0pt;font-family:Arial">Hi,<O:P></O:P></SPAN></FONT></P><P =
class=3D"MsoNormal"><FONT size=3D"2" face=3D"Arial"><SPAN lang=3D"EN-US" =
style=3D"font-size: 10.0pt;font-family:Arial">I am new to Lisp, I did =
read some Lisp books but none of those explained how to develop and =
serve LISP Web Pages. I=B4ve seen there=B4s the araneida project, but I =
am a lot lost yet. <O:P></O:P></SPAN></FONT></P><P =
class=3D"MsoNormal"><FONT size=3D"2" face=3D"Arial"><SPAN lang=3D"EN-US" =
style=3D"font-size: 10.0pt;font-family:Arial">Is there a tutorial on =
developing web pages in lisp (I mean, for programmers of other =
languages, rather than for Lisp hackers)? I wanna try Lisp at my =
webpages and maybe at work too, I use PHP, perl and C/C++ right now, so =
I already know about web programming but I could not create a Lisp =
program, except when running inside Lisp environment (what was not bad, =
but not what I needed), so how could I create a Lisp Web page, compile =
it and run it in a server (Apache, for example). =
<O:P></O:P></SPAN></FONT></P><P class=3D"MsoNormal"><FONT size=3D"2" =
face=3D"Arial"><SPAN lang=3D"EN-US" style=3D"font-size: =
10.0pt;font-family:Arial">Actually I work with =93Lisp in a box=94 with =
CLisp in windows. <O:P></O:P></SPAN></FONT></P><P =
class=3D"MsoNormal"><FONT size=3D"2" face=3D"Arial"><SPAN lang=3D"EN-US" =
style=3D"font-size: 10.0pt;font-family:Arial">Is there a way to compile =
a lisp program to run outside the lisp =
environment?<O:P></O:P></SPAN></FONT></P><P class=3D"MsoNormal"><FONT =
size=3D"2" face=3D"Arial"><SPAN lang=3D"EN-US" style=3D"font-size: =
10.0pt;font-family:Arial"><O:P>=A0</O:P></SPAN></FONT></P><P =
class=3D"MsoNormal"><FONT size=3D"2" face=3D"Arial"><SPAN lang=3D"EN-US" =
style=3D"font-size: 10.0pt;font-family:Arial">Thanks in advance for any =
answer,<O:P></O:P></SPAN></FONT></P><P class=3D"MsoNormal"><FONT =
size=3D"2" face=3D"Arial"><SPAN lang=3D"EN-US" style=3D"font-size: =
10.0pt;font-family:Arial">Andre.<O:P></O:P></SPAN></FONT></P><P =
class=3D"MsoNormal"><FONT size=3D"2" face=3D"Arial"><SPAN lang=3D"EN-US" =
style=3D"font-size: =
10.0pt;font-family:Arial"><O:P>=A0</O:P></SPAN></FONT></P><P =
class=3D"MsoNormal"><FONT size=3D"2" face=3D"Arial"><SPAN lang=3D"EN-US" =
style=3D"font-size: 10.0pt;font-family:Arial">PS: I am sorry for my poor =
writing English, I hope it is not too bad.<O:P></O:P></SPAN></FONT></P> =
</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: =
0px; margin-left: 0px; =
">_______________________________________________</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">lispweb mailing list</DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A =
href=3D"mailto:[email protected]">[email protected]</A></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><A =
href=3D"http://www.red-bean.com/mailman/listinfo/lispweb">http://www.red-b=
ean.com/mailman/listinfo/lispweb</A></DIV> =
</BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>=

--Apple-Mail-2--781434838--


--===============8129421019416679522==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
lispweb mailing list
[email protected]
http://www.red-bean.com/mailman/listinfo/lispweb

--===============8129421019416679522==--