From: Haris Bogdanovi� on
> Try this:
> http://www.weitz.de/hunchentoot/

I am already trying hunchentoot. I was reading this page:
http://www.adampetersen.se/articles/lispweb.htm
and it says to start a hunchentoot you have to write:uby
(start-server :port 8080)
but there is no start-server function ?
Doesn't really matter now, I'll read from that link you gave me.
I was trying ruby on rails before which also has server (webrick) behind
apache or whatever.
So what's the point of this servers ?
They start just one process instead of many (cgi) to feed the main server
(just with plain html ?) ?


From: Pascal J. Bourguignon on
"Haris Bogdanovi�" <fbogdanovic(a)xnet.hr> writes:

>> Try this:
>> http://www.weitz.de/hunchentoot/
>
> I am already trying hunchentoot. I was reading this page:
> http://www.adampetersen.se/articles/lispweb.htm
> and it says to start a hunchentoot you have to write:uby
> (start-server :port 8080)
> but there is no start-server function ?

In the current package. But there must be a package where there is a
start-server function. You could try to find it, (if you don't want to
read the documentation), using the APROPOS function:

(apropos "START-SERVER")


> So what's the point of this servers ?

To remove inefficiency.
There's no point in going thru Apache to access your web application.


> They start just one process instead of many (cgi) to feed the main server
> (just with plain html ?) ?

Indeed, there's no point to reload the application every time you click
on a button either.

--
__Pascal Bourguignon__
From: Haris Bogdanovic on
I read the docs and tried to start the server. I wrote a post bellow:
hunchentoot start.


From: Tim Bradshaw on
On 2010-05-09 18:26:51 +0100, Haris Bogdanovi� said:

> So what's the point of this servers ?

Generally the point is that apache (or whatever) is fantastically good
at serving static content (ie files), and it's much better to let it
deal with that because you don't want to reinvent all the wheels it has
for that, while concentrating on the dynamic content yourself.

From: Captain Obvious on
HB> Ok, it works now. I guess every cgi script has to begin with loading
HB> packages, can it be remembered somehow ?

Yes, CLISP can create a "lisp image" with all the stuff loaded.
(EXT:SAVEINITMEM)
Then you can load CLISP with that image if you use -M option.

First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4
Prev: email parser in Lisp?
Next: Google Code Jam 2010