2.1  Supported Schemes

Sassy ships with support for the following Scheme interpreters (with the indicated minimal version number):

Sassy was developed on GNU/Linux, though since Sassy is embedded in Scheme, Sassy should (theoretically) run everywhere Scheme does. If you are running Scheme on a non *nix box, (Windows, for instance), you may want to grab the .zip archive instead of the .tar.gz.

2.2  Installing

($ means a shell prompt, > means a Scheme prompt.)

2.2.1  Chicken

Sassy is available as an egg, so the easiest way to install (and compile) Sassy is to do:

$ chicken-setup sassy 

Users report that it is sometimes necessary to use the -split option when building Sassy for Chicken on machines with low memory. For example, using -split 8:

> (compile sassy-chicken.scm -o -s -O2 -d1 -split 8 -C -time -C -Os) 

The setup file for building Sassy for Chicken is sassy.setup in Sassy’s distribution directory. If you don’t want to compile Sassy (it can take a while), see below.

2.2.2  Scheme48

Starting with version 0.2, Sassy now includes module definitions for Scheme48’s module system.

First unpack the archive, change directories, and load scheme48 with a fairly large heap:

$ tar xfz sassy-0.2.tar.gz; cd sassy-0.2 
$ scheme48 -h 6000000 


> ,config ,load sassy-48.scm 
> ,open sassy 

2.2.3  Other Schemes

To start up Sassy, unpack Sassy’s distribution directory and enter it:

$ tar xfz sassy-0.2.tar.gz 
$ cd sassy-0.2 

Now you have to edit one line in the file sassy.scm. At the top of the file, un-comment the line that loads the initialization file for the Scheme interpreter you want to use, and comment out the others. Then quit your editor and start the Scheme interpreter. Gauche users should start gosh with gosh -I. in order to add the current directory to gosh’s load-path.


> (load "sassy.scm") 

Loading all the source files may take a few seconds. When your Scheme prompt returns, Sassy is loaded and ready to go.

If you want to run the test-suite:

> (load "tests/run-tests.scm") 
> (sassy-run-tests 'all) 

2.2.4  Caveats

2.3  Sassy and GNU Emacs

A minor mode with some syntax highlighting exists for editing sassy files under GNU Emacs. See the file sassy.el in the top level of Sassy’s distribution directory.

2.4  Porting Sassy

Sassy is written in R5RS Scheme with the addition of the following:

Sassy makes use of bignum and floating-point arithmetic (when you write floating-point data) and the optional (interaction-environment) to perform macro-expansion.

The included output modules also need:

—procedure: file-exists? file -> boolean
—procedure: delete-file file

Most (good) Scheme implementations provide a version of the underlying functionality if they don’t provide the SRFI itself. You only need to write wrappers that implement the specified interfaces for just the functions or syntax listed above.