<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/why-stop-at-emacs-native-apps-you-or-an-ai-reprogram-in-clojure-while-they-run-clji1ucao" -->

---
title: Why stop at Emacs? Native apps you or an AI reprogram in...
description: AffrescoUI is a native C++23/OpenGL UI engine where an app is defined in one format and users or AI agents reshape it live. Apps are written in a sandboxed...
canonical: https://daily.dev/posts/why-stop-at-emacs-native-apps-you-or-an-ai-reprogram-in-clojure-while-they-run-clji1ucao
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Why stop at Emacs? Native apps you or an AI reprogram in Clojure while they run | daily.dev
og:description: AffrescoUI is a native C++23/OpenGL UI engine where an app is defined in one format and users or AI agents reshape it live. Apps are written in a sandboxed...
og:url: https://daily.dev/posts/why-stop-at-emacs-native-apps-you-or-an-ai-reprogram-in-clojure-while-they-run-clji1ucao
og:image: https://api.daily.dev/og/posts/cLjI1ucao.png
og:image:alt: Why stop at Emacs? Native apps you or an AI reprogram in Clojure while they run
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[Hacker News](https://daily.dev/sources/hn)** · 25 min read · 1 upvotes · 0 comments

## Summary

AffrescoUI is a native C++23/OpenGL UI engine where an app is defined in one format and users or AI agents reshape it live. Apps are written in a sandboxed Clojure dialect or JSON, with no browser engine or web view. Each change is checked against permission rules, optionally previewed as a proposal, then applied in place without a rebuild or restart. Accepted changes become SHA-256 commits that can be undone, and an agent can never approve its own changes. The repo ships thirteen example apps and a two-way MCP server, and a full frame takes 0.40 ms.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/RiccardoSottini/AffrescoUI>

## Questions this post answers

### How can an AI agent safely modify a running native app without restarting it?

In AffrescoUI, each change is a revision checked against deny, ask or allow permission rules. Changes needing approval become a branch-like proposal you preview live and accept or reject. Accepted changes become SHA-256 commits on main and apply in place without rebuild or restart. An agent can propose changes but can never approve its own.

_Developers weighing AI agents in their tools follow safe-change patterns like this on daily.dev._

### What language are AffrescoUI apps written in, and can I use JSON instead?

AffrescoUI apps are written in AffrescoUI Lisp, a sandboxed dialect of Clojure with its own runtime built into the library. The same document can also be written directly in JSON. An example's two versions are one app: first frames match pixel for pixel, they pass the same scenarios, and they share one history and permissions.

_Developers picking between Lisp and JSON for declarative UI keep up with such trade-offs on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 2 discussions and 86 comments across hackernews (as of 2026-11-29).

**TL;DR:** The project resonates with a crowd already excited about Lisp/Smalltalk-style live-editable software, sparking many tangents about similar personal projects and why Lisp may be well-suited to AI-driven coding, though some question whether Clojure's dynamism actually helps versus statically-typed languages for agent reliability.

**Sentiment:** 55% positive · 35% mixed · 10% skeptical

**The case for**

- Lisp's compact, 'code as data' syntax is seen as highly token-efficient for LLMs compared to verbose alternatives.
- Live, in-place modification without restarts is praised as a genuinely different experience from traditional edit-compile-restart cycles.
- Several people shared or recalled similar malleable-software projects (Smalltalk/Pharo, bb, Sheaf, Autolith, modus-lisp), suggesting real appetite for this approach.
- The permission/versioning/rollback guardrails are seen as a thoughtful way to balance malleability with safety.

**The pushback**

- Some doubt that dynamically-typed Lisp is actually better than statically-typed languages for AI-agent reliability and validation.
- One commenter argues it's hard to find a true killer use case that a traditional restart-based system (e.g. Go) couldn't handle almost as well.
- Concern that without strict type checking, an agent can hallucinate that tests pass while testing the wrong thing.
- A commenter disputes the 'native' framing of the project.
- Running agent-modifiable code in the same process risks the agent breaking its own running state irreversibly.

**By community**

- hackernews (mixed): A long, enthusiastic tangent among Lisp/Smalltalk/malleable-software enthusiasts sharing related projects, mixed with some skepticism about whether Clojure's dynamism truly helps AI agents over statically-typed alternatives.

**Hottest debate:** Whether a dynamically-typed, macro-heavy Lisp like Clojure is actually better suited to AI-agent-driven development than statically-typed languages, or just more token-efficient but less reliable.

**Open questions**

- Does this kind of live-editing approach offer capabilities that a fast-recompiling language like Go genuinely cannot replicate?
- How does the system prevent an agent from breaking its own running state irrecoverably without requiring a restart?
- Could stronger validation (e.g. Malli, linting) be combined with the REPL-driven approach to catch agent hallucinations?

**Highlights**

> Emacs already is. Despite all its flaws. What people miss about the Lisp-based text editor is that not only does it focus on text-composition - (e.g., Neovim is great at that) - typing text, manipulating it, navigating through it, but (unlike most other text editors) it also allows an incredible measure of text-consumption - it is relatively simple to turn Emacs into a text-orchestrator that can absorb text from any app on the local screen or any remote computer. For example, I can easily grab some text from Slack.app, manipulate it and redirect this new content to be posted as a Jira ticket comment. This can be fully automated, or kept with some knobs - to do it in a more controlled fashion. The second point that even Lispers miss about Emacs is that, unlike most other Lisp dialects that are traditionally data-oriented, ELisp is very text-oriented. The basic primitives are all about text. LLMs are too - all about text and mostly text. And these two points above make Emacs surprisingly better equipped than almost anything else in existence for creating AI-oriented workflows. Not only can you change any aspect of the text editor itself on the fly, you can easily manipulate virtually anything from an Emacs buffer. That's what I do - on Mac I control my WM through Hammerspoon, which is Lua-based, therefore it can be hooked to a Fennel REPL (a Lisp), then control any window, and every element of that window. On Linux I have a running Clojure REPL that sends signals to Hyprland through its IPC. Less flexible than on Mac, it is still a very capable contraption.
> — [iLemming on hackernews](https://news.ycombinator.com/item?id=50682999)

> I did, but haven’t found a killer use case yet (as in something that can’t be done practically the same in a traditional system). Interpreted languages or languages that compile quickly (eg Go) feel almost the same to the end user. Ie on a webapp I rarely notice if the backend restarts. Running in the same process also means your agent can break itself, and untangling that without saying screw it and restarting the service. Mine messed with its Ollama library and broke its ability to do inference. Languages that support this tend to be sort of baroque too. Maybe not an issue, but Clojure or Smalltalk put off some users. I haven’t given up, but I do think it will have to do something that eg Go can’t even come close to.
> — [everforward on hackernews · 1 comments](https://news.ycombinator.com/item?id=50683252)

> > statically-typed, strongly-typed languages is better over Lisp Nope, in practice, that point turned out to be not exactly accurate. Giving an agent access to the "true Lisp REPL" makes it stop guessing and start empirically analyzing the current state of things. It reaches decisions faster, costing far fewer tokens. You just need to build a proper, "Lisp-aware" harness.
> — [iLemming on hackernews](https://news.ycombinator.com/item?id=50682574)

> To me, it's the best dynamic language by far for scripting and serious apps alike. The lisp syntax is tough at first if you've never seen it, but once I got used to it, it was very readable (if using macros like ->). But I am still unsure whether a language like that is best for agentic programming. Without strict type checking, validating your software is up to how much testing you've added. Yes, it's cool that an agent can work with the REPL, but I am not sure that is helpful if the agent hallucinates and thinks the app works because it's testing the wrong function. And it's all immutable so it's easy for an LLM to test things in isolation, see a green checkmark, and think we're good. Could there be the right blend of REPL, Malli, and code linting? Idk.
> — [Capricorn2481 on hackernews](https://news.ycombinator.com/item?id=50684552)

> Super cool! I've been working on something similar - at least the part where an agent modifies a running system. Mine is a web-based data platform and reporting tool. It allows for pages, forms, reports, and charts and you get to see a live draft of what the agent builds before it becomes part of the application. There's version history and rollbacks on everything the agent does. Like your system, it all happens without a restart. The big difference is my system doesn't allow the agent to write code. It writes only declarations, plain data over a closed vocabulary, which the engine checks and turns into the running app. So instead of sandboxing agent code, there's no code to sandbox. Mine is also developed in clojure. I'm not ready to make the code available, but here's a quick video of it in action: https://github.com/jeffmarder/daedalus
> — [jm4 on hackernews](https://news.ycombinator.com/item?id=50683059)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=50599626) · 3 points · 0 comments
- [hackernews](https://news.ycombinator.com/item?id=50677861) · 109 points · 86 comments

## Similar posts on daily.dev

- [Agent UI Standards Multiply: MCP Apps and Google’s A2UI](https://daily.dev/posts/agent-ui-standards-multiply-mcp-apps-and-google-s-a2ui-cnovycn6m) · The New Stack · 1 upvotes · 0 comments
- [A2UI](https://daily.dev/posts/a2ui-fov2gqezm) · Hacker News · 4 upvotes · 0 comments
- [Accelerate Showcase: Built with AI, Designed with Stitch](https://daily.dev/posts/accelerate-showcase-built-with-ai-designed-with-stitch-bmzxkgvaw) · Avalonia UI Blog · 11 upvotes · 0 comments
- [A2UI \+ MCP Apps: Combining the best of declarative and custom agentic UIs](https://daily.dev/posts/a2ui-mcp-apps-combining-the-best-of-declarative-and-custom-agentic-uis-17y6akacg) · Google Developers · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#c](https://daily.dev/tags/c), [#c++](https://daily.dev/tags/c++), [#generative-ui](https://daily.dev/tags/generative-ui)

[View this post on daily.dev](https://daily.dev/posts/why-stop-at-emacs-native-apps-you-or-an-ai-reprogram-in-clojure-while-they-run-clji1ucao)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Why stop at Emacs? Native apps you or an AI reprogram in Clojure while they run","url":"https://daily.dev/posts/why-stop-at-emacs-native-apps-you-or-an-ai-reprogram-in-clojure-while-they-run-clji1ucao","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/why-stop-at-emacs-native-apps-you-or-an-ai-reprogram-in-clojure-while-they-run-clji1ucao"},"datePublished":"2026-11-28T21:58:26.863Z","dateModified":"2026-11-29T03:14:13.829Z","description":"AffrescoUI is a native C++23/OpenGL UI engine where an app is defined in one format and users or AI agents reshape it live. Apps are written in a sandboxed...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1a288d8a009f05b3ffb7d1da121a2701?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1a288d8a009f05b3ffb7d1da121a2701?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/why-stop-at-emacs-native-apps-you-or-an-ai-reprogram-in-clojure-while-they-run-clji1ucao","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,c,c++,generative-ui","timeRequired":"PT25M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Why stop at Emacs? Native apps you or an AI reprogram in Clojure while they run"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/why-stop-at-emacs-native-apps-you-or-an-ai-reprogram-in-clojure-while-they-run-clji1ucao#faq","mainEntity":[{"@type":"Question","name":"How can an AI agent safely modify a running native app without restarting it?","acceptedAnswer":{"@type":"Answer","text":"In AffrescoUI, each change is a revision checked against deny, ask or allow permission rules. Changes needing approval become a branch-like proposal you preview live and accept or reject. Accepted changes become SHA-256 commits on main and apply in place without rebuild or restart. An agent can propose changes but can never approve its own. Developers weighing AI agents in their tools follow safe-change patterns like this on daily.dev."}},{"@type":"Question","name":"What language are AffrescoUI apps written in, and can I use JSON instead?","acceptedAnswer":{"@type":"Answer","text":"AffrescoUI apps are written in AffrescoUI Lisp, a sandboxed dialect of Clojure with its own runtime built into the library. The same document can also be written directly in JSON. An example's two versions are one app: first frames match pixel for pixel, they pass the same scenarios, and they share one history and permissions. Developers picking between Lisp and JSON for declarative UI keep up with such trade-offs on daily.dev."}}]}
```

