TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Composing Programs in Python, SICP Style

244 点作者 philonoist超过 6 年前

5 条评论

sumukh1超过 6 年前
This is the textbook used for the introductory CS course (CS61A) at UC Berkeley. The course material is available at <a href="http:&#x2F;&#x2F;cs61a.org&#x2F;fa18" rel="nofollow">http:&#x2F;&#x2F;cs61a.org&#x2F;fa18</a> (The course uses Python 3, Scheme, and SQL).<p>There are some neat projects (students build a Scheme interpreter and implement game logic as part of the projects)<p>Previous Hacker News Discussions (from which I’ve copied my comment)<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11465234" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11465234</a> <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3491142" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3491142</a> <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3141996" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3141996</a>
评论 #18902512 未加载
zelphirkalt超过 6 年前
Huh, I already thought this was suspicious reading the title, as Python does not have in-built TCO and indeed, <a href="https:&#x2F;&#x2F;composingprograms.com&#x2F;pages&#x2F;17-recursive-functions.html" rel="nofollow">https:&#x2F;&#x2F;composingprograms.com&#x2F;pages&#x2F;17-recursive-functions.h...</a> does not even mention Stackoverflow errors and neither does it introduce a decorator to avoid them. Under these conditions however, it is impossible to compose programs &quot;SICP Style&quot;.
评论 #18905699 未加载
评论 #18904891 未加载
divs1210超过 6 年前
People who find this interesting might find this answer of mine on stackoverflow interesting as well: <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;44729275&#x2F;1163490" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;44729275&#x2F;1163490</a>
simplegeek超过 6 年前
Great effort. I cannot find exercises? Do authors plan on adding those?
LukeB42超过 6 年前
Very nice formatting for the content but it feels like it&#x27;s missing three chapters on category theory and two chapters each on the AST module and the `compile` builtin after that last chapter on recursion.
评论 #18904636 未加载
评论 #18902557 未加载