by mcantor · 16y ago · 0 comments
I was startled to find that "C lisp"--that is, the lisp interpeter written in C, which you get when doing sudo aptitude install clisp on the latest Ubuntu distribution--is actually not the "standard" lisp interpreter. I still have no idea which is, if any.
Still, it seemed like a few of the web frameworks out there should have worked anyway, so I tried to soldier on for a while. Unfortunately, it was in vain: my dependency-fu simply wasn't strong enough. I also couldn't find a lisp equivalent to rack and wsgi, which is something of a non-starter imho.
I'm sure I am making some foolish assumptions, facilitated by the vast chasm that represents my experience with lisp and its ilk. I also have only managed to devote a few hours to it so far, so please, no one take this post as gospel--I'm just sharing what little I have found in case someone else finds it useful.
Clisp is one implementation of the Common Lisp language. Other Common Lisp implementations include SBCL and AllegroCL. Since no one party controls the Common Lisp language, none is standard.
Scheme is another Lisp language. It also isn't controlled by anyone, so it's just a sea of implementations. BUT — the closely related Racket language is centrally controlled and does have a standard implementation. In fact, that's pretty much the whole reason Racket diverged from Scheme — so that it could be the standard Racket instead of Scheme with a bunch of modifications.
The other popular Lisp these days is Clojure. Like Racket, it does have a central "creator," Rich Hickey, whose implementation is considered official.
At least there are more blogs about Clojure; and Racket is mature and well supported. (I also think Clojure code looks better than all the other lisps. Don't know why, yet.)
Another option is to download Franz Allegro CL Express - http://www.franz.com/downloads/clp/survey and Franz' own emacs package - http://www.franz.com/emacs/ They also have nice tutorials up there.
Or Lispworks personal edition - http://www.lispworks.com/downloads/index.html
I just set up slime into my emacs (which I use all the time anyways) and hooked up Clozure CL to it - http://www.clozure.com/clozurecl.html
On the other hand you could try Scheme, particularly Racket (ex PLT Scheme) - http://racket-lang.org/ (IDE is really nice, but sometimes confusing for newbies.. for example "Which Scheme? And why?")
Maybe your best bet would be to start either with Lispbox and some Lisp book (like the one linked on Lispbox page, it's free) - or Racket Scheme and its IDE (DrScheme) and try following SICP from here http://ocw.mit.edu/courses/electrical-engineering-and-comput... and especially here: http://academicearth.org/courses/the-structure-and-interpret... I'd recommend Racket+SICP at first, both because of less hassle with tools instead of language at first and for my personal bias toward Scheme. Just found some pointers for SICP and DrScheme here - http://stackoverflow.com/questions/939582/which-language-in-...
CLISP is not really written in C proper; but files with *.d suffix are C with heavy pre-processor use that make them look like Pascal. It also uses "var" keyword to declare new variables, along with shell-style # line comments. It also uses German for variables and comments. Things have been changing heavily as of late, and there is more push toward C style and English usage, but here is what it look(s|ed) like.
http://clisp.cvs.sourceforge.net/viewvc/clisp/clisp/src/intc...
The code is beautiful and readable, but very unidiomatic.