On Mac OSX, if I cd to the project directory (in a terminal window -- similar to cmd in windows) before starting lisp, then (load "abc") will load the file abc.lisp in that directory. I haven't used lisp on windows in years, but I think it was similar.
It turns out that the way Common Lisp handles file names and path names is pretty complicated, because when they were creating the language, and later the standard, they had a major requirement to be compatible with a whole menagerie of operating systems, many of which had very different ways of organizing files. They had to deal with far bigger differences than the trivial ways Windows and the different Unix-like OS's differ. These days, it's kind of overkill, but I first learned computers back on PDP-11 minicomputers, and worked on VAX/VMS for years, so I get a little nostalgic when I come across the path complications in lisp. Conrad chose not to delve too deeply into these issues, probably because it would be tough to do a thorough job without making the book dull and much too long.
Another thing Conrad doesn't mention is the issue of editor support for lisp. Most lisp programmers use the Emacs editor, with the amazing Slime add-on. But that is a LOT to learn for a beginner. I think it was wise to just stay away from that topic.
Someone asked about lisp performance vis-a-vis c or c++. That's a big topic. CLISP, the common lisp implementation recommended for the book, compiles to byte-code, in other words, to a virtual machine, like java or .net, but since huge companies haven't been pouring billions of dollars into the CLISP vm, as they have with java and .net, I assume they are much faster. Other versions of common lisp, for example SBCL, compile to machine code, and so can be quite fast, rivaling c/c++ if carefully tuned. Of course, that's putting the cdr before the car. What really wins is the better algorithm, and lisp's flexibility and ease of programming gives the lisper a good chance of finding a better algorithm, if she looks for it.
On Thu, Apr 28, 2011 at 7:25 AM, Frank Lavoie
<lav.f...@gmail.com> wrote:
Can someone knows where I could check for this info? I'm new to lisp and the book is my starting point, I'm a bit lost.
--
Phil Rand
phil...@gmail.comphil...@pobox.com