4 ms·
> I think Paul Grahams ANSI Common Lisp is the best if you are learning Common Lisp and Lisp. I disagree, and here's why: Practical Common Lisp is the SINGLE
by bsder 10y ago
> I think Paul Grahams ANSI Common Lisp is the best if you are learning Common Lisp and Lisp.
I disagree, and here's why:
Practical Common Lisp is the SINGLE Lisp reference I have ever found that talks about how to use real data structures instead of stupid cons pairs.
That's really, really huge. And it's probably why so many people actively dislike Lisp. And it's probably why Clojure achieved such popularity.
- nocman 10y agoWhile I understand the need to use other data structures (and even in Lisp, I would not use cons pairs for everything), I think "stupid cons pairs" is pretty extreme. If you don't understand why cons is important, and the appropriate places to use it, then you really don't understand Lisp.
- wtbob 10y ago> If you don't understand why cons is important, and the appropriate places to use it, then you really don't understand Lisp. Lisp-the-mathematical-model, perhaps, but not Lisp-the-programming-language. Conses are definitely a fundamental idea, and they're obviously how source code is written, and it's nice that they're around — but honestly for real work it's unlikely that most data will live in cons structures (unless of course the higher-level data structures actually are built from conses, which of course they could be).
- deleted 10y ago[deleted]
- nocman 10y agoAt what point did I say "most data will live in cons structures"? And I explicitly said I would not use them for everything. And no, it isn't just "Lisp-the-mathematical-model", cons cells have real-world implications to the language. I was going to suggest watching the video presentation "The Swine Before Perl", by Shriram Krishnamurthi, but alas I can't find a link to the video (which is sad, because it is a very entertaining and informative video). The slides are here: ( http://ll1.ai.mit.edu/shriram-talk.pdf http://ll1.ai.mit.edu/shriram-talk.pdf ), but without the talk they may do you no good. Hopefully someone will see this and add a link to the video ( it should be made available again, even after all of this time, it is still great -- I believe I saw it as recently as 2 years ago).
- nabla9 10y ago>SINGLE Lisp reference I have ever found Then you haven't read many Lisp books, including Common Lisp Recipes and ANSI Common Lisp. There are so many of good ones.
- TeMPOraL 10y ago> including Common Lisp Recipes To be fair, that's a 2016 book. Pretty awesome though, I have to say - I'd highly recommend it for anyone who knows a bit of Common Lisp (e.g. after PCL). It's basically the "Effective C++" of Lisp world.
- z0ltan 10y agoI love that book.
- bsder 10y agoThis is my pet peeve you are arguing into. Beware. :) Here's my point: People can build amazing programs with just Vectors or Hashes. People can build amazing programs without understanding recursion, evaluation, macros, or metalinguistic abstraction. And, in fact, before memory became cheap (roughly 1995) recursion was a negative, not a positive. So, guess which things Lisp taught and which it didn't? Yeah, they got it precisely BACKWARDS and then wondered why Lisp wasn't more popular. Go back, and look at Lisp books prior to the web--call it 1995-1996. I 1987, I had a version of Touretzky's "Common LISP: A Gentle Introduction to Symbolic Computation". I do not remember any discussion of Hashes, Vectors, etc., but I see that even the 1990 version confines them to the next to the last chapter and the discussion qualifies as cursory, at best. SICP doesn't even mention it. Nor does Little Schemer (nee Little Lisper). "On Lisp" (1993) just drops hashes and vectors in your lap as it expects you to already know about them. "ANSI Common Lisp" by Graham doesn't appear until 1995. CLtL and R4RS are references. You sure aren't going to learn Lisp/Scheme from those. Sure, once Perl taught the universe how useful hash tables were, everybody started going "Hey, we have those too...", but prior to that is a big hole.
- kazinator 10y ago