Learn Macros in Scheme from On Lisp [closed] - macros

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I really want to learn Scheme macros. I glanced over the content of "On Lisp" and a lot of the chapters have been devoted to Lisp macros. However I do not know common lisp. Can I use it to learn Scheme Macros?

Scheme macros ("hygienic macros") are completely different from traditional Lisp macros. Some implementations of Scheme offer Lisp macros in addition to Scheme macros, but this is not required by the Scheme standard.
I would recommend you look for instructional materials specific to Scheme macros if you would like to learn about that style of macro. Google shows many pages offering an introduction to Scheme macros.

Re: Nathan Sanders
On Lisp is definitely worth reading; you get a taste for a style of macros and some interesting solutions to problems. Also, you find can better understand the problem that hygienic macros solve.
I can't comment yet or I would have done so in line.

Related

Learning Lisp and artificial intelligence [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
This semester at college I have a course for Artificial Intelligence and we are studying Lisp. The problem is that I don't have any functional programming background, but I do know OOP programming (Java, Javascript, PHP).
Can you recommend some good books to get me up to speed on Lisp and artificial intelligence?
These I have found helpful and pretty approachable:
Practical Common Lisp - Peter Seibel
ANSI Common LISP - Paul Graham
Not to forget the classic "Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp" by Peter Norvig. Especially his coding style is very clear and a pleasure to read.
Artificial Intelligence: A Modern Approach (3rd Edition)
The Little Schemer - 4th Edition
Let Over Lambda—50 Years of Lisp
and there is much more recent C++(boost, melt, blitz++, functional c++,.. etc).
--
BTW, RIP dmr, Thanks.
Here are a few:
http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=lisp+programming+artificial+intelligence&x=0&y=0
I hear this one is really good, too:
http://www.amazon.com/Lisp-3rd-Patrick-Winston/dp/0201083191/ref=sr_1_1?ie=UTF8&qid=1318507734&sr=8-1
I've never read it myself.
This is a good book for coming up to speed on Lisp:
http://www.amazon.com/Practical-Common-Lisp-Peter-Seibel/dp/1590592395/ref=sr_1_1?s=books&ie=UTF8&qid=1318507782&sr=1-1

Advantages of different Scheme R6RS implementations [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'd like to start programming in Scheme but the variety of different implementations is confusing. What are some advantages or disadvantages of various implementations?
Every implementation tends to focus on something different. Racket emphasizes its large libraries as "batteries included", while Ikarus Scheme touts itself as compiling fast code. You should examine implementations based on what you want. If you're just learning Scheme, DrRacket is a good choice with its friendly interface and specific environments for various Scheme books.
Also, you probably don't need to find a R6RS implementation, when most implementations target R5RS and most textbooks were written for R5RS and earlier.
Since you're looking to learn Scheme, I recommend The Little Schemer as an introduction to thinking using Scheme's lists and recursion.
Honestly, while each one has their own quirks and modifications to the standard, they're mostly the same. The biggest differences is how it compiles. You should probably just pick one and go with it.
Racket would be a good choice because it comes with a nice debugging IDE and is easy to set up.

Resources for learning Lisp [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What is a good book or tutorial to learn Lisp?
Practical Common Lisp is an awesome (and free) book for anyone interested in the language.
If you like learning by writing games "Land of Lisp" is now available, see http://landoflisp.com
A good place to start off would be the ANSI Common Lisp by Paul Graham which is what I'm hooked onto right now :)
EDIT: As mentioned by spacemanaki "there a few areas where Graham's coding style should not be considered typical" and are listed here.
Lisp (3rd Ed) by Winston and Horn is actually a pretty good textbook. I picked it up for a steal (plenty of $2 used copies on Amazon) and I've found it to be a decent learning tool. it is sometimes easier to read than ANSI Common Lisp by Paul Graham, although some of the advanced stuff is a bit weird or out-of-date.
Have you ever look for at https://stackoverflow.com/questions/194812/list-of-freely-available-programming-books ?
One of the best books for a beginner to learn Lisp by David S. Touretzky: http://www.cs.cmu.edu/~dst/LispBook/

Online tutorial on lisp [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Any online tutorial on lisp which can teach the basics (loop, condition and etc) of this language in a short time?
Common Lisp tutorial on Wikibooks,
for beginners, http://en.wikibooks.org/wiki/Common_Lisp/First_steps/Beginner_tutorial
, bit more advanced, http://en.wikibooks.org/wiki/Common_Lisp/First_steps/Experienced_tutorial
Not a tutorial but rather a full book (but good and straight forward): Practical Common Lisp, http://www.gigamonkeys.com/book/
Steve Yegge's Emergency Elisp is not about Common Lisp, but I still find it quite good to get at feeling for the Lisp family of languages:
http://steve-yegge.blogspot.com/2008/01/emergency-elisp.html
If you can make it through it (I wasn't able to the first time I read it), reading Paul Graham's The Roots of Lisp gives a nice overview of the very basics of the language, and how to implement it in itself, with only a few primitives.
On Lisp is another, oft-recomended and not too out of date book, again by Paul Graham, that will definitely teach you what you want to know. It's online, for free.
Personally, though, I'd recommend Clojure to you over CL. It's got a fast-growing, welcoming, smart community making cool things. Not only that, but you've got access to everything that Java does, and you're running on the JVM (it's portable and damn fast).
Good luck!
http://www.psg.com/~dlamkins/sl/ is a good start - read up to chapter 3. Chapter 3 really gets you the feel. The rest of the book is good too, but I recommend reading .... http://www.cs.cmu.edu/~dst/LispBook/ next. From there, you should read .... http://www.gigamonkeys.com/book/
I chose these in order of importance and difficulty. SL being the easiest and most important, then Gentle, then PCL

Common Lisp Exercises/Problems [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I'm working through Practical Common Lisp presently
http://www.gigamonkeys.com/book/
It's an excellent book with some practical assignments towards the end, but I'm looking for basic problems that explore the use of functions, variables and macros. Can anybody suggest a suitable resource to work through in order to reinforce the concepts presented?
Project Euler is a great source of programming problems
also, there is Rosetta Code
You may also want to try the SICP exercises in Common Lisp.
There are great exercises in ANSI Common Lisp the book, http://www.paulgraham.com/acl.html, for each chapter. Great book too, my favorite to learn Lisp with and as a reference.