Hacker News·First covered 29 Nov 2026
Why stop at Emacs? Native apps you or an AI reprogram in Clojure while they run
AffrescoUI is a native C++ and OpenGL UI engine whose apps are written in a sandboxed Clojure dialect, so a user or an AI agent can change a running app without a rebuild or restart.
Stats
(As of 29 Nov 2026)- Points
- 136
- Comments
- 95
- Submitted by
- RiccardoSottini
- Posted
- 1d
- An app is a set of named Lisp definitions for windows, views, state, commands and keys; the same document can also be written as JSON.
- Every proposed change is checked against permission rules of deny, ask or allow, and reviewable proposals work like branches with a live preview.
- Accepted changes become SHA-256 commits on main, any of which can be undone while keeping later edits.
- Claude Code connects through an MCP server; the built-in assistant can also use GitHub Copilot or local models via Ollama, LM Studio or llama.cpp.
- Thirteen example apps ship in the repo, and the build needs CMake 3.25 and a C++23 compiler.
The discussion
- ThemeSeveral see a return to Smalltalk-style live environments, which they have long thought suit AI well; the author says Smalltalk support has been suggested. comment
- DisputedA Clojure fan worries the untyped, macro-heavy examples need a strong model to edit correctly; the author agrees a top-tier model is the minimum. comment
- CounterpointOne commenter says self-modifying programs date back to 1980s BASIC; a reply notes BASIC needed a restart, while this keeps state. comment
- ThemeThe thread fills with similar projects, including one where agents may only write declarative data over a closed vocabulary, never code. comment