cnbbooks / lfe-sicp Goto Github PK
View Code? Open in Web Editor NEWSICP, the LFE Edition
Home Page: https://cnbbooks.github.io/lfe-sicp
SICP, the LFE Edition
Home Page: https://cnbbooks.github.io/lfe-sicp
Hi Duncan. This is Nelson from the mailing list. I'm going over the book and you talk about the "true atom" without giving a discussion on what an atom is. A search through the repo only talks about atoms in this section.
make deps works however I am unable to make setup and therefore the local copy of the Gitbook. What am I missing?
Core i3 on Netrunner which is based off of Arch Linux.
Output:
sudo make setup
Installing GitBook 2.6.7
[email protected] ../../../../../tmp/tmp-92836sPbG9rjERle/node_modules/gitbook
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected]
Error loading version latest: Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at evalmachine.:40:20
at Object. (/root/.gitbook/versions/2.6.7/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
TypeError: Cannot read property 'commands' of null
make: *** [Makefile:15: setup] Error 1
yanosh@lappy ~/s/l/sicp> sudo make book
gitbook build ./ --output=_book
Error loading version latest: Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at evalmachine.:40:20
at Object. (/root/.gitbook/versions/2.6.7/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
TypeError: Cannot read property 'commands' of null
This is a ticket for accepting feedback to the LFE preface (we're still keeping the prefaces to the 1st and 2nd edition).
Towards the end there is a sentence about Scheme and Chapter 5.
"The implementation of Scheme we shall consider in chapter 5 does not share this defect. It will execute an iterative process in constant space, even if the iterative process is described by a recursive function."
If you stick with the current chapter numbering then I believe the chapter would be 15. The part about implementation of scheme will have to be looked at again after the completion of the book since it is unknown whether there will be an implementation of scheme.
In the book you start with chapter 10 and is non traditional. For example, in 10.2.3 Evaluating Combinations you mention chapter 11 which I presume is Chapter 1 for SICP. This is confusing. Is it possible to stick to the original SICP chapters and move 1-9 to an introduction/preface chapter?
In the exercise funcall is mentioned once before but never with the code #'+/2
(defun a-plus-abs-b (a b)
(funcall (if (> b 0)
#'+/2
#'-/2)
a b)))
So I'm assuming that # is some type of way of referencing the quoted function.
#
What exactly does the # do? I tried looking through the reference but it's hard to search for just #
I would like to start contributing to this repo. I am currently working as a software engineer, and I have computer science background. Is there any plan on how to contribute to the document?
any guidelines or plans?
maybe I'm missing an obvious alternative form, but in my solution for the exercise you need the "head" from the unpacking in the second case in the pattern match (which is discarded in the template).:
(defun subsets (('()) '(())) (((cons head tail)) (let ((rest (subsets tail))) (++ rest (lists:map (lambda (r) (cons head r)) rest)))))
Also, I think that using ++ instead of append might be useful to avoid loading that function.
(= a b)
should be
(== a b)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(cond ((= a 4) 6)
((= b 4) (+ 6 7 a))
(else 25))
should be
(cond ((== a 4) 6)
((== b 4) (+ 6 7 a))
(else 25))
Gitbook has changed its services and some of our stuff no longer builds. It would be nice to use some tooling that doesn't depend upon a service going away ... and I'd love to not have to use Ruby.
Ideally, whatever solution we use going forward should satisfy these conditions:
I'll see if it meets our other criteria ...a
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.