“If you want to learn more, Paul Graham's On Lisp is the definitive book on the topic.”
Paul Graham 的 Common Lisp 进阶书,主张用自底向上的方式,把语言本身扩展成适合问题的形状。前半部分讲函数和 Lisp 的编程风格,随后用大量篇幅讲宏(macro),再延伸到延续(continuation)、嵌入式语言和对象系统等主题。书里以大量代码例子展开,不是给初学者的入门书,更适合已经会一点 Lisp 的人深入理解宏。作者已将全书放在个人网站免费提供。
HN 上的人反复称它是讲 Lisp 宏最权威、最易读的书,认为它能让人理解 Lisp 为什么比别的语言强大,也常作为 SICP 之后的进阶读物;多数评论强调免费可读。
已会一点 Lisp、想深入宏的程序员
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1先有 Common Lisp 基础,再读这本书
- 2开头几章看 Lisp 的编程思路,可快速读过
- 3宏相关章节要慢读,自己动手写几个宏
- 4遇到延续和对象系统部分,可先放着以后再回头
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“I have also heard really good things about PG's "On Lisp"”
“Following this, it was fun to read OnLisp[2].”
“If you want to learn pure Lisp, I'd recommend Paul Graham's book, On Lisp, which is available online for free.”
“Books that I've really read and enjoyed:”
“I must admit that his lisp books were a great help in breaking out of the imperative and OO worlds”
看全部 20 条 →
“there are some lovely examples of the latter in PG's excellent On Lisp”
“Between Paul's On Lisp [1] and various online resources [2, 3] one can still do quite well.”
“Read and try to understand pg's "On Lisp". It gives you a much better take on what makes Lisps so much more powerful than other programming languages.”
“pg's On Lisp might be a good option as well, and it's free”
“Great books which do not need registration based shilling techniques for your hacking careers:”
“He wrote one of the top books for (Common) Lisp: On Lisp”
“Several books for learning Common Lisp are online or for download:”
“Onlisp is a useful resource: On Lisp.”
“A great way to learn more about macros is through reading On Lisp[7]”
“On Lisp by pg explains very well what lisp is all about in the first few chapters.”
“Although pg doesn't call out DSL's specifically, the macro chapter is good.”
“It's a good introduction to the Lisp way of programming using Common Lisp.”
“FYI, Paul Graham's book, "On Lisp" covers macros in detail and is available as a free download here, if you are interested in the topic:”
“Also free and a great introduction to the language.”