AffrescoUI is a native UI engine that renders applications defined in a sandboxed Clojure dialect (AffrescoUI Lisp) or JSON directly via a C++23 and OpenGL 4.1/ES 3.0 renderer, without a browser engine. Thirteen example apps—including Forge (IDE), Tempera (image editor), Sinopia (presentation editor), Modello (3D modeller), and Orrery (planetarium)—demonstrate the system; each is a pure Lisp/JSON document with no native code, drawing all UI, file access, and terminal emulation from the library. The engine reconciles changes in-place within milliseconds (typical edit: 28 tokens; re-read: 27 tokens; full frame: 0.40 ms), preserving focus and state, and supports live reprogramming via an in-app AI assistant, external agents (Claude Code via MCP), scripts, or an nREPL connection for editors. A version-control layer (modules/vcs) governs every revision: SHA-256 commits form an append-only main branch; proposals act as live-preview branches; permission rules (deny/ask/allow) judge changes by effect, not syntax, with budgets and protected controls. Accepted commits update the running document atomically; any commit can be undone while retaining later independent changes. Features travel between apps via contribution points and contracts (e.g., Orrery installs Sinopia's slide sorter). The architecture comprises swappable modules (render, format, lisp, themes, data, audio, scene3d, automation, imaging, export, capi) communicating only through core interfaces. The Lisp dialect matches 163 of 186 everyday Clojure forms, passes a cross-dialect conformance suite, and is linted by clj-kondo. Sandboxing prevents direct file, process, or network access; all capabilities are host-granted services checked against code authority. The affrescoui_launcher host opens apps, manages AI providers (Claude, Copilot, local Ollama/LM Studio/llama.cpp), and serves a catalogue of installable change sets. Builds require CMake 3.25+ and a C++23 compiler; CI validates on Linux, Windows, macOS, and WebAssembly (WebGL2), with pixel-perfect golden-image rendering tests.

Read original