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 5 days ago | github.com | 110 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (15)

  1. We've come full circle back to Smalltalk

    Application environments like Smalltalk that can modify themselves on the fly while running always seemed uniquely suited to AI, I've thought

    Replies (5)
    1. Someone did suggest me not to only allow for Clojure Lisp, but also Smalltalk due to the fact that it resolves around the same concept of meallability on software, along to the fact that is token efficient due to the syntax
      Replies (1)
      1. 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.

        Replies (1)
        1. Great point - It can be a problem indeed, especially when trying to create/edit complex applications - The most important thing is not to compromise data, and introduce subtle bugs because of LLMs overconfidence. It would be cool to experiment whether a system of automated tests can be created on the go, while editing an application, so you are confident not to introduce any regression at any step!
    2. Had the exact same thought. I played with Pharo, but really disliked Morphic. Maybe I should retry it now that AI is a thing.
      Replies (1)
      1. Interesting. You should indeed retry it
    3. Yes, UX for AI agents is very under explored.

      The big players are focused on harnesses for traditional software development, including source control, pull requests, deployments, automated testing, etc.

      But the Smalltalk/Lisp model seems a much better fit for “power users” working on something other than commercial software. Science, engineering, art, etc. where a domain expert can dictate the software they need interactively into existence on the fly.

      Replies (3)
      1. Yes these are the same exact thoughts in my mind! Reducing the experience gap that is needed to ship projects that are actually usable without fully knowing all the different technical concepts
      2. Gerald Sussman spoke about this at Strange Loop in 2011.

        https://www.thestrangeloop.com/2011/we-really-dont-know-how-...

        Replies (1)
        1. Big ups for this, great talk that I still think about a lot years later. Sussman is a brilliant dude and probably one of the only people who talks about AI and is actually worth listening to, been there from the beginning and still as sharp as ever.
      3. While everybody is focusing on Lisp in this context, I'd like to offer a Prolog-based variant: https://deepclause.substack.com/p/a-harness-in-a-single-file...
        Replies (2)
        1. Great project! Thanks for sharing, in AffrescoUI you can run REPL too, allowing applications ton be edited externally too. All easy to setup.
        2. Very interesting.

          This makes me think that, instead of a harness using a bunch of MCP or other tools, how far can you go with an image based language and a REPL, where the model builds its own tools using the language.

          You would need to implement permissions at the system level of course, since the agent would have full access to the language’s capabilities.

    4. I feel like Newspeak, and its Ampleforth documents deserve honorable mention. https://youtu.be/_rIGfcXNEpo
    5. > We've come full circle

      Nah, we've been walking on planet Lisp all this time, and it's more beautiful than ever. Why most people choose to ignore it, I never could apprehend. Being scared of effing parentheses? What a bunch of snivelers, excuse my honesty.