Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Learning LISP

Name: Anonymous 2011-03-03 7:56

I've been making my way through SICP, I've reached a point where I feel I have to start experimenting with a Lisp compiler. I'm on a Mac so I downloaded LispWorks, I'm too lazy to figure out how this IDE works.

Can someone point me in the direction of a simple command line compiler/interpreter that will work with the SICP?

Name: Anonymous 2011-03-04 0:11

>>44
describe-object parsing is less portable than

CL-USER> (defun test-function (&rest abc &aux (whatever '(1 2 3))) `(,abc ,whatever))
TEST-FUNCTION
CL-USER> (sb-introspect:function-lambda-list #'test-function)
(&REST ABC &AUX (WHATEVER '(1 2 3)))
CL-USER> (swank-backend:arglist #'test-function)
(&REST ABC &AUX (WHATEVER '(1 2 3)))
CL-USER> (function-lambda-expression #'(lambda (a b c) (+ a b c)))
NIL
T
(LAMBDA (A B C))

If you're using Emacs+SLIME, you may have noticed that you have arglists, source code access for implementation and your own source code and many other nice features, this is because the SLIME backed: SWANK already implements all these debugging features for a wide variety of implementations through a compatibility layer.

There's also the whole wrapper approach if you don't want to rely on implementation, but I don't see why I shouldn't do that when implementations provide a lot of very nice debugging features which are meant just for this sort of thing.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List