AntonRich

AntonRich

Started reading SICP on a whim

I don’t know what happened today. But I just started reading SICP which I meant to do for a long time.

The book itself:

I’m not even sure whether I’ll finish the book. Yet, I see that it is written in an interesting way. Which at least makes a good past time reading : )

Is there anybody who finished it?

P.S. I’m doing it with Racket and the package called sicp.
It’s nice that Racket has a repl.

Most Liked

gfqdjb

gfqdjb

For those who might not know, there’s a full course taught by the authors of SICP (Harold Abelson and Gerald Jay Sussman) that you can use to complement the book:

There’s also a JavaScript adaptation of SICP, published by MIT Press in 2022. You can read it for free here:

Just a heads-up: some people criticize the JavaScript version for using questionable coding practices, like overusing the ternary operator instead of standard if...else blocks. So the examples might not always reflect what you’d call “good code”.

If you’re looking for other solid introductions to computer science and programming, these books are often highly recommended:

Some folks even argue that DCIC is the best foundational CS book out there. I haven’t read any of them myself, so I can’t say for sure, but they’re worth looking into.

SebAlbert

SebAlbert

I read a print copy of SICP (2e) during Covid, up to the last section in chapter 4, where they would start implementing something like Prolog if I remember correctly. One day I’ll want to finish the book.

SICP was a great shift in gears on my journey to becoming polyglot, a great introduction to “lispy” thinking. I read it after diving deep into Python, but it still improved my understanding and appreciation of Python as a dynamic and well-designed language (if you focus on the parts that functional programmers like). And it laid the foundation for my learning of Clojure, which I highly appreciate.

For what it’s worth, I don’t see how the JavaScript version should use more if/else than ternary. The whole point in SICP and Scheme (and the lispy languages) is that most things should be expressions, not statements.

On the side note of HtDP, I tried the beginnings a couple of times, but can’t find patience for the dogmatic style of writing stuff down upfront before coding. Writing code is too intermingled with my thought process. (not vibe-coding, and not committing or opening a PR too quickly, but just seeing my thoughts in code on the screen and then moving them around)

gfqdjb

gfqdjb

I think shifting between Pyret and Python was also a good move.

Just to expand on what I said earlier, SICP was the textbook for MIT’s former introductory programming course, 6.001. That course was taught at MIT for over 20 years until it was replaced in 2008. Since then, the introductory programming courses have been taught in Python.

Here’s what Gerald Jay Sussman, one of the authors of SICP and a former 6.001 instructor, said about the book/course being replaced and the switch from Scheme to Python:

Costanza asked Sussman why MIT had switched away from Scheme for their introductory programming course, 6.001. This was a gem. He said that the reason that happened was because engineering in 1980 was not what it was in the mid-90s or in 2000. In 1980, good programmers spent a lot of time thinking, and then produced spare code that they thought should work. Code ran close to the metal, even Scheme — it was understandable all the way down. Like a resistor, where you could read the bands and know the power rating and the tolerance and the resistance and V=IR and that’s all there was to know. 6.001 had been conceived to teach engineers how to take small parts that they understood entirely and use simple techniques to compose them into larger things that do what you want.

But programming now isn’t so much like that, said Sussman. Nowadays you muck around with incomprehensible or nonexistent man pages for software you don’t know who wrote. You have to do basic science on your libraries to see how they work, trying out different inputs and seeing how the code reacts. This is a fundamentally different job, and it needed a different course.

So the good thing about the new 6.001 was that it was robot-centered — you had to program a little robot to move around. And robots are not like resistors, behaving according to ideal functions. Wheels slip, the environment changes, etc — you have to build in robustness to the system, in a different way than the one SICP discusses.

And why Python, then? Well, said Sussman, it probably just had a library already implemented for the robotics interface, that was all.

Source: international lisp conference -- day two — wingolog

If you want to follow MIT’s current introductory programming path, these are the courses available on MIT OpenCourseWare:

There is also a full-semester version of 6.0001 with the same content but a slower pace:

All of these courses use the same textbook:

So there you have it, another solid book to add to your reading list.

Where Next?

Popular General Dev topics Top

wolf4earth
Inspired by this thread about arcade games - which I initially misread as favorite arcade game soundtracks - I wanted to ask about your f...
New
axelson
Can anyone recommend a tmux session switcher? I’ve used https://github.com/siadat/session-finder in the past but it’s not very actively m...
New
AstonJ
Looking at @siddhant3030’s photo from the Do you blog? thread, do you cover your computer or phone camera as a security precaution? Wha...
New
AstonJ
Inspired by this tweet by @dasdom Even if you take out all the damage being done by humans, our planet has about 50B years before bein...
New
DevotionGeo
As the title suggests, this thread will contain some real wisdom came from experience. Please add something meaningful than fancy looking...
New
AstonJ
Inspired by this post from @Carter, which languages, frameworks or other tech or tools do you think is killing it right now? :upside_down...
New
finner
One of my 2021 resolutions is to read more tech books. As part of this effort I purchased two MEAPs (Manning Early Access Program) which...
New
DevotionGeo
The Odin programming language is designed with the intent of creating an alternative to C with the following goals: simplicity high per...
New
AstonJ
Things like smart speakers (such Amazon Alexa), smart TVs or other devices with built in microphones, cameras or with other features that...
New
OvermindDL1
What shell(s) do you use, why do you use them, and how do you have them configured? Note, this is about shell’s, not terminals, terminal...
New

Other popular topics Top

DevotionGeo
I know that -t flag is used along with -i flag for getting an interactive shell. But I cannot digest what the man page for docker run com...
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
AstonJ
You might be thinking we should just ask who’s not using VSCode :joy: however there are some new additions in the space that might give V...
New
AstonJ
I ended up cancelling my Moonlander order as I think it’s just going to be a bit too bulky for me. I think the Planck and the Preonic (o...
New
dimitarvp
Small essay with thoughts on macOS vs. Linux: I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
New
gagan7995
API 4 Path: /user/following/ Method: GET Description: Returns the list of all names of people whom the user follows Response [ { ...
New
foxtrottwist
A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
New
PragmaticBookshelf
Develop, deploy, and debug BEAM applications using BEAMOps: a new paradigm that focuses on scalability, fault tolerance, and owning each ...
New
AstonJ
If you’re getting errors like this: psql: error: connection to server on socket “/tmp/.s.PGSQL.5432” failed: No such file or directory ...
New
PragmaticBookshelf
Get the comprehensive, insider information you need for Rails 8 with the new edition of this award-winning classic. Sam Ruby @rubys ...
New