r/lisp • u/Free_Occasion_8354 • 6d ago
AskLisp AffrescoUI update: now a Clojure dialect, with nREPL into running apps. Thank you, r/lisp!
AffrescoUI is an open-source engine for native desktop apps. Each app is a Lisp program holding its layout, data and behaviour, drawn by a native C++/OpenGL renderer. You change it while it runs: add advice or a hook, or describe the change in plain words and have an AI propose the Lisp edit, which you preview, then keep or undo. The goal is Emacs-style malleability for everyday apps, from a photo editor to a 3D modeller.
Two weeks ago I shared it here and asked for feedback. Thank you all! The comments were full of ideas, and I've spent the last two weeks building as many as I could.
The question I heard most was why I made a new Lisp instead of using a known one. Fair point: it looked like Clojure, but many everyday forms didn't work. So AffrescoUI Lisp is now a Clojure dialect. Threading macros, #(...), case, for, sets, ns and much of the core library work as expected. It's scored against the cross-dialect Clojure test suite, with every intended difference written down. Commands, settings, hooks and advice are all still there.
Other ideas from the thread are in too. You can connect CIDER, Calva or Conjure to a running app over nREPL and evaluate into it. You can point at anything on screen and ask for a change, a bit like presentations. Updates rerun only what depends on a change, in the spirit of Cells. And you can undo an earlier change but keep what was built on top of it.
The new video shows an image editor gaining 3D and slides just by asking its assistant, a new app made from a name and a description, and the Launcher. (The agent's edits were prepared in advance and its waiting time is cut, but every change is a real revision accepted in the running app.)
Your suggestions last time led to so many valuable results that I'd love to ask again:
- Do you think Lisp is the future language for malleable software?
- What feature should I build into AffrescoUI next?
- What would you need before building your own app with it?
GitHub repo if interested: https://github.com/RiccardoSottini/AffrescoUI