CM20221: Advanced Programming Principles

How to Run Lisp on lcpu

Here are very basic instructions on using the BUCS lcpu machines to write and run Lisp code.

For the coursework, you are also free to run and use a Lisp on your own PC.

You workflow might be

If you are familiar with Linux/Unix

Use ssh to log into lcpu.bath.ac.uk

There are many text editors available, e.g., vi, pico, emacs. Save your code as filename.lsp

You can run Lisp by
~masrjb/bin/clisp
or whatever Lisp you prefer.

Then
(load "filenname.lsp")
to load your code into the Lisp.

If you are familiar with Windows

On the University Windows machines you can use KiTTY to log into lcpu.bath.ac.uk Click on Open

You may need to say "Yes" to "KiTTY Security Alert" (it's not a security alert!). Use your normal BUCS username and password.

Type
cd dos
at the prompt to get to your Windows directory on lcpu

Use your favourite text editor, e.g., notepad, from Windows. Save your code as as filename.lsp (make sure notepad doesn't actually save it as filename.lsp.txt)

You can run lisp by typing
~masrjb/bin/clisp
or whatever Lisp you prefer at the prompt in the lcpu window

Then
(load "filename.lsp")
to load your code into the Lisp.

See also basic unix commands from BUCS.

The advanced user might like to compile and use a Lisp directly on Windows

Unit Web Page