LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   LISP Online textbook/references. (https://www.linuxquestions.org/questions/programming-9/lisp-online-textbook-references-280745/)

frob23 01-22-2005 02:44 AM

LISP Online textbook/references.
 
Does anyone know of any good LISP references or guidebooks on the web? I'm looking for something complete (not just an introductory guide) and am too impatient to wait for my next paycheck to order a proper book. I will order a proper book in the week and a couple days it takes to get my check and for it to clear... but until that time I would like a good guide.

Note: I am not unfamiliar with LISP so the introductory guides about using CDR and such aren't what I am looking for. I'm actually approaching a new programming challenge and am finding my knowledge falls short of what is necessary to complete it.

So, does anyone know of a good guide. Google keeps turning up the intro style pages. I think maybe LISP just isn't popular enough to have quality digital references anymore.

EDIT: Not GNU Emacs LISP, Common LISP (ANSI LISP).

frob23 01-22-2005 06:19 AM

I'll post a reply to my own thread. After a couple hours (too many to be honest... I should have found this sooner) of searching I did turn up this:

http://psg.com/~dlamkins/sl/

Which was "almost" exactly what I was looking for. I'm still skimming through it but it is a good refresher of the material I haven't gone over in a while... that and it looks to cover the specific information I was looking for -- at least I hope so. I'm mid-inhale at the moment. :p

bigearsbilly 01-24-2005 06:03 AM

Guy Steele's book (the creator I believe)

http://www.cs.man.ac.uk/~tessaris/do...l/clm/clm.html

It used to be downloadable, not sure if it is now.
(I've got a download of it myself)

What lisp engine you using?

I found an anomaly in my linux one, which didn't manifest itself
on Interleaf.

Quote:


I think maybe LISP just isn't popular enough to have quality digital references anymore.

shame, it's a beautiful language ain't it?
Also:
www.lisp.org

L-system 01-24-2005 08:25 AM

http://www.gigamonkeys.com/book/

frob23 01-24-2005 10:36 AM

Quote:

Originally posted by bigearsbilly
Guy Steele's book (the creator I believe)

http://www.cs.man.ac.uk/~tessaris/do...l/clm/clm.html

It used to be downloadable, not sure if it is now.
(I've got a download of it myself)

What lisp engine you using?

I found an anomaly in my linux one, which didn't manifest itself
on Interleaf.



shame, it's a beautiful language ain't it?
Also:
www.lisp.org

:D

I knew I had a reference on this computer somewhere! When I posted this at work (yes I have nothing better to do at work then think of lisp) I didn't have access to my home computer. And when I got home I was looking for a file with "lisp" in the title. Once you made that post I did a quick search for clm and turned up my copy... buried in my source directory and not my doc one where I expected it to be. Aren't computers wonderful?

I did find a downloadable copy at http://www-2.cs.cmu.edu/Groups/AI/html/cltl/cltl2.html

And I am going to check out that book L-system posted as well. I was just having a huge moment of irritation when I posted this originally at work. I was just upset to see 900 guide to every other language on the planet... but I couldn't find anything longer than two pages on lisp and each of them read like an anthropologist's description of a dead or dying culture. I ran into lisp back in college when a professor challenged us to find a language we didn't know and learn enough of it to write a couple of simple programs. It left a deep mark on me and became my secret (almost shameful in this world of C and C++) language of choice.

;)

I'm using clisp right now http://clisp.cons.org/ although there are three or four other lisp implementations in the ports tree (FreeBSD).

Thanks guys for the sites. I'm going to collect my own little digital lisp library on this computer for the time being. I do prefer printed manuals so I'm probably going to shell out some cash in the near future as well. Besides, it's a good thing to support authors for their work.

-Eric

bigearsbilly 01-28-2005 09:18 AM

clisp is broken - discuss
 
I found what doesn't work (?) in clisp.
let doesn't survive through recursion.

According to what I understand (let count, below) should survive through
recursive calls.

This func pos+ takes a list of ints, and return the list of each
int incremented by it's index.

(an exercise from a book to do recursively, so please don't postmapcar solutions)

so (7 5 1 4) = ( 7 6 3 7)

(7+0 6+1 1+2 4+3)


(with debugging format)
Code:

(defun pos+ (L)
 (let ((n (if (boundp 'count) count 0)))
  (let ((count n ))
  (format t "~%count = ~a" count)
  (cond
    ((endp L) nil)
    ( t
      (setf count (+ 1 count))
      (cons (+ n (car L) )  (pos+ (cdr L))))))))

(do-form (pos+ '(7 5 1 4)))

Now in Interleaf lisp this works:
Code:


count = 0
count = 1
count = 2
count = 3
count = 4
(pos+ (quote (7 5 1 4))) = (7 6 3 7)

but in clisp:
Code:

count = 0
count = 0
count = 0
count = 0
count = 0
(pos+ (quote (7 5 1 4))) = (7 5 1 4)

Now, i think this means that clisp is broken

What do you think?


All times are GMT -5. The time now is 06:03 AM.