← Sat, Nov 28 digest

Why stop at Emacs? Native apps you or an AI reprogram in Clojure while they run

read article ↗ hn thread ↗

AffrescoUI is a native C++ UI engine running a sandboxed Clojure dialect that lets users and AI agents live-modify running applications without restarts.

read it The project successfully bridges Smalltalk-style live malleability with modern AI agents, offering deep architectural insights into stateful UI engines.

summary

AffrescoUI is a from-scratch C++23 and OpenGL UI engine that represents applications using a sandboxed dialect of Clojure or JSON. Users and AI agents can interactively reprogram running apps on the fly through an MCP server or built-in assistants. Changes pass through version control rules and proposals, applying in place within milliseconds without losing state or restarting. The repository ships with thirteen complex example applications, including code editors, 3D modelers, and Kanban boards.

key points

  1. Built on a custom C++23 and OpenGL engine, AffrescoUI updates only modified components, allowing a full frame render in under half a millisecond.
  2. Applications are written in a sandboxed Clojure dialect or JSON, providing a uniform structure that LLMs can easily parse and rewrite token-efficiently.
  3. A robust permission and proposal system allows users to preview, accept, or reject AI-driven changes in real-time before they commit to the running app state.

who should read it

Systems programmers, Lisp enthusiasts, and developers interested in AI-driven malleable software and custom UI engines.

discussion warm

consensus

Commenters overwhelmingly praise the project, drawing strong parallels to Smalltalk, image-based programming, and Emacs-style self-modifying software. Many emphasize that Lisp's code-is-data philosophy makes it the ultimate environment for AI agentic workflows.

pushback

A few participants expressed hesitation regarding the complexity of untyped, macro-heavy Clojure code for LLMs, questioning whether it requires frontier models to function reliably.

best comment by jimbokun ↗

Yes, UX for AI agents is very under explored.

The big players are focused on harnesses for traditional software development, including source control, pull requests, deployments, automated testing, etc.

But the Smalltalk/Lisp model seems a much better fit for “power users” working on something other than commercial software. Science, engineering, art, etc. where a domain expert can dictate the software they need interactively into existence on the fly.

It highlights how the Smalltalk/Lisp model uniquely enables domain experts to interactively prompt custom software into existence for fields like science and engineering.

Generated by an LLM from the article and thread. Check the sources before relying on it.