Skip to content

Instantly share code, notes, and snippets.

@lgmkr
Forked from deepak/install-mit-schema-for-SICP.md
Created December 30, 2017 11:30
Show Gist options
  • Save lgmkr/0c7b1ddcac3b6749428f8f6b396d54e8 to your computer and use it in GitHub Desktop.
Save lgmkr/0c7b1ddcac3b6749428f8f6b396d54e8 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