Re: Hunchentoot for production use and more questions...



Wow thanks mac, this post should be framed up for web dev lisp newbs :-)

Thanks again!

Chris

"mac" <emailmac@xxxxxxxxx> wrote in message
news:1184790742.807304.39260@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm usually used to files in directory structures, with each file
representing a page on the website (e.g. php, asp, etc.). Is there a
way to make it so that Hunchentoot can look at a folder structure,
evaluate lisp files and return other files like images as is - like
Apache, etc... or am I asking too much?

There're a lot of alternatives here:

http://www.cliki.net/web

cl-emb, html-template, lsp, etc

Or maybe, am I missing some
paradigm shift in website development here?

I'd say yes. If you are a one man shop and are not working with a
graphics/html/css designer, you probably don't want to use any html
template system.

You mentioned that you're reading PCL. I think Peter has demonstrated
that CL-FOO (html in sexp) is much more nicer to work with than plain
HTML. You can find other similar libraries like CL-WHO in the above
link.

Of course, if you have already invested $$$ in tools like dreamweaver
then it might be a different story. You need to figure out which path
will save you most time.

For most lispers sexp + macro is the ultimate secret weapon to getting
things done faster than anyone else.

3. Is SBCL 1.0.6 Windows really that bad? Does anyone out there
develop on the same environment?

I was originally using clisp but I need database access, and clsql
seems to be the only lisp package that does that... and it needs uffi,
which isn't supported by clisp.

(btw, if my creation ever goes to production in Lisp, I'll definitely
use a Linux box... so no Windows jokes plz... I need it for other dev
stuff)

When I started out I was also trying to setup a development
environment in windows and plan to migrate stuff to production (linux)
later.

This turns out to be a big time waster.

Hunchentoot (or whatever web server that you pick) is just part of the
story. Like you mentioned, you also need cl-sql. And by tonight you'll
find a dozen of cool libraries from cliki that you want to use.

Here's a partial list of stuff that I find useful in web projects

(#:arnesi
#:cl-fad
#:cl-interpol
#:cl-pdf
#:cl-smtp
#:cl-typesetting
#:cl-who
#:drakma
#:elephant
#:hunchentoot
#:iterate
#:json
#:kmrcl
#:net-telent-date
#:rfc2388
#:s-xml
#:lsp
#:split-sequence
#:ironclad)

Now the fun begins - you need to visit every project's homepage and
devel mailing list and find out how to set it up in windows + your
lisp. And then you also need to do the same in linux + your production
lisp.

That'll take a while before you can write a single line of code :)

And truth to be told, most of the library hackers use linux/macosx. So
90% of the time it's very straight forward to get it working in linux.

Just get a spare computer to run linux. Or if you are on the go a lot
like myself, get vmware server (free) and install linux on it (memory
upgrade is cheap nowadays).

4. Are there any good alternative lisp based web servers worthy of my
consideration?

Yes, again, check the cliki link. But I can tell you that hunchentoot
probably has the most active user base and since you're starting out,
you might find it a lot easier to get help from its mailing list than
other web frameworks.

HTH,
-- Mac



.



Relevant Pages

  • Re: Hunchentoot for production use and more questions...
    ... representing a page on the website. ... seems to be the only lisp package that does that... ... use a Linux box... ... Hunchentoot is just part of the ...
    (comp.lang.lisp)
  • Re: Lisp production web development
    ... I'd be particularly interested in the Lisp implementation you ... deployed on, web frameworks involved, database libraries, database ... I don't have enough time to write long articles, but the Hunchentoot ... website links to a few sites which use Hunchentoot. ...
    (comp.lang.lisp)
  • Re: The purpose of Lisp syntax to model AST
    ...  In operating system like Linux, ... Data and code in Linux ... It's also conceivable that a Lisp implementor may opt to store ... 'constant' data in a read-only memory segment, ...
    (comp.lang.lisp)
  • Re: Lisp article at IBM
    ... LISP community to TeX or to any other community claiming smartness... ... with such ease and elegance. ... code with and I'm pleased I have GNU Linux, but if the rest of the world cannot ...
    (comp.lang.lisp)
  • Re: The Lisp Curse
    ... there's a BSD kernel that does that to benefit from linux drivers. ... developmental lisp OS alongside a traditional linux OS on the same box. ... Most hackers will not pay for a language implementation today. ...
    (comp.lang.lisp)