AffrescoUI 让 AI 在运行时重写原生应用

原标题:Why stop at Emacs? Native apps you or an AI reprogram in Clojure while they run
58AI 研判分

AffrescoUI 是一个用 Clojure 方言定义界面、原生渲染的 UI 引擎,用户可在应用运行中直接让 AI 助手增删功能,演示中图像编辑器被即时加上 3D 建模与演示文稿能力。项目已发布 v2.0.0,但安装包尚未代码签名,官方建议从源码构建。

关联知识实体

报道正文

本文目录2 个章节

AffrescoUI ### Any application, defined in one format and rendered natively. Its users reshape it live, just by asking an AI. Vision · Applications · Architecture · Lisp (Clojure) · How it works · Quick start · Documentation https://github.com/user-attachments/assets/6fa000e1-b364-4c9d-b3a6-a0d22d408525 The demo: an image editor given a 3D modeller's and a presentation app's features by asking its assistant, a new app made from a name and a description, a small change to a home app, and the Launcher with its apps.


[!WARNING] The v2.0.0 downloads are not code-signed yet, so macOS and Windows warn that they can't verify the developer when you first open them. Signed builds will come in a later release.

Best today: build from source. It's one command, gives an optimised build for your machine, and never shows that warning (you need CMake 3.25+ and a C++23 compiler):

SH
cmake -S . -B build && cmake --build build && ./build/affrescoui_launcher

AffrescoUI is a native UI engine whose applications are defined in Lisp. AffrescoUI Lisp, a sandboxed dialect of Clojure, is the standard: an application's window, views, state, behaviour, commands, keys, settings and text are all named Lisp definitions, which the engine builds into one document, draws in C++ and OpenGL, and keeps running. If you write Clojure, you can already read and write these apps. JSON is supported too: the same document can be written directly in JSON, and every example ships both. People and AI agents change an application while it runs: each change is checked against the app's permissions, previewed if it needs approval, and applied in place in milliseconds, with no rebuild, no restart and nothing lost.

The vision

Software is frozen at build time: it does what its makers shipped, and every change waits for the next release. AffrescoUI applications keep evolving while they are used, shaped by the people who use them.

  • One format for every application. A to-do list and a professional design tool are written the same way and rendered by the same native engine. A feature built for one application can move into another.
  • Complex applications, built by anyone. No programming needed: describe what you want, and an AI agent builds it with you, step by step, from a simple board to a full workbench.
  • The people who use an app can change it. Ask the app itself, in plain words: "add a Blocked column", "dim the lights at sunset", "warn me when a streak breaks", or point at the part to change and ask. You see the change live, then keep it or undo it, even after later changes. Nothing changes without your approval.
  • Prototyping without stopping. Every idea is tried in the running application: no rebuilding, no restarting, no reloading, and your work stays where it was. When the prototype is right, it is already the app.

How an application grows

An application starts from a document, then grows by being talked to: "add a filter to this list", "make the sidebar collapsible", "show the total in red when it's negative". Each request becomes a reviewed revision. A run of revisions becomes a change set, a portable file that works like a plugin, and whole features move between applications: the planetarium below reuses the presentation editor's slide sorter. A person's own version of an app is shared as one file too, and every install is a proposal they review before it lands.

流程图

The direction: applications as complex as the professional tools people use every day, in one format, rendered natively, and shaped by the people who use them while they run.

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)