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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Structure and Interpretation of Computer Programs – JavaScript Adaptation

317 点作者 hwartig超过 5 年前

14 条评论

brlewis超过 5 年前
What an interesting and ambitious project! Of course the first thing I did was skim the Metacircular Interpreter section to see how they handled the additional syntactic complexity. They gloss over the &quot;parse&quot; function, which is probably the best one can do. That the Scheme function &quot;read&quot; could be implemented by a novice is one of the advantages of using Scheme for SICP and it wouldn&#x27;t be reasonable to expect an adaptation like this to reproduce the exact experience. I do think it&#x27;s great the way SICP leads people through doing powerful things with a programming language, and then shows them that they themselves could implement the language they&#x27;ve been using. It gives a powerful feeling of control in an environment (computer programming) that can otherwise be intimidating. I think this adaptation does almost the same thing.<p>The translation is pretty direct, so the data structures are more idiomatic to Scheme than they are to JavaScript. I think that&#x27;s OK.
评论 #21825862 未加载
Theizestooke超过 5 年前
Is this the first adaption of SICP to a different language?
评论 #21823677 未加载
评论 #21823898 未加载
voldacar超过 5 年前
There&#x27;s kind of a reason why SICP was written in Scheme in mind and not a blub language...
评论 #21824058 未加载
评论 #21823624 未加载
评论 #21823710 未加载
评论 #21824390 未加载
评论 #21824214 未加载
评论 #21827484 未加载
评论 #21823815 未加载
评论 #21824115 未加载
评论 #21830124 未加载
评论 #21823613 未加载
评论 #21824553 未加载
评论 #21823596 未加载
musicale超过 5 年前
Add this to Little Scheme&#x2F;The Little JavaScripter.<p><a href="https:&#x2F;&#x2F;www.crockford.com&#x2F;scheme.html" rel="nofollow">https:&#x2F;&#x2F;www.crockford.com&#x2F;scheme.html</a><p><a href="https:&#x2F;&#x2F;www.crockford.com&#x2F;little.html" rel="nofollow">https:&#x2F;&#x2F;www.crockford.com&#x2F;little.html</a>
ngcc_hk超过 5 年前
Finally have a free 1 hour and try the site. The site cert. is not valid ... and also if you start with the book, click it does not result in running code. More important the first preface is about Scheme which I think it should be in reverse. My 1 hour up. May try later.
kyancey超过 5 年前
What fresh hell is this?
评论 #21827442 未加载
nhlx2超过 5 年前
Adaption - another term for adaptation.
评论 #21824303 未加载
评论 #21824596 未加载
评论 #21826873 未加载
b0rsuk超过 5 年前
Every now and then a great movie comes out. Then it gets its American remake. It&#x27;s been proven you can put Al Pacino, Robert de Niro and Bruce Willis in any movie (with predictable results!). This is the book equivalent of an American remake for me.<p>Is Javascript the new pseudocode? Honestly I&#x27;d rather be forced to learn a new language to understand a book than to read the book adapted to JS.
评论 #21831207 未加载
评论 #21829850 未加载
评论 #21824691 未加载
评论 #21825313 未加载
评论 #21826723 未加载
评论 #21827765 未加载
swiley超过 5 年前
I remember finding the SICP in our university’s library as a freshman, me and a friend (both of us had never used scheme) had a lot of fun going through the first chapter together.
FoyrNeo超过 5 年前
Great news
rakhalmadhu超过 5 年前
Awesome....
dprophecyguy超过 5 年前
Holy Shit... This is awesome ... !!!
z3t4超过 5 年前
I skimmed through the book and think I saw a function declared inside an if-statement. Some JS engines don&#x27;t like that. And if the engine does support it, the function will be function scoped. To make an if-scoped function, declare it using const f = x =&gt; y,<p>nitpick: I personally prefer to use intermediate variables instead of nested function calls and ternary operator.
muzzletov超过 5 年前
Dont like where they state shit (code, programs, processes etc.) isnt comprise of anything.<p>Everything is comprised of something.<p>Please, if you compose something many people could potentionally consume, at least dont be all esoteric and&#x2F;or mystical about it. This is not a campfire, where everyone tells a story of fairies and shit. They maybe even more so eager to learn a typical umderlying layer&#x2F;architecture.