LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-22-2005, 01:44 AM   #1
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
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).

Last edited by frob23; 01-22-2005 at 01:45 AM.
 
Old 01-22-2005, 05:19 AM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Original Poster
Rep: Reputation: 48
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.
 
Old 01-24-2005, 05:03 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
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

Last edited by bigearsbilly; 01-24-2005 at 05:09 AM.
 
Old 01-24-2005, 07:25 AM   #4
L-system
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Rep: Reputation: 0
http://www.gigamonkeys.com/book/
 
Old 01-24-2005, 09:36 AM   #5
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Original Poster
Rep: Reputation: 48
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


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
 
Old 01-28-2005, 08:18 AM   #6
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
evolution textbook stickers-politics contained Zuggy General 89 01-27-2005 03:33 PM
Lisp phoenix7 Programming 4 09-24-2004 07:40 AM
references jenny_psion Programming 0 08-12-2003 03:06 AM
Lisp, emacs-lisp aizkorri Programming 1 09-04-2002 06:16 PM
references to other other sites pbharris LQ Suggestions & Feedback 10 04-10-2002 10:20 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration