> Can someone (TAs?) recommend an implementation of LISP that we can
> use at home? Specifically for Win32 and x86 Linux platforms. I've
I may be wrong, but I think Emacs has a built-in LISP interpreter, invoked
by C-c C-e
This is not Common Lisp but Elisp, the Emacs flavor of lisp which is
quite a different beast.
A good source for a listing of many available lisp interpreters both
free and commercial is the Lisp FAQ, there is a link to this off
of the class page.
With respect to Linux flavors I have tried both the Trial version of
Allegro Common Lisp and Austin Kyoto Common Lisp under Linux
(distributed as Gnu Common Lisp) and have been impressed with both.
--Tal
> Here's the link the get it:
>
> http://clisp.cons.org/~haible/clisp/binaries/
>
This cl implementation is a lot cooler than the others (small!)
Installing although not straight forward is a lot better than some
unix programs I've had the distress of dealing with...
A couple notes about clisp and aima installs on Win32:
1. RTFM!!! There's a README file, use it.
2. config.lsp understands "\" marks but be sure to escape them!
(example: "c:\\foo\\bar\\ai.lsp")
3. Be sure to run clisp with the -M argument (lisp.exe -M
lispinit.mem) You won't be able to correctly install without the
default *.mem loaded.
4. AIMA is not friendly to Win32 clisp.
5. aima.lisp understands "/" not "\" (so "c:\foo\bar\ai.lsp" ->
"/foo/bar/ai.lsp")
6. Change *aima-binary-type* to something like this (or replace it
with this if you like):
(defparameter *aima-binary-type*
(first (list ; <<<<<<<<<<<<<<<<<<<< Edit this <<<<<<<<<
#+CLISP "fas"))
#+Lispworks system::*binary-file-type*
#+Allegro excl:*fasl-default-type*
#+(or AKCL KCL) "o"
#+CMU "sparcf"
#+Lucid (first lucid::*load-binary-pathname-types*)
Once all of this is nice and happy, (load "aima.lisp") completes with
a warning, but (aima-compile) breaks. Apparently the function
"ENSURE-GENERIC-FUNCTION" isn't defined in clisp so things don't quite
compile right. Can any of the TAs provide a small hack to aima.lisp to
add this function so that us poor Win32 saps can do our homework?
P.S. The Soda machines are slow....
P.S.S. Linux is great and all, but its setup... package
dependencies... package setup... ugh...
I downloaded the clisp program for the above link, and read the README
file, But I am not sure what i need to change int he src/config.lsp so
the program could work...
also when I start the clisp.exe i get the message:
WARNING: No initialisation file specified.
Please try: C:\clisp-win32\clisp-1999-07-22\lisp.exe -M lispinit.mem
but I don't know where to try the above line.
If I do it in the program itself, it gives me an error...
Besides that the clisp.exe is working, but it tells me that it does not
understand the keyword defun for example... WHAT AM I DOING WRONG??
PLEASE HELP ME..
Sharon
Open up a DOS prompt (<winkey>+R and then type "command") or if you
use winfile.exe, go to the clisp dir and open "Run" from the "File"
menu and type "lisp.exe -M lispinit.mem".
Kind of sucks how Windows is losing whatever Unix-like parts it ever
had (no support for this in Explorer.)
>If I do it in the program itself, it gives me an error...
>
>Besides that the clisp.exe is working, but it tells me that it does not
>understand the keyword defun for example... WHAT AM I DOING WRONG??
You must do the "lisp.exe -M lispinit.mem" bit because that's loading
in the lisp libraries memory image. It won't work unless that is done.
A nice permanent way to set this is by making a shortcut of lisp.exe
to somewhere in your "<windir>\start menu" then pressing alt+enter on
the shortcut to edit the shortcut's properties. Find the box that says
"<clispdir>\lisp.exe" and add " -M lispinit.mem" to the existing
string. Press OK and fire it up.