cs 325 home


Assignment 0: Set up a working Lisp environment

Goal:

To set up the Lisp -- and email -- environment you'll be using for the rest of this class.

What to do:

Get and install Common Lisp: Windows and Linux users: get Allegro Common Lisp for your computer from Franz, Inc.. (Macintosh Common Lisp should contact me.)

Get and install the CS 325 files:

First, make a CS325 directory somewhere, e.g., "C:\cs325" in Windows.

Next, download the following files from cs325.zip. Unzip the contents of that file into your CS325 directory.

Allegro CL users: Download startup.cl into wherever you installed Allegro, e.g., C:\Program Files\acl61\.

Macintosh CL users: Download init.lisp into wherever you installed Macintosh Common Lisp.

Open startup.cl or init.lisp in a plain text editor, e.g., Notepad on Windows, SimpleText on Macintosh. Find the line that loads cs325.lisp and change the pathname to match where you put the CS325 code files.

Test your Lisp:

Start your Lisp. If you get any error messages, you either modified your startup file incorrectly, or put files in the wrong place.

If Lisp starts OK, type:

(in-package :cs325-user)

followed by a carriage return. The prompt should now indicate that you're in CS325-USER.

Type:

(critique (defun foo (x) (setq x (+ x 1))))

If all has been set up correctly, the above should cause several critiques of the above code to appear. If not, you need to fix your start up file.

What to hand in:

Email to c25@cs.northwestern.edu

Where to get help:

There's a lot of ways to make trivial errors in configuring any language environment, and most of them lead to fairly cryptic messages and behavior.

The best source of help will be the CS 325 newsgroup. Make sure your newsreader is finding all messages, including old ones.


Comments? Send mail to Chris Riesbeck.