Skip to content

Latest commit

 

History

History
123 lines (85 loc) · 3.18 KB

running.md

File metadata and controls

123 lines (85 loc) · 3.18 KB

Running

Running old Lisp editors to learn their behavior by experience.

Interlisp Teletype

A working Interlisp command-line emulator can be found at:
https://github.com/blakemcbride/LISPF4

The repo includes binaries for windows, mac, and linux. Building is also painless.

Run Interlisp command prompt on Mac:

brew install rlwrap         # lets us use arrow keys in the Interlisp prompt

cd Mac
rlwrap ./lispf4 BASIC.IMG

Run the editor for an arbitrary expression:

_(EDITS '(A B (C D) E F G))    

*PP
(A B
   (C D)
   E F G)

*(BO 3)
*PP
(A B C D E F G)

Exiting:

  • OK exits the editor
  • (EXIT) exits the Interlisp emulator

Interlisp DEdit?

Unfortunately, I do not know how to run DEdit, since the only publicly available Interlisp-D environment runs only SEdit, which replaced DEdit:

The list structure editor, DEdit, is not part of the Lisp environment. It is now a Lisp Library Module.
Medley Release Notes chapter 16

Interlisp SEDit

Running an emulated SEdit is trickier than the teletype editor since it requires the Interlisp-D graphical environment.

Xerox has published a free Interlisp-D environment (for research and education), described here. It is bundled with programs for allowing linguists to create "Lexical Functional Grammars", but we are using it only to discover the behavior of Interlisp's SEdit.

The last binaries were built in 2003, so we must run it in a supported OS from that time. We can do this by running Debian 3.1 + X11 inside VirtualBox.

You can build it yourself with these instructions, or use our prepackaged image below.

Run the VM:

  1. Download our prepackaged debian image
  2. Open VirtualBox
  3. Create a new VirtualBox VM (Linux 2.4, 32 bit)
  4. Point it to an existing disk (the vdi file from step 1)
  5. In Settings, ensure pointing device is a PS/2 Mouse
  6. In Settings, ensure that the disc is mounted as an IDE device
  7. Start

Once inside Debian, run Interlisp:

  1. Login as root/toor
  2. Hold click on Debian's desktop (and keep holding)
  3. Hover on Debian's right menu icon
  4. Hover on XShells's right menu icon
  5. Release click on XTerm
cd lfg
./ldex lfg.sysout

Once inside InterLisp, run SEdit:

  1. Close the open windows by holding right-click on each window head > close
  2. Hold right-click on Interlisp's desktop > EXEC
  3. Type (ED 'FOO) > click "Functions" > click "Defun"
  4. You are now in an SEdit window.

Nokolisp

  1. Download noko.exe and place it in some empty directory (e.g. ~/nokolisp used below)
  2. Open DOSBox.
Z:\>mount c: ~/nokolisp

Z:\>c:

C:\>noko

You can display and edit the packaged fib function to try it out:

0> fib

1> (edit fib)