Wednesday, March 18, 2009

Loop on - destructuring variables

The difference between (a . b) and (a b):

Practical Common Lisp chap 22 Loop for Black Belts

Tuesday, March 17, 2009

Difference between Stack Unwinding and Restart

Difference between stack unwinding and Restart:

Monday, March 16, 2009

(directory #p"/Users/*")

To generate the same file list using pathname:

(directory (make-pathname :directory '(:absolute "Users") :name :wild))

The :wild is for "*". Mess the key (:name) with the value (:wild) is quite confusing.

Saturday, March 07, 2009

Setup Lisp for Aquamacs Emacs

0. aquamacs emacs installed
1. install the 
slime plugin.
2. install a Lisp implementation; I use SBCL
3. set proper environment variables PATH: #SBCL_HOME, #SBCL_ROOT (details in the INSTALL file of SBCL)
4. tell Emacs to use SBCL : edit .emacs to add (setq inferior-lisp-program "sbcl")

done。