From: Tamas K P. <tk...@gm...> - 2010-12-13 06:40:46
|
On Sun, 12 Dec 2010 22:47:27 +0100, Daniel Carrera wrote: > Hi Tamas, First, there is no need to cc me, I read the list. >> First, I would suggest that you get a decent book. PCL by Peter Seibel >> is very nice. There is an online version. It will introduce you to >> proper CL style too. > > I forgot to mention, I did find that book and I've been reading it. It's > the best information I've seen so far, but I don't particularly love it. > Most of it talks about things I'm not interested in, and it omits things > that I am looking for. > > I study best if I try to solve a problem that I'm interested in. So I > tried to figure out how to do things with vectors so I could write a few > mathematical routines, and I got stuck. You should work through PCL first. As the example below shows, you need to understand some basic constructs before you can do anything. >> but your IDE should make stuff really convenient. > > Can you recommend an IDE for Linux? I've just been using a regular text > editor. Emacs has syntax highlighting, so that's what I've been using, > but I don't actually know Emacs. Learning Emacs was one the best investments of my time. I use Emacs+SLIME+ParEdit and I find it great. > I must be missing something very basic. I can't use DEFVAR inside a > function either: > > (defun myfunc () > (defvar result 3) > (result)) > > SBCL complains about "undefined function: RESULT". :-( (defun myfunc () (let ((result 3)) result)) Chapter 4 of PCL discusses LET. >> Also try comp.lang.lisp for general CL questions. > > Thanks. I'm very new, so I wasn't even sure where to go for help. Also look at the c.l.l archives. BTW, there was a recent thread about IDEs, "Simple Lisp Support". Best, Tamas |