Hacker News new | ask | show | jobs
by manoDev 14 hours ago
A lisp runtime will be the ultimate environment for AI.
4 comments

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.

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
God wrote the universe in Lisp, if I remember correctly.
… and has been since the mid 1980s!