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.

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.

AntonRich

AntonRich


Some interesting caveats I discovered as I ran this code.

-x here should be - x (with a space).

I couldn’t figure this out.

If I write -1 in racket it’s okay.
If I write (-1) it gives me an error:
application: not a procedure;
expected a procedure that can be applied to arguments

The cond is similar to cond in Elixir.

Where Next?

Popular General Dev topics Top

AstonJ
The obligatory speed test thread :smiley: Check here: https://www.speedtest.net When complete, click on the share link and copy and pas...
New
justinjunodev
Figured this would be a cool topic and maybe provide some inspiration for those who are just starting to work from home. Feel free to sha...
New
Exadra37
Have you ever wanted to build something but you had no idea what to do? Just as authors sometimes have “writers block” it’s also true for...
New
New
AstonJ
It’s great to see how popular some of these channels have become - do you have any favourite YouTuber devs? Ben Awad Code...
New
AstonJ
Are you a touch typist? :keyboard: poll If you haven’t checked your typing speed yet, you can do so here here :smiley:
New
New
OvermindDL1
Maybe we need a thread of hosting providers we like and for what reasons. I personally like OVH, they are a very low level host (they re...
New
DevotionGeo
Amazon CodeWhisperer is an alternative to GitHub Copilot, and it’s free!
New
harwind
I’m working on a C++ program where I need to convert a string containing a numeric value into an integer. I want to ensure that this conv...
New

Other popular topics Top

Devtalk
Hello Devtalk World! Please let us know a little about who you are and where you’re from :nerd_face:
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
AstonJ
I have seen the keycaps I want - they are due for a group-buy this week but won’t be delivered until October next year!!! :rofl: The Ser...
New
AstonJ
Do the test and post your score :nerd_face: :keyboard: If possible, please add info such as the keyboard you’re using, the layout (Qw...
New
DevotionGeo
The V Programming Language Simple language for building maintainable programs V is already mentioned couple of times in the forum, but I...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1143 25883 760
New
AstonJ
Biggest jackpot ever apparently! :upside_down_face: I don’t (usually) gamble/play the lottery, but working on a program to predict the...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
New
sir.laksmana_wenk
I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc. However, I don’t...
New