logoalt Hacker News

Why stop at Emacs? Native apps you or an AI reprogram in Clojure while they run

63 points • by RiccardoSottini • today at 2:09 PM • 60 comments • view on HN

Comments

gavinray • today at 2:48 PM

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

➕ show 4 replies
kamk3 • today at 5:52 PM

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 • today at 7:11 PM

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

➕ show 1 reply
koe123 • today at 4:04 PM

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

➕ show 3 replies
whacked_new • today at 3:11 PM

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?

➕ show 1 reply
rahen • today at 5:40 PM

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

mark_l_watson • today at 7:08 PM

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.

➕ show 1 reply
nmbr5 • today at 5:49 PM

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 • today at 8:37 PM

Whatever this is, it certainly isn't native.

manoDev • today at 3:28 PM

A lisp runtime will be the ultimate environment for AI.

➕ show 1 reply
bobowzki • today at 3:27 PM

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

LLMs have really changed what experiments you do...

➕ show 4 replies
tester89 • today at 2:50 PM

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.

➕ show 4 replies
skeledrew • today at 2:55 PM

I'm doing this with Python. Made a tool that allows easy live dev in Python processes anywhere it's running, including on mobile.

➕ show 2 replies
tconsulting • today at 4:15 PM

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 • today at 3:41 PM

I did this for financial consulting!

https://rowview.app/

➕ show 1 reply