
On Lisp
On LISP
Paul Graham · 初版 1993 年
190人推荐
354位读者提及
531次提及
为什么值得读
- 被普遍视为讲解Lisp宏机制最好的著作
- 探索用宏实现延续与自然语言解析DSL
- 行文清晰是极佳的技术写作范例
书名“On Lisp”本身便暗指这样一种理念:你可以通过先构建一种能让你更轻松描述编程问题的编程语言,来解决当前的编程问题。在 Lisp 中,程序员利用名为“宏”(macros)的 Lisp 基础构件,直接在 Lisp 本身之上构建出这种针对特定问题的语言。这种编程风格被称为“自底向上编程”(bottom-up programming)。On Lisp 尤其以对 Common Lisp 宏及其应用的完整阐述而闻名,但该书同时也涵盖了 Common Lisp 中自底向上编程的诸多其他方面。
Hacker News 上怎么说
正在加载完整评论……
Common Lisp 是有宏的。大家通常公认 Paul Graham 的书《On Lisp》是对 Lisp 宏最精彩的论述。而且正如这里其他评论所说,CL 拥有的特性也比 Scheme 多得多。
Common Lisp has macros. Paul Graham's book On Lisp is usually pointed to as the best treatment of macros in Lisp. CL also has many more features than Scheme, as mentioned in the other comments here.
每当有人想找 Paul Graham 聊写作,我总好奇他们到底读没读过他的作品,因为自从写完《On Lisp》(我觉得这书写得棒极了)之后,他就陷入了一种极度自命不凡的死循环。随便看个最近的例子(摘自 [1]):> 尽管无疑是正确的,但这种陈述对读者来说 > 毫无意义。有价值的写作……
Whenever anyone wants to talk to Paul Graham about writing I always wonder whether they've read any of his works, because since writing "On Lisp" (which I think is great) he's been in a death spiral of self-importance. Let's take a recent example (from [1]): > Though no doubt correct, such statements tell the reader > nothing. Useful writing…
坦白说,我不太欣赏 _why 的写作风格。我觉得那本书非常难读。如果你想看什么是优秀的硬核技术写作,可以参考 Paul Graham 的《On Lisp》或者《ANSI Common Lisp》。
Frankly, I do not think very highly of _why's writing style. I find the book to be very difficult to read. If you want an example of excellent technical writing, consider Paul Graham's 'On Lisp' or 'ANSI Common Lisp'.
……运作方式就像管理学和成功学产业一样(提示:“Linux Torvalds”效应)。我不知道 PG 是不是真想当个“快速致富”导师,但对我来说,他是《ANSI CL》和《On Lisp》的作者,是个和 Norvig、Kent Pitman 以及 Dick Gabriel 处于同一梯队的体面人。讲真,因为那些狂热的造神崇拜,我喜欢 Paul Graham 甚至超过了喜欢“PG”这个标签。不管那家伙在他博客里写了些啥……
…work like management and self-help industries (hint: the "Linux Torvalds" effect.) I don't know if it's the intention of PG to become a "Get Rich Quick" guru, but to me he is the author of ANSI CL and On Lisp, a decent human being in the same league as Norvig, Kent Pitman and Dick Gabriel. Actually, I like Paul Graham more than "PG", thanks to all this idol-worshiping. Whatever that guy wrote in his blog…
……Money 和 Harris 写的《计算机体系结构》非常通俗易懂。《计算机程序的构造和解释》(SICP)是经典的入门读物。《C 程序设计语言》《C++ 程序设计语言》、Paul Graham 的《On Lisp》、Baase 的《算法》、McConnell 的《代码大全》、Norvig 的《人工智能》。这份书单推荐的不是最新潮炫酷的语言或技术,而是那些历久弥新的原理以及事物真正运行的……
…and Computer Architecture by Money and Harris is very readable. Structure and Interpretation of Computer Programs is the classic intro text. The C Programming Language The C++ Programming Language On Lisp by Paul Graham. Algorithms by Baase Code Complete by McConnell. AI by Norvig. This list isn't about the latest sexy languages or technologies. This is about timeless principles and how things really…
不过,你也可以用非卫生宏(unhygienic macros)做出很酷的东西,比如回指宏(anaphoric macros)。感兴趣的读者应该去读读 Paul Graham 的《On Lisp》,以及 Doug Hoyte 的《Let Over Lambda》。
You can do cool stuff with unhygienic macros, however, like anaphoric macros. Interested readers should check out On Lisp by Paul Graham, as well as Let Over Lambda by Doug Hoyte.