We will use Piazza for questions about the assignments, for students to discuss course materials, and to make announcements about the class. You are responsible for being current with the information and discussions that are posted there.
You will get an email from Piazza with a link inviting you to create an account within the first week of the term. If you haven't gotten one in that time, please contact course staff.
In addition to the web interface, there are Piazza apps for Android and iOS available for free through their respective app stores.
SML of New Jersey (sml/nj) is installed in the Wesleyan Mac labs (e.g. the one on Exley 1st floor). It can be run by starting Terminal and typing sml. They are running version 110.76. You can use a variant of Emacs called Aquamacs to edit SML files (instructions for how to set up syntax highlighting for Aquamacs coming soon).
To install a local copy of sml/nj:
$ sudo port install rlwrap(This assumes you have MacPorts installed from last semester. Otherwise install from here. You will need to type your mac password.) rlwrap is a utility that lets you use the left/right arrow keys to move around and use the up/down arrows to go through lines you have previously typed.
$ echo 'export PATH="/opt/local/bin:/usr/local/smlnj/bin:${PATH}"' >> ~/.bash_profile
$ echo 'alias smlnj="rlwrap sml"' >> ~/.bash_profile
OPTIONAL: rlwrap is a utility that lets you use the left/right arrow keys to move around and use the up/down arrows to go through lines you have previously typed. To install it, rerun the Cygwin installer. You may still have setup-x86.exe on your computer from last semester, or you can download it again here. When you get to the screen where you select which packages to install
type rlwrap into the search box, and then click on "Skip" until it becomes a number, so that the rlwrap package will be installed. Then proceed with the installer, which should install this one new package and update any other necessary packages (this should be faster than the original install.)
echo 'export PATH=$PATH:/cygdrive/c/SMLNJ/bin'>> ~/.bash_profile
echo 'alias smlnj="rlwrap sml.bat"' >> ~/.bash_profileOtherwise run
echo 'alias smlnj="sml.bat"' >> ~/.bash_profile
Sublime Text is available here; get version 2. If you don't already have it, install Sublime and Package Control by following the directions on last semester's web page.
To get syntax highlighting, install the "SML (Standard ML)" package.
To use SML highlighting, you may now navigate to View > Syntax > SML.
If you have Linux, you almost certainly have emacs installed. For Mac and Windows get:
To install SML syntax highlighting:
Find file: ~/.emacsand press enter. This is your emacs startup file.
Some emacs resources:
For the written assignments, you may wish to use LaTeX.
LaTeX is built from Don Knuth's TeX typesetting language, and has grown through community support to be both extremely powerful and easy to use. LaTeX is installed on the Andrew UNIX servers, and can be downloaded and installed on local machines as well. There are any number of excellent resources about how to use LaTeX; a few are listed here for your convenience.
LaTeX source files can be created with any text editor, so emacs and vim are excellent choices. There are several LaTeX specific IDEs that you may find more comfortable to use, depending on your working environment: