TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Structure and Interpretation of Computer Programs – JavaScript Adaptation

317 pointsby hwartigover 5 years ago

14 comments

brlewisover 5 years ago
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 未加载
Theizestookeover 5 years ago
Is this the first adaption of SICP to a different language?
评论 #21823677 未加载
评论 #21823898 未加载
voldacarover 5 years ago
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 未加载
musicaleover 5 years ago
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_hkover 5 years ago
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.
kyanceyover 5 years ago
What fresh hell is this?
评论 #21827442 未加载
nhlx2over 5 years ago
Adaption - another term for adaptation.
评论 #21824303 未加载
评论 #21824596 未加载
评论 #21826873 未加载
b0rsukover 5 years ago
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 未加载
swileyover 5 years ago
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.
FoyrNeoover 5 years ago
Great news
rakhalmadhuover 5 years ago
Awesome....
dprophecyguyover 5 years ago
Holy Shit... This is awesome ... !!!
z3t4over 5 years ago
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.
muzzletovover 5 years ago
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.