LISP 1.5 is to all Lisp dialects as Beowulf is to English literature.
Find a file
2019-08-23 11:34:42 +01:00
doc Initial commit: It's sort-of beginning to work... 2019-08-14 16:38:26 +01:00
docs INTEROP written, but not yet wired in. 2019-08-21 09:35:40 +01:00
resources Added command-line flags, some of which actually work. 2019-08-19 17:06:10 +01:00
src/beowulf Added unit tests for RPLACA and RPLACD 2019-08-23 11:34:42 +01:00
test/beowulf Added unit tests for RPLACA and RPLACD 2019-08-23 11:34:42 +01:00
.gitignore Added rplaca as a method - this does not work. 2019-08-22 19:16:36 +01:00
CHANGELOG.md Initial commit: It's sort-of beginning to work... 2019-08-14 16:38:26 +01:00
LICENSE Initial commit: It's sort-of beginning to work... 2019-08-14 16:38:26 +01:00
project.clj Version 0.2.1-SNAPSHOT 2019-08-20 17:21:29 +01:00
README.md Ooops... 2019-08-20 17:51:02 +01:00

beowulf

LISP 1.5 is to all Lisp dialects as Beowulf is to Emglish literature.

What this is

A work-in-progress towards an implementation of Lisp 1.5 in Clojure. The objective is to build a complete and accurate implementation of Lisp 1.5 as described in the manual, with, in so far as is possible, exactly the same bahaviour - except as documented below.

Status

Boots to REPL, but few functions yet available.

Architectural plan

Not everything documented in this section is yet built. It indicates the direction of travel and intended destination, not the current state.

resources/lisp1.5.lsp

The objective is to have within resources/lisp1.5.lsp, all those functions defined in the Lisp 1.5 Programmer's Manual which can be implemented in Lisp.

This means that, while Beowulf is hosted on Clojure, all that would be required to rehost Lisp 1.5 on a different platform would be to reimplement

  • bootstrap.clj
  • host.clj
  • read.clj

The objective this is to make it fairly easy to implement Lisp 1.5 on top of any of the many Make A Lisp implementations.

beowulf/boostrap.clj

This file is essentially Lisp as defined in Chapter 1 (pages 1-14) of the Lisp 1.5 Programmer's Manual; that is to say, a very simple Lisp language, which should, I believe, be sufficient in conjunction with the functions provided by beowulf.host, be sufficient to bootstrap the full Lisp 1.5 interpreter.

In addition it contains the function INTEROP, which allows host language functions to be called from Lisp.

beowulf/host.clj

This file provides Lisp 1.5 functions which can't be (or can't efficiently be) implemented in Lisp 1.5, which therefore need to be implemented in the host language, in this case Clojure.

beowulf/read.clj

This file provides the reader required for boostrapping. It's not a bad reader - it provides feedback on errors found in the input - but it isn't the real Lisp reader.

Intended deviations from the behaviour of the real Lisp reader are as follows:

  1. It reads the meta-expression language MEXPR in addition to the symbolic expression language SEXPR, which I do not believe the Lisp 1.5 reader ever did;
  2. It treats everything between a semi-colon and an end of line as a comment, as most modern Lisps do; but I do not believe Lisp 1.5 had this feature.

BUT WHY?!!?!

Because.

Because Lisp is the only computer language worth learning, and if a thing is worth learning, it's worth learning properly; which means going back to the beginning and trying to understand that.

Because there is, so far as I know, no working implementation of Lisp 1.5 for modern machines.

Because I'm barking mad, and this is therapy.

Commentary

What's surprised me in working on this is how much more polished Lisp 1.5 is than legend had led me to believe. The language is remarkably close to Portable Standard Lisp which is in my opinion one of the best and most usable early Lisp implementations. I'm convinced you could still use Lisp 1.5 for interesting and useful software (which isn't to say that some modern Lisps aren't better, but this is software which is almost sixty years old).

Installation

At present, clone the source and build it using

lein uberjar.

You will require to have Leiningen installed.

Usage

java -jar beowulf-0.1.0-standalone.jar

This will start a Lisp 1.5 read/eval/print loop (REPL).

To end a session, type quit at the command prompt.

Learning Lisp 1.5

The Lisp 1.5 Programmer's Manual is still in print, ISBN 13 978-0-262-13011-0; but it's also available online.

Other Lisp 1.5 resources

The main resource I'm aware of is the Software Preservation Society's site, here. It has lots of fascinating stuff including full assembler listings for various obsolete processors, but I failed to find the Lisp source of Lisp functions as a text file, which is why resources/lisp1.5.lsp is largely copytyped and reconstructed from the manual.

I'm not at this time aware of any other working Lisp 1.5 implementations.

License

Copyright © 2019 Simon Brooke. Licensed under the GNU General Public License, version 2.0 or (at your option) any later version.