Unofficial Hacker News companion — get notified on comment replies, and more.

Why stop at Emacs? Native apps you or an AI reprogram in Clojure while they run (opens external site)

153 points by RiccardoSottini 4 days ago | github.com | 110 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (18)

  1. Has anyone made a AI coding harness that uses lisp to essentially morph into any software under the sun? Quite a compelling idea I feel
    Replies (7)
    1. Replies (1)
      1. Super cool project!!!
        Replies (1)
        1. lisp is back
          Replies (1)
          1. In the era of AI, Lisp will be a true winner indeed, as in many dreamed since its release
            Replies (2)
            1. truly "alien technology"
            2. I agree, the issue with Lisp was that there are few developers that could use it efficiently. With AI, this is no longer an issue, so there might be a renaissance.

              It'd be good to compare notes - try pointing your agent at https://github.com/dchichkov/progp - maybe it'd pick up some ideas there.

    2. Yes - well, that's roughly what I've been trying with AffrescoUI. Each app is a Lisp program that can be edited while it runs - a core architecture feature is modularity and data safety (migrations maintain consistency and allow not to have conflicts)
    3. Replies (2)
      1. Thanks for sharing this - I didn't know about this project! The concepts used in here are something I actually need for another project to manage adaptable agents
      2. Interesting that the group / company behind it seems to have no relation to Symbolics[0], a defunct company that made Lisp machines. Surely not an accident.

        [0] https://en.wikipedia.org/wiki/Symbolics

    4. 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.

      Replies (1)
      1. spin it up in a seperate lisp binary, attach to the 'target' via swank.
    5. Yes, here's a lisp based setup, works with Codex on a Mac using your ChatGPT subscription tokens - a coding agent that can modify a coding agent, change development processes it uses, or even do it recursively. Implemented via Python/Hy: https://github.com/dchichkov/progp/tree/main#articoder-progr...

      There's abstract version of it, that can run on top of a working lisp implementation, in the: https://github.com/dchichkov/progp/blob/main/abstract/README...

    6. yup, that's how my harness works https://github.com/samizdat-code/samizdat
      Replies (1)
      1. Great idea! Did you create a demo/tutorial video of what you can achieve using it? If so, I would be interested in seeing it.
        Replies (1)
        1. I haven't had a chance to spend the time on marketing it yet. Mostly, I've been dog fooding it for my own projects right now.
    7. Compos does this - https://compos.svs.io

      It's the ideas of emacs reimplemented as an Elixir core with a scheme interpreter and HTML as the first rendering surface. Can (easily) be extended to TUI/GPUI.

      The ideas in emacs are incredibly powerful - the powerful evaluation environment and the highly optimised ux for flying through the idea space - and I figured it would be nice to have these same ideas in a more modern rendering surface perhaps with better concurrency. The end result is a very pleasant harness for all kinds of knowledge work.

      If you had to quit emacs so you could use coding agents properly, this one is for you.