Pure Lisp UI Libraries
When looking for UI libraries written entirely in Common Lisp (not bindings to other GUI frameworks), there are several options available. While most Common Lisp GUI solutions are bindings to external frameworks like GTK, Qt, or Tk, there are some notable exceptions developed purely in Lisp.
Fully Native Lisp UI Libraries
McCLIM
McCLIM is a free implementation of the Common Lisp Interface Manager (CLIM) specification, written entirely in Common Lisp[9][10]. As a complete UI toolkit, it provides:
- A layered set of portable facilities for constructing GUIs
- No dependencies on external GUI toolkits
- Cross-platform support (runs on Linux and Windows, though it requires an X server on Windows)
- A planned SDL2 backend is expected sometime in 2024/2025[12]
McCLIM has seen continued development, with its most recent activities focusing on improving its backends and overall usability. One example project built with McCLIM is a Lem editor interface[14].
Garnet
Garnet is a user interface development environment and GUI toolkit implemented in Common Lisp[9][17]. It features:
- A complete UI development environment
- No reliance on external toolkits (though it does use X Window System)
- Development has been ongoing, with efforts to create an interface to GTK
CLIO (Common Lisp Interactive Objects)
CLIO provides a set of CLOS classes representing standard components of an object-oriented user interface, including text elements, menus, buttons, scrollers, and dialogs[9]. It's entirely Lisp-based rather than binding to external toolkits.
Barium
Barium is a newer option (as of April 2025) that directly accesses the X client library without wrapping another toolkit[14]. It provides:
- Direct access to platform libraries (OpenGL, Cairo)
- Support for incremental GUI development
- X window system integration without third-party bindings
CLUE (Common Lisp User Interface Environment)
CLUE is a GUI library based on the X Window System and modeled on Xt, implemented in Common Lisp[9].
Declarative Approaches in Lisp UIs
While the traditional MVU (Model-View-Update) pattern isn't explicitly mentioned for most Lisp UI libraries, some do offer declarative capabilities:
Cells-gtk
While cells-gtk does use GTK+ as its underlying toolkit, it enhances it with a declarative style approach using the Cells library[9]. The Cells system allows for:
- Declarative-style description of GUI components
- Automatic propagation of state changes (similar to reactive programming models)
- Data-flow oriented programming model
Interface-Passing Style in LIL
The Lisp Interface Library (LIL) isn't specifically a UI library, but it demonstrates a style that could be adapted for declarative UI design. It supports:
- Both pure (persistent, immutable) and stateful (ephemeral, mutable) variants of data structures[1][13]
- Combining ad-hoc polymorphism (CLOS-powered OOP) with parametric polymorphism[1][13]
- Interface-Passing Style that could be applied to UI component design
Alternatives Worth Considering
If you're willing to consider options that aren't 100% pure Lisp but offer strong declarative patterns:
CLOG
CLOG uses browser technologies but with a Common Lisp backend, potentially offering a declarative approach to building UIs[3][12]. While not pure Lisp on the rendering side, all your programming happens in Lisp.
Alloy
A very new toolkit written in 100% Common Lisp that has been used in game development contexts like the Kandria game[15]. Being newer, it might incorporate more modern UI design patterns.
Conclusion
For truly pure Lisp UI libraries with declarative patterns, your best options are:
- McCLIM - The most mature pure Lisp GUI toolkit, though its programming model is not explicitly MVU-based
- Cells-gtk - Offers a declarative approach, though with GTK+ dependencies
- Barium - Being newer (2025), it might incorporate more modern concepts but has less documentation and community support
None of these perfectly match the MVU pattern seen in Elm, React, or modern JavaScript frameworks, but they do offer ways to create UIs entirely in Lisp with various degrees of declarative capabilities.