You will need to make use of three different software packages for this course:
Because vim's sml mode provides a fairly good indenting algorithm, we will require that you use Vim until later in the course. Vim will also give you warnings when exceeding the 80-character line limit -- something you will certainly find useful.
Installing SML and Vim
- Download the self-installing file, smlnj.msi, for Windows and run it.
- After installing SML/NJ, download this setup file (3.6 MB) Vim editor
- Install Vim to
C:\Program Files\Vim\directory. (If you really object to this location, ask for assistance.)
- Locate Vim in your start menu and start gVim.
Note: For installation of SML/NJ on Windows 2000 or Windows XP, you may experience some difficulties after installing. The problem is that the system path variable is not being set correctly. Here is a workaround: Follow the instructions above. Click Start -> Run and type "cmd". If you get a command window, you are ok. Otherwise do the following: Right click on My Computer -> Properties -> Advanced tab -> Environment Variables -> System Variables -> Path -> Edit. Cut the value of the path variable and paste it back again. Click OK to close everything and try Start -> Run -> cmd again. You should be ok.Setting up your newsreader
- You may use any news reader you like, but you need to have at least one. These instructions are for Outlook Express. To set up a news account in Outlook Express, first start up Outlook Express and exit out of the myriad wizards that start up.
- Once at the main screen, choose Accounts... from the Tools menu.
- Choose to make a new News... account from the Add button.
- Enter your name, click next.
- Enter your e-mail address, click next.
- Enter newsstand.cit.cornell.edu for the name of the news server, check the authentication box, click next.
- Enter your Cornell netid for the account name and your CIT password, click next.
- Click finish and close.
- Choose Newsgroups... from the Tools menu to select the newsgroups you want to read. The newsgroups for this course are cornell.class.cs312 and cornell.class.cs312.talk.
Working versions of SML/NJ are available for Macintosh under OS X (download here). The install instructions are located in file
MACOSXINSTALLlocated on the same page. The working versions differ from the release version in various ways, particularly regarding Compilation Manager, library use, and error messages. Therefore you should expect to have a bit of difficulty with this as the course progresses.
You can use another SML implementation as well. MoscowML is a good option; however, all assignments must compile and run with SML/NJ on PCs, so if you develop your assignment on your Mac, be sure to test it out under SML/NJ on a PC before submitting.
Follow the instructions for installing SML/NJ version 110.0.7. Here are step-by-step instructions for both SML/NJ and Vim installs.Installing CS 312 Software on Linux ## Download smlnj: ## For Debian or Redhat: wget ftp://ftp.research.bell-labs.com/dist/smlnj/release/110/RPMS/smlnj-110.0.7-4.i386.rpm" ## For other linux distributions (or if you prefer to compile from source), ## visit http://cm.bell-labs.com/cm/cs/what/smlnj/install/ for SML/NJ. ## Make a Debian package (skip this step if using Redhat): alien smlnj-110.0.7-4.i386.rpm ## Install (choose one of the following two commands) ## Debian: dpkg -i smlnj_110.0.7-5_i386.deb ## Redhat: rpm -i smlnj-110.0.7-4.i386.rpm ## Get the CS312 customizations for Vim wget http://www.cs.cornell.edu/courses/cs312/2006fa/software/vimfiles.tar.gz ## Put it in your home directory mv vimfiles.tar.gz ~ cd ~ ## Extract it in your home directory :) tar -xvzf vimfiles.tar.gz
As Vim is included with almost every Unix distribution these days, you only need to ensure that your distribution has version 6.1 or greater. This can be checked by typing vim on the command prompt without any arguments.
Note: If you already use vim, backup your vimrc file before extracting the CS312 customizations. After extracting, merge in your vimrc with the one provided by us.