60 comments

  • gavinray 6 hours ago ago

    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

    • goodthink 2 hours ago ago

      I feel like Newspeak, and its Ampleforth documents deserve honorable mention. https://youtu.be/_rIGfcXNEpo

    • RiccardoSottini 5 hours ago ago

      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

    • jimbokun 3 hours ago 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.

      • RiccardoSottini 2 hours ago 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 3 hours ago 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.

  • kamk3 3 hours ago ago

    Shoutout to Sema Lisp for a similar concept: https://sema-lang.com/

    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!

  • xlii an hour ago 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 :)

    Screenshots: https://img.axk.sh/g/70665/hamacs

    • RiccardoSottini an hour ago ago

      Looking at the screenshot it looks great, well done! To what extend you feel it is customisable?

      • xlii 44 minutes ago 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 :)

  • koe123 5 hours ago 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

  • whacked_new 5 hours ago ago

    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.

    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?

    • RiccardoSottini 5 hours ago ago

      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.

  • rahen 3 hours ago 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.

    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

    • manofmanysmiles an hour ago ago

      I love this!

      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...??!!

  • mark_l_watson 2 hours ago 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 an hour ago 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.

  • nmbr5 3 hours ago 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.

  • Ohentis 3 minutes ago ago

    Whatever this is, it certainly isn't native.

  • manoDev 5 hours ago ago

    A lisp runtime will be the ultimate environment for AI.

    • RiccardoSottini 5 hours ago 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

  • bobowzki 5 hours ago ago

    I did my own emacs clone I call amacs, https://github.com/ast/amacs

    LLMs have really changed what experiments you do...

    • stschaef 4 hours ago 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 4 hours ago 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 5 hours ago ago

      Super cool! How challenging was it to work on it? What are the next functionalities you plan to implement

      • bobowzki 4 hours ago 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 4 hours ago 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 4 hours ago 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 4 hours ago ago

              Great, I will then check it out :)

              • bobowzki 4 hours ago ago

                Would be cool to hear what you think. This is just a personal project but it turned out better than expected.

    • soon_to_be_sb 4 hours ago ago

      How much did it cost?

      • bobowzki 3 hours ago ago

        I'm on a subscription but I would guesstimate a few hundred USD.

  • tester89 6 hours ago 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.

    • avtar 5 hours ago ago

      Listened to this a couple days ago: https://m.youtube.com/watch?v=tzzg8CVkl2A

      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.

      • RiccardoSottini 5 hours ago ago

        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.

    • whacked_new 5 hours ago 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 4 hours ago 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

        • whacked_new 4 hours ago ago

          obv I could clone and ask an AI but since you're here, https://github.com/RiccardoSottini/AffrescoUI/blob/master/ex... is a limited syntax definition for the built-in markdown parser?

          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 3 hours ago 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 2 hours ago 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".

  • skeledrew 6 hours ago 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 4 hours ago 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 an hour ago 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.

        ⁰ https://flet.dev

    • Imustaskforhelp 5 hours ago ago

      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 5 hours ago 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 4 hours ago ago

          What were the pros/cons you have experienced by using Python for such a project?

          • skeledrew an hour ago 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.

  • tconsulting 4 hours ago 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

  • vatsachak 5 hours ago ago

    I did this for financial consulting!

    https://rowview.app/

    • RiccardoSottini 5 hours ago ago

      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.