8 ms·
Emacs as PID 1 is the only logical conclusion.
by thecosmicfrog 4y ago
Emacs as PID 1 is the only logical conclusion.
- mtlmtlmtlmtl 4y agoSomeone already did this back in the day and the only extra utility needed was mount.
- entropie 4y agoOne still needs an editor, right?
- ticviking 4y agoEvil is a fine editor.
- fiddlerwoaroof 4y agoBest implementation of the vim standard
- Kamq 4y agoIt's surprising how good it is. They even get the = register. Evaluates elisp instead of vim script, but what are you gonna do?
- yjftsjthsd-h 4y ago> Evaluates elisp instead of vim script, but what are you gonna do? Celebrate? I like vim, but I don't think I've ever heard someone praise vimscript; even neovim added lua.
- Kamq 4y agoThe big annoyance on the elisp front is it makes math slightly more annoying (~80% of my usage of the register). Trying to evaluate x + y and have vim insert the result is now (+ x y), which is more key-presses. It's a trivial, but slightly annoying in my common case. Also throwing a bunch of things into an array and indexing into the result, then incrementing a number is more complicated as well (I usually run this in a macro to process a list of things), which is another ~15% of my usage. There are a lot of things to complain about in vimscript, but infix operators and c-style array indexing has never been at the top of that list. That being said, in the general case, elisp offers a really nice way to integrate with the editor. Far superior to classic vim-script. It just makes the = register slightly more annoying. But, asking someone someone to maintain an entire language interpreter just to make the = register more familiar is kinda too much to expect of someone. At least the = register is there, I've never found another vim emulator that even has it.
- fiddlerwoaroof 4y agoOne trick that makes life easier for lisp is to use something like Karabiner Elements or xcape to turn taps on the shift keys into parentheses. Also, setting up nice keybindings to insert and manipulate parens. Between these two things, I’ve never found lisp any harder to enter than infix languages.
- Kamq 4y agoYeah, it's not the worst thing ever, it's just weird manipulating text in command mode. The standard emacs keybindings do work, but it's not what I've spent the better part of a decade burning into my muscle memory. Oh well, c'est la vie. Evil + slime/sly is still a better lisp experience than anything else I've tried.
- hcarvalhoalves 4y agohttp://informatimago.free.fr/i/linux/emacs-on-user-mode-linux.html http://informatimago.free.fr/i/linux/emacs-on-user-mode-linu... Wouldn’t be a bad idea at all to have the equivalent of modern Lisp Machine.
- sph 4y agoI've been designing one in my head for the past month, it's become an obsession. I don't know if I'm onto something, or caught a really bad case of the Lisp fever. What's the recommended treating regimen?
- MonkeyClub 4y agoA bit afraid of throwing gasoline on fire, but... > What's the recommended treating regimen? Implement! The only way out is through.
- sph 4y agoYeah, that's my plan for the weekend. I'm currently working on a minimal Lisp implementation written in Rust, step 2 is to compile the thing into a free-standing UEFI binary, and give it the ability to execute machine code. The final goal is something akin to DOS, but the prompt is a Lisp that has access to the entire machine at full privileges and complete control over the hardware. I'm also exploring how to make it possible to rewrite the most core functions from the Lisp environment, so I could, for example, replace a naive "eval" function with native code after boot. What can you build with the most minimal "operating system" paired the most meta-programmable environment? My dream is to add a simple display, keyboard and have this run on a RISC-V SoC, that simply boots with the prompt: "> " (I hate you for making me write this down and adding more fuel to the fire.)
- rjsw 4y agoWhy not use an existing Lisp implementation that has a good compiler? Or just run Mezzano [1]. [1] https://github.com/froggey/Mezzano https://github.com/froggey/Mezzano
- e3bc54b2 4y agoHere you go: https://github.com/a-schaefers/systemE https://github.com/a-schaefers/systemE
- humanistbot 4y agoIf we're doing that, then why not go all the way to PID 0?
- LoganDark 4y agoI don't think there is a PID 0. The very first userspace process is PID 1. Or do you mean the kernel itself?
- deafpolygon 4y agoSend a PR to the linux kernel team
- erik_seaberg 4y agokill(2) interprets pid 0 as “everything in my process group.”
- humanistbot 4y agoI meant the kernel itself.
- ticviking 4y agoIn many ways I trust Emacs more than systemd. Not enough to use it as PID1 on real hardware, but enough to be tempted to try it in a VM
- the-rc 4y agoI doubt it was PID 1, but I saw RMS' laptop almost 30 years ago and I think it booted into Emacs...
- toasteros 4y agoWhen I hung out with him ~4 years ago, it booted into what might have been GNOME or XFCE, but he did spend a lot of time using emacs in a TTY.
- BenFeldman1930 4y agoWhen I hung out with him last year, he was fixing an Emacs bug on a field notes notebook.
- comfypotato 4y agoHe’s close to the average life expectancy for a human male; I’m curious what his plan is regarding the succession of his love for eMacs.
- abudabi123 4y agoCan the layer between Emacs and hypervisor be as thin as an seL4 microkernel and do pixel perfect framebuffer star field?
- matheusmoreira 4y agoLet's go further. Emacs on bare metal.
- stirfish 4y agoEmacs etched on a custom ASIC.
- krylon 4y agoOnce you go there, why not put Emacs on bare metal? It'll run that much faster. You can put in a hypervisor (M-x start-virtual-machine) to run a bloated Linux distro so you can Firefox or Chrome (M-x start-virtual-machine-with-browser), but I'm sure somebody can streamline that even further.
- darthrupert 4y agoWill that have happened when systemd ingests emacs?