3 ms·
> If you were rewriting Emacs from scratch, what would you do differently? UI: Electron, of course. Json to represent the edit buffer in RAM. Each utf8 code p
by dmitrygr 2y ago
> If you were rewriting Emacs from scratch, what would you do differently?
UI: Electron, of course.
Json to represent the edit buffer in RAM. Each utf8 code point base64 encoded, in a json array, it itself, as a blob, base64 encoded. Now, before you complain that that is gonna blow up the data too much, don’t forget that 1. “Ram is cheap” and 2. “gzipped base64 is about the same size as binary”. So, of course, we’ll gzip the data in RAM.
Plugins should be JavaScript, as should be self-evident. And you’ll need a few installations of python (both 2 and 3) and node.js (each in its own docker container, obviously) to glue it all together and provide reproduceability.
With some care and work, it’ll run even on a modest machine taking up merely 60GB of disk, 32GB of RAM, a 4090ti GPU, and 8 CPU cores.
Every key press should be passed through an LLM, to add some intelligence to the editor. The user will, of course, supply a ChatGPT api key when they register for their mandatory myNewEmacs.ai account that they’ll need to subscribe to the editor for only the cost of a few lattes a month.
It is 2024, after all. One must use modern tools and technologies.
- aardvark179 2y agoThanks, I hate it.
- maxk42 2y agoPrefer Tauri to Electron. It is 2024, after all.
- iLemming 2y agoHeh... The obvious choice of course is Unreal Engine. It's almost 2025, after all.
- Crosseye_Jack 2y agoLGTM: Ship it!
- iLemming 2y agoAre you sarcastically describing VSCode, I don't get it?
- kagevf 2y agoI think it's meant to be a sarcastic take of the next iteration after VS Code :)