Intelligent Media Lab.
日本語

SOFTWARE

muCommonLISP

macOS / Linux

A Common Lisp implementation with a compiler that runs in the macOS GUI environment. Written in Swift + SwiftUI, it runs as a macOS app with a built-in editor, a REPL, and multiple graphics windows. The execution engine is a bytecode compiler with a stack VM, and the object system is a full user-level CLOS implementation with a basic MOP.

Structure

  • MuLispCore — the implementation itself (reader, compiler, VM, CLOS, condition/restart system, numeric tower)
  • muCommonLISP — the macOS GUI app (REPL plus independent editor and graphics windows)
  • mulisp — command-line REPL and file execution (macOS and Linux)

Main features

  • GUI — a REPL that evaluates with ⌘⏎, and an editor with an independent window per buffer (syntax highlighting, matching parentheses, auto-indent, Tab symbol completion, ⌘J jump to definition, ⌘E evaluate expression)
  • Graphics API — drawing with draw-line, draw-rect, draw-circle, draw-text and so on, with any number of independent windows created by make-graphics-window; SVG export is also supported (usable from the CLI)
  • Language features — a broad subset of ANSI Common Lisp: a numeric tower with bignums, rationals and complex numbers; mutable strings, multidimensional arrays, hash tables and structures; tagbody/go; the condition system with restarts; multiple values; extended subsets of LOOP and FORMAT; full CLOS with multiple inheritance and a MOP

Run with swift run muCommonLISP (GUI) or swift run mulisp (CLI) on macOS 13 or later with Xcode 15 or later. See the GitHub repository for details.

← Back to list