Skip to content

Instantly share code, notes, and snippets.

@deepak
Last active May 10, 2021 19:51
Show Gist options
  • Save deepak/f81a1aa5ecb530a859cd to your computer and use it in GitHub Desktop.
Save deepak/f81a1aa5ecb530a859cd to your computer and use it in GitHub Desktop.
installing MIT-scheme for doing SICP

installing MIT Schema

The SICP page recommends MIT scheme,
so that is what we will use

to install it, on Apple OSX using Homebrew:

  brew tap x11
  brew cask install xquartz
  brew install mit-scheme
  brew install with-readline

you will see /usr/local/bin/scheme linked to mit-scheme under Homebrew's cellar

can run with-readline scheme to get a basic REPL with readline support.
the CLI did not respond to `-?' or other variations.
so see the help for details.

if interested see an-opinionated-guide-to-scheme-implementations by the author of Guile

using scheme

the file extension for scheme is scm
opening a scm file in emacs should give the scheme mode by default

can type M-x run-scheme to run a scheme process. emacs buffer is named *scheme*
can type C-c C-l to load a file inside the emacs *scheme* buffer

emacs has other scheme modes see alexott.net and emacswiki for more details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment