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
Capricorn2481 3 hours ago [-]
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.
jimbokun 12 hours ago [-]
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.
almost_usual 5 hours ago [-]
Gerald Sussman spoke about this at Strange Loop in 2011.
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.
RiccardoSottini 11 hours ago [-]
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
analognoise 12 hours ago [-]
Had the exact same thought. I played with Pharo, but really disliked Morphic. Maybe I should retry it now that AI is a thing.
RiccardoSottini 11 hours ago [-]
Interesting. You should indeed retry it
iLemming 8 hours ago [-]
> 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.
jm4 7 hours ago [-]
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 a clojure fan so you have my attention. I also use bb (https://getbb.app/) for almost the exact same use case. I tried glamorous toolkit (smalltalk) and found bb to just give a smoother experience. No data, but I suspect the mere fact that it uses TypeScript makes agents more effective working with bb.
Super cool. Yes bb follows the same concept when it comes to having malleable software - imagine having the same type of functionalities to other types of software that you use daily other than an editor.
Agreed, I would say that the minimum requirement for an LLM is Sonnet 5.5 when it comes to such clojure maintained applications - Next step for me is to find ways to simplify the code of the different examples I have created while maintaining the same features on a surface level for the end user.
lenkite 2 hours ago [-]
Annoyingly chose the same abbreviation has babashka - the clojure interpreter.
koe123 14 hours ago [-]
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
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.
evanjrowley 13 hours ago [-]
Autolith does this. I've watched GLM 5.2 morph it in real-time.
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
dchichkov 5 hours ago [-]
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...
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.
dufgent 6 hours ago [-]
spin it up in a seperate lisp binary, attach to the 'target' via swank.
RiccardoSottini 13 hours ago [-]
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)
In the era of AI, Lisp will be a true winner indeed, as in many dreamed since its release
dchichkov 4 hours ago [-]
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.
Not entirely similar, more of a "language you use LLMs in" rather than "a language LLMs use", but it does have a WIP MCP server for letting LLMs modify a running program.
I love this project, I'm using it in my custom harness. And even then, I'm probably going to keep embedding this in any Rust project I make now just because it's genuinely just the best embeddable Lisp for Rust I've ever used. There's so many cool projects leveraging LLMs and Clojure-likes now!
Buttons840 4 hours ago [-]
A lot of weird things have happened in computing because of how hard and awkward the GUIs are.
Now that we're entering a new era, I'm wondering if there might be surprising changes here? My wildest prediction is that the web itself might be partially replaced.
nmbr5 12 hours ago [-]
First I am OLD by AI users standards, but in Highschool in the early 80's I was writing self altering Basic programs, this is not a new concept. why AI isn't capable of it boggles my mind. My implantation back then was just for data storage, the program literally opened it's own basic file on disk and added Data lines to save states between runs. over 40 years ago.
dufgent 6 hours ago [-]
but with BASIC you'd need to restart the interpreter after modifying the source: with this, the image gets updated along the way, preserving state.
manoDev 14 hours ago [-]
A lisp runtime will be the ultimate environment for AI.
iLemming 7 hours ago [-]
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.
RiccardoSottini 14 hours ago [-]
I know, right? in the past Lisp had real limits on efficiency and speed, but most of those have been overcome since then. Most importantly, Lisp has a tiny, uniform syntax where code is just data, and that (along with plenty of other reasons) makes it the perfect environment for malleable software and AI
Buttons840 5 hours ago [-]
God wrote the universe in Lisp, if I remember correctly.
robotresearcher 8 hours ago [-]
… and has been since the mid 1980s!
rahen 12 hours ago [-]
I've been developing a Clojure-like ML framework with a REPL for over a year. It runs on Metal and CUDA through IREE, as a single static binary with no Python.
I'd love to now see embedding fixed function blocks within the LLM first-class. Sheaf seems uniquely suitable to this. Embedded a Sheaf engine inside an LLM described in Sheaf...??!!
rahen 10 hours ago [-]
Thanks! Have a look at CLEVR, it's pretty close to that. The neural network does the perception, and each query assembles a neural pipeline on top of it.
It's a nice small example of Lisp's "code as data" applied to neural networks.
Funny, I was trying to do the same at work but in the form of a mini react metaframework that would allow users to point at and customize elements, layouts and logic in real-time.
I love the idea of malleable software (and yeah, lisp, smalltalk and parametric cgi software as inspiration)
xlii 11 hours ago [-]
Laudable initiative.
I've started something similar - environment that merges Glamorous Toolkit and Emacs with Haskell. It has data inspectors/view from GT (and of course allows for adding new) and carries full GHC for re-compiling and swapping modules on the fly.
It's in reasonably working state but still far away from being releasable, might share one day :)
Looking at the screenshot it looks great, well done! To what extend you feel it is customisable?
xlii 10 hours ago [-]
It's highly customizable, but I haven't tested to extents because some modules aren't live-swappable. Mostly those related to Kernel processing and the app itself (and I didn't try to override App and then re-run in to check if overrides are picking up). Reason for that is purely performance - swapping one module takes millisecond, but replacing a big module tree takes second and UX is just yuck.
But other than that: user defined files are customizable, many elements are using typeclasses so extension is relatively easy and finally there's a Var type that allows overriding on various scope levels :)
LLMs have really changed what experiments you do...
stschaef 13 hours ago [-]
Very cool! I gotta take a closer look at this later. I have my own slopped emacs inspired editor written in rust as well, configured in Racket
With a modern browser baked in, so that I can totally phase out my use of Zen (or whatever other browser). It’s pretty much the only program I use anymore
I’ve yet to share it publicly, but I’m quite pleased with how flexible LLMs are for making personalized software
I’m preparing to push it publicly, but I’m not even sure what the point would be. I’m not intending to maintain it for others. I’d even go as far to advocate for everyone to will their own tools into existence rather than use it
RiccardoSottini 13 hours ago [-]
Please once confident feel free to share, as I am curious to see what others are doing supported by AI in the malleable software realm
RiccardoSottini 14 hours ago [-]
Super cool! How challenging was it to work on it? What are the next functionalities you plan to implement
bobowzki 13 hours ago [-]
It's mostly an experiment in what you can do with LLMs. I'm just steering it in the direction I want, so I can't really take credit for it.
It feels pretty feature complete to be honest, but there's always things you can add.
I find it quite amazing you can do your own editor with its own Scheme, LSP support, GPU rendering, tramp like, threading etc in just a few days.
RiccardoSottini 13 hours ago [-]
I know, right... I have mixed feelings about how "easy" it is to steer LLMs into delivering intrinsically complex features and software in just a couple of days.
the part of me that loves shipping cool stuff loves this, because the time between an idea and making it real gets crunched.
the other part of me, the one that loved programming because I'd think through every single if statement, is a bit disappointed.
one idea: since you said most of the features you had in mind are "complete", would it be worth making the project more "open", so you could connect it to Claude or Copilot through MCP and let them drive what it runs? just a thought
bobowzki 13 hours ago [-]
The MCP part is already there, I use it via Claude Code. That's how I work on it.
It also has a built in agent so you can use Claude directly in it.
RiccardoSottini 13 hours ago [-]
Great, I will then check it out :)
bobowzki 13 hours ago [-]
Would be cool to hear what you think. This is just a personal project but it turned out better than expected.
so-cal-schemer 4 hours ago [-]
Very nice.
soon_to_be_sb 13 hours ago [-]
How much did it cost?
bobowzki 13 hours ago [-]
I'm on a subscription but I would guesstimate a few hundred USD.
13 hours ago [-]
tester89 15 hours ago [-]
What is the benefit of using clojure now? Used to be a big Lisp head before AI, but with AI I feel like using widely-used statically-typed, strongly-typed languages is better over Lisp, for the training set and validation benefits.
Besides immutability and iterating with the repl, another point made was apparently more efficient context window usage due to fewer lines of Clojure code compared to alternatives.
so-cal-schemer 4 hours ago [-]
Cool talk. I've expected Lisps to be the winner for these reasons.
Here is a similar talk from Anurag Mendhekar at the European Lisp Symposium a year ago:
Is Lisp Still Relevant in the New Age of AI? [video]
Yes! That's the reason why I chose it - due to iterations with repl and extremely efficient context window usage / token expenditure. Effectively, for the use case scenario of my project, Clojure can express logic and functionalities that are shown on screen with just a couple of lines of code, removing all the boilerplate/overhead code.
iLemming 8 hours ago [-]
> 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.
yogthos 2 hours ago [-]
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.
whacked_new 15 hours ago [-]
It looks like they are just borrowing clojure syntax (I like), and perhaps the culture of supporting hot code reload (I also like), but I share the same reservations.
RiccardoSottini 14 hours ago [-]
Both are valid points and some of the reasons why + the fact that it is super "token friendly" allowing to express logic and have functionalities expressed in just a couple of lines
I went down a similar path using smalltalk. Then as I started to play whack-a-mole with UI edge cases (live markdown editor), the loop became tedious because I had to use the app to find the interaction bugs (what to do about link rendering when the cursor enters, leaves, and when exactly to prettify and unprettify), while suspecting that this has been solved 100x over in javascript land. Sure enough, when I moved to bb, I had to pull in a lot of libs, which is a lot of pregenerated tokens, but those were battle tested tokens.
I guess it has to be done though, as long as you bring a new stack.
jimbokun 12 hours ago [-]
Live editing running applications.
You could be using your app to solve some problem, and just modify it instantly with a prompt to just-in-time add a new feature. No need to shift between “using the app” mode and “programming the app” mode.
RiccardoSottini 11 hours ago [-]
Yes, those are the main points. I believe that it is also fundamental to also maintain versioning and data migrations, so, each time you try edit/add a new feature, you can switch between the different versions/rollback - and most importantly you do not compromise data - as there's a fine line between full software malleability that has no control of any sort (and issues can arise) - and a framework that allows such an experience but has some sort of "guardrails".
pka 9 hours ago [-]
I mean that's just any language with a REPL?
iLemming 9 hours ago [-]
Every stage in Read-Eval-Print-Loop differs. So it's not "just any language with a REPL", no. Lispers call Lisp REPL "a true REPL", not for emotional reasons, for quite practical ones.
wild_egg 9 hours ago [-]
Image based languages are fundamentally different from others and the similarities end at "has a repl"
harrigan 15 hours ago [-]
[dead]
5 hours ago [-]
skeledrew 15 hours ago [-]
I'm doing this with Python. Made a tool that allows easy live dev in Python processes anywhere it's running, including on mobile.
RiccardoSottini 14 hours ago [-]
Please send through the project if it is public, sounds interesting considering that you mentioned that runs also on mobile (so I guess it's crossplatform)?
skeledrew 10 hours ago [-]
Not public at this time, but I can tag if/when I make it so.
I use Flet⁰ for cross-platform work. The live dev tool itself is pure Python so it just works wherever Python is available.
I would love to know more about it, is it open source? and does it support any other languages than Python (also another question: as to what are some other programming languages where such a tool can have high value too)
skeledrew 14 hours ago [-]
It's still pretty fresh, so though I've used it to do some work on another project I don't really consider it satisfactorily proven yet. I'll probably open source it when I feel it's more solid. Only Python is supported, though theoretically the CLI side (it's split into CLI, server and debugger portions) could send commands to a debugger made in any language that supports the API. The only languages that can be fully supported though are those that allow full runtime evaluation, typically anything interpreted. Compile-only languages are out.
RiccardoSottini 13 hours ago [-]
What were the pros/cons you have experienced by using Python for such a project?
skeledrew 10 hours ago [-]
I can't say much in terms of pros/cons as Python has always been my primary language. I started out with QBasic in high school, then researched languages when I was ready to go into software dev, settling on Python because it has a huge ecosystem and is very readable. I've dabbled in ELisp (Emacs is my IDE) and Pharo/Smalltalk (Glamorous Toolkit is very nice), but one is tied to a particular app and the other has a tiny ecosystem.
rclabs 8 hours ago [-]
I wish someone took pharo - had it boot without any OS, and had a built in agent where you could re-program it on the fly.
mark_l_watson 11 hours ago [-]
Such a creative idea! This is what we get in the age of AI: we can produce good things that we want within a reasonable time budget. I will try to get some tie to build and try it.
RiccardoSottini 10 hours ago [-]
Thank you! I feel like that my contribution was assembling already proven concepts together and find where things can be optimised for AI-driven development and follow the philosophy of malleable software.
Great! It seems that some of the concepts when it comes to malleable software are followed by your project too!
Quick question: do you think that your project will also expose an MCP so it can be used from Claude / Copilot as well? So, the core/framework implementation + server is implemented by your side, however, you can have it plugged with other services too.
vatsachak 3 hours ago [-]
Yeah! My next project is adding an MCP so that subscribers can create personalized spending trackers
tconsulting 14 hours ago [-]
I have my own start up on K8s on bare-metal but since it is based on NixOS I can run without kubernetes a Clickhouse Cluster, Slurm, PostgreSQL cluster and more https://kcorehypervisor.com/index.html
iLemming 8 hours ago [-]
I'm so abundantly grateful for my younger self for ignoring all the siren songs of tech hype years ago and deciding to grok Lisp and to use Emacs. That might be the wisest, most profitable decision of my entire career.
Every single point of skepticism about Lisp turned out to be just outright false. Lisp, in fact, remains the most practical, enormously pragmatic tool I have ever put in my toolbelt (and mind you, I've been in tech since the time of BASIC and Pascal - yes, I have seen some real shit), and lately all the compounding effects are just overflowing - it just keeps giving, the abundance feels unreal.
And the age of LLMs made it clear - Lisp is an effing king. Despite all of its shortcomings, I just couldn't find a better duo for agentic workflows - even faster compilation and advanced static typing just can't seem to beat it, Lisp keeps winning on token efficiency and faster cycles. Majority of programmers have little clue what it actually feels like, to be able to mold your entire computing universe on the fly - without stopping, without restarting, [almost] without waiting. Every single delusional, shortsighted mofo who even a year ago was yapping on every corner about how Lisp is effing dead would be so point-blank speechless if they could only see how it works in practice. I'm driving my entire system, affecting not only how my editor works, but my WM, my browser, my shell, my videoplayer and even other apps I use - Slack, Zoom, Outlook (I wish I could just get rig of them suckers, but work requires them). And I can do it while typing this very comment. Without missing a beat I can just do it - anytime, anywhere, from any buffer in Emacs. AI can pour gallons of some drastic shit all over the places, and Emacs? It simply abides and obeys. Works like some mind-boggling magic.
Programmers, do learn Lisp! Do not ignore my plight. You seriously should be having shivers of FOMO if you're so deeply invested in your favorite stack, blinded by the hype, and have been overlooking Lisp simply because it sounds like nobody's using it. You have no idea of what you're missing. For real.
ManuelKiessling 7 hours ago [-]
Could you maybe do a quick demo video? I’m really, really curious, but as someone coming from a very “traditional” programming background, your comment sounds super intriguing, but just doesn’t “click” for me.
Application environments like Smalltalk that can modify themselves on the fly while running always seemed uniquely suited to AI, I've thought
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.
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.
https://www.thestrangeloop.com/2011/we-really-dont-know-how-...
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.
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
The untyped, macro-full code like https://github.com/RiccardoSottini/AffrescoUI/blob/master/ex... gives me pause. It seems like it needs a pretty strong LLM to get things right?
Agreed, I would say that the minimum requirement for an LLM is Sonnet 5.5 when it comes to such clojure maintained applications - Next step for me is to find ways to simplify the code of the different examples I have created while maintaining the same features on a surface level for the end user.
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.
https://news.ycombinator.com/item?id=49934573
https://autolith.rocks/
https://github.com/lambda-symbolics/autolith
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...
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.
and the rest of the owl: https://modus-lisp.github.io/
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.
Not entirely similar, more of a "language you use LLMs in" rather than "a language LLMs use", but it does have a WIP MCP server for letting LLMs modify a running program.
I love this project, I'm using it in my custom harness. And even then, I'm probably going to keep embedding this in any Rust project I make now just because it's genuinely just the best embeddable Lisp for Rust I've ever used. There's so many cool projects leveraging LLMs and Clojure-likes now!
Now that we're entering a new era, I'm wondering if there might be surprising changes here? My wildest prediction is that the web itself might be partially replaced.
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.
A small LLM like NanoGPT looks really neat in Lisp: https://github.com/sheaf-lang/sheaf/blob/main/examples/nanog...
Besides, because Lisp is so orthogonal and concise, LLMs can write Sheaf code from an 8K-token context file embedded in the binary.
Currently porting Gemma and Qwen to it.
https://sheaf-lang.org
I'd love to now see embedding fixed function blocks within the LLM first-class. Sheaf seems uniquely suitable to this. Embedded a Sheaf engine inside an LLM described in Sheaf...??!!
It's a nice small example of Lisp's "code as data" applied to neural networks.
https://github.com/sheaf-lang/sheaf/tree/main/examples/clevr
I love the idea of malleable software (and yeah, lisp, smalltalk and parametric cgi software as inspiration)
I've started something similar - environment that merges Glamorous Toolkit and Emacs with Haskell. It has data inspectors/view from GT (and of course allows for adding new) and carries full GHC for re-compiling and swapping modules on the fly.
It's in reasonably working state but still far away from being releasable, might share one day :)
Screenshots: https://img.axk.sh/g/70665/hamacs
But other than that: user defined files are customizable, many elements are using typeclasses so extension is relatively easy and finally there's a Var type that allows overriding on various scope levels :)
LLMs have really changed what experiments you do...
With a modern browser baked in, so that I can totally phase out my use of Zen (or whatever other browser). It’s pretty much the only program I use anymore
I’ve yet to share it publicly, but I’m quite pleased with how flexible LLMs are for making personalized software
I’m preparing to push it publicly, but I’m not even sure what the point would be. I’m not intending to maintain it for others. I’d even go as far to advocate for everyone to will their own tools into existence rather than use it
It feels pretty feature complete to be honest, but there's always things you can add.
I find it quite amazing you can do your own editor with its own Scheme, LSP support, GPU rendering, tramp like, threading etc in just a few days.
the part of me that loves shipping cool stuff loves this, because the time between an idea and making it real gets crunched.
the other part of me, the one that loved programming because I'd think through every single if statement, is a bit disappointed.
one idea: since you said most of the features you had in mind are "complete", would it be worth making the project more "open", so you could connect it to Claude or Copilot through MCP and let them drive what it runs? just a thought
It also has a built in agent so you can use Claude directly in it.
Besides immutability and iterating with the repl, another point made was apparently more efficient context window usage due to fewer lines of Clojure code compared to alternatives.
Here is a similar talk from Anurag Mendhekar at the European Lisp Symposium a year ago:
Is Lisp Still Relevant in the New Age of AI? [video]
https://news.ycombinator.com/item?id=50671492
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.
I went down a similar path using smalltalk. Then as I started to play whack-a-mole with UI edge cases (live markdown editor), the loop became tedious because I had to use the app to find the interaction bugs (what to do about link rendering when the cursor enters, leaves, and when exactly to prettify and unprettify), while suspecting that this has been solved 100x over in javascript land. Sure enough, when I moved to bb, I had to pull in a lot of libs, which is a lot of pregenerated tokens, but those were battle tested tokens.
I guess it has to be done though, as long as you bring a new stack.
You could be using your app to solve some problem, and just modify it instantly with a prompt to just-in-time add a new feature. No need to shift between “using the app” mode and “programming the app” mode.
I use Flet⁰ for cross-platform work. The live dev tool itself is pure Python so it just works wherever Python is available.
⁰ https://flet.dev
https://rowview.app/
Every single point of skepticism about Lisp turned out to be just outright false. Lisp, in fact, remains the most practical, enormously pragmatic tool I have ever put in my toolbelt (and mind you, I've been in tech since the time of BASIC and Pascal - yes, I have seen some real shit), and lately all the compounding effects are just overflowing - it just keeps giving, the abundance feels unreal.
And the age of LLMs made it clear - Lisp is an effing king. Despite all of its shortcomings, I just couldn't find a better duo for agentic workflows - even faster compilation and advanced static typing just can't seem to beat it, Lisp keeps winning on token efficiency and faster cycles. Majority of programmers have little clue what it actually feels like, to be able to mold your entire computing universe on the fly - without stopping, without restarting, [almost] without waiting. Every single delusional, shortsighted mofo who even a year ago was yapping on every corner about how Lisp is effing dead would be so point-blank speechless if they could only see how it works in practice. I'm driving my entire system, affecting not only how my editor works, but my WM, my browser, my shell, my videoplayer and even other apps I use - Slack, Zoom, Outlook (I wish I could just get rig of them suckers, but work requires them). And I can do it while typing this very comment. Without missing a beat I can just do it - anytime, anywhere, from any buffer in Emacs. AI can pour gallons of some drastic shit all over the places, and Emacs? It simply abides and obeys. Works like some mind-boggling magic.
Programmers, do learn Lisp! Do not ignore my plight. You seriously should be having shivers of FOMO if you're so deeply invested in your favorite stack, blinded by the hype, and have been overlooking Lisp simply because it sounds like nobody's using it. You have no idea of what you're missing. For real.