Tools for Functional Design and Programming (E2004)

We recommend using the editor XEmacs and the Standard ML system Moscow ML for the course. This page contains a brief guide to setting up and using these tools on ITU, as well as links for getting the software for your private computer.

Setting up XEmacs and Moscow ML at ITU

XEmacs is installed and available. To enable SML-features, you have to modify one of XEmacs' configuration file. Do the following:

  1. Start XEmacs.
  2. Select the menu item Options, then Save Options to Init File. (You do this exclusively to make XEmacs create a .xemacs directory.)
  3. Copy this file to C:\Documents and Settings\<your account name>\.xemacs\init.el. If the latter already exists, copy-paste the content of the former into it.

That's it!

Using XEmacs and Moscow ML

Quick start from within XEmacs, editing an SML-file:

Very brief tutorial:

IMPORTANT NOTE! Always exit the SML-interpreter by writing quit(); before exiting XEmacs - otherwise, the mosml seemingly survives and eventually hogs all your systems memory.

Tutorials for XEmacs

XEmacs comes with a tutorial that can be accessed from the Help menu.

XEmacs and Moscow ML at home

Linux users: Most major distributions have both XEmacs and Moscow ML available as packages.

Windows users: Follow the links below.


Author: Søren Debois (debois (at) itu.dk)