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 (3)

  1. The same features that help humans also help agents. For example, immutability as the default helps minimize the scope an LLM needs to track in order to make a change correctly. Clojure being concise and expressive also helps reduce the amount of tokens the LLM needs to use which directly shrinks the context. The language is also data focused, so the LLM can inspect any data or state trivially. And nREPL driven workflow provides the agent with a fast feedback loop where it can try things and iterate step by step.
    Replies (1)
    1. Yes, you got it right. As you said, where you find benefits for humans, you find similar benefits for the LLMs too - e.g. As Clojure has got such a compact syntax, it's both easy to comprehend by humans and lower token consumption. Have you got any other ideas on how I can leverage best such benefits?
      Replies (1)
      1. I've ended up building some tooling for the harness to use to work with Jolt which help the LLM get oriented and use the language effectively.

        I have a language server and agent toolset https://github.com/jlt-commons/jolt-lsp

        Then there's an MCP for using nREPL https://github.com/jlt-commons/jolt-nrepl-mcp

        running metrics helps catch problem like tight coupling, high cyclomatic complexity, code duplication, and so on https://github.com/jlt-commons/jolt-metrics

        And I've tied it all together with a set of skills for the agent to use. https://github.com/jlt-commons/jolt-skills