“If you're serious about Lisp and even more serious about Scheme and furthermore serious about computing. You must read this.”
Structure and Interpretation of Computer Programs
MIT 经典教材,用 Scheme 讲抽象、解释器与求值
Harold Abelson、Gerald Jay Sussman 和 Julie Sussman 合著的 MIT 经典教材,用 Scheme 讲程序设计中的抽象、数据结构、模块与状态,最后实现解释器和寄存器机器。书里有大量习题,是边做边学的风格。和一般语言入门书不同,它把函数式、过程式和面向对象放在一起比较,目标是培养对计算过程的思考方式。
HN 上的人推荐它,是因为它帮你理解函数式、过程式、面向对象这几种范式的关系,讲清 Lisp 的精神,也让你亲手写解释器;有人称它为最有启发的编程入门书,也有人提到例子偏数学。
想打牢编程思想的自学者
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1从第一章开始顺序读,不要跳过习题,习题是本书的核心
- 2第三章的状态与流、第四章的解释器值得多花时间
- 3用 Racket 或 MIT Scheme 配好环境,每道题都自己跑一遍
- 4遇到数学例子吃力时,先抓住思想,不必纠结数学细节
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“If you really want to understand closures I recommend reading Section 3.2 of SICP [1]”
“here's a great way to start: Structure and Interpretation of Computer Programs”
“If you're curious about CS you should just go ahead and read SICP.”
“The book that goes with this course, Structure and Interpretation of Computer Programs, is excellent.”
“Personally, I loved learning Scheme (a dialect of Lisp) from from Structure and Interpretation of Computer Programs”
看全部 20 条 →
“if you're ambitions, read the book”
“Usually I recommend that people start with Scheme and read SICP”
“If you've never programmed before, this will teach you far more than you'll need, initially”
“Save up your lunch money for these books, and get through as much of them as you can before grad school (or work):”
“I've been doing this with Scheme and Erlang using SICP and it has definitely helped me understand better both the languages and the material.”
“To start, you should read SICP and watch the lectures ((链接)).”
“Finish this course and you'll have a better grounding than many of today's professional programmers”
“Most people would say start with SICP, and I think I would agree. It really stresses higher order programming.”
“But SICP is really, really fun.”
“SICP is a great book. It's even available online!”
“Your college curriculum may or may not involve going through the SICP, but it's something I recommend.”
“I highly suggest Scheme and the book Structure and Interpretation of Computer Programs (SICP: Structure and Interpretation of Computer Programs.)”
“Structure and Interpretation of Computer Programs either online[1] or on dead trees[2]. Also has accompanying video lectures[3].”
“SICP covers more material in greater detail.”