Scheme and SICP — on a Mac

Posted by

Given that I am teaching myself to code so that I can better use R, I guess it was inevitable that I started reading Abelson & Sussman’s Structure and Interpretation of Computer Programs (I’ve been using a modern, freshly re-typset version of SICP).

Doing the exercises is a key part of SICP — so I needed a version of Scheme to play with. I decided to go with Petite Chez Scheme, which is a free version of Cadence Research Systems’ fast (industrial strength) Chez Scheme.

Screen Shot 2013-04-21 at 5.47.27 PM

Installing it was a snap. First, I downloaded pcsv8.4-ta6osx-1.pkg.tar.gz from the chez scheme downloads page (highlighted in the screen-shot, above).

Next, I opened the downloads folder in finder, and double-clicked the file (file #1 in the below screenshot) — which caused the disk-image file (file #2) to unpack in the directory.

Screen Shot 2013-04-21 at 5.46.43 PM

Double-clicking this file caused the installer to open.

Screen Shot 2013-04-21 at 5.53.05 PM

At which point installing petite chez scheme was just a question of clicking through the options (I accepted the defaults). It takes ~3mb of space, so it only takes a few moments to complete the install.

To test to see how if the install was successful, open a new terminal session and type in:

$ petite

You ought to see something like the below — though you’ll have to add your own Scheme boiler-plate!

Screen Shot 2013-04-21 at 5.57.33 PM

One comment

Comments are closed.