reddit / emacs
Now you can even replace systemd with Emacs
ReneFroger · 2022-06-29 15:00
ToranMallow · 2022-06-29 16:48
That escalated quickly.
IUseDebianBTW · 2022-06-29 18:40
Bro fuck systemD
stayclassytally · 2022-06-29 18:41
My Elisp machine is nearly complete!
chandaliergalaxy · 2022-06-29 18:46
Can this circumvent the problem with WSL2?
[deleted] · 2022-06-29 20:25
[removed]
1nc0ns1st3nt · 2022-06-29 21:24
Can someone perhaps explain to me what it means now, we can replace systemd with this elisp version?
My understanding of systemd goes as far as it's something that manages some of the system services, if event that's correct.
I.e. does it brings us closer to a lisp machine, like one of the others had commented in this post?
Camel-Bulky · 2022-06-29 22:58
Have you tried GUIX? Admittedly it is more "scheme machine" rather than "elis machine", but still really good.
Camel-Bulky · 2022-06-29 23:04
As much as I love Emacs, systemd is probably the last thing on Linux that needs to be replaced and Emacs is the last thing systemd needs to be replaced with. I still admire the effort.
stayclassytally · 2022-06-29 23:05
I have. I have it on one of my laptops. It’s quite fun to hack on. I’m attempting to derive my own fleshed-out config similar to Andrew Tropins RDE and the Engstrand bros configs for inspiration. Very cool stuff.
LemonBreezes · 2022-06-30 00:50
If you run SystemE and want to restart Emacs, do you have to restart your entire computer?
LemonBreezes · 2022-06-30 00:51
https://github.com/nullpo-head/wsl-distrod
I use this at work with Gentoo and it's worked fine.
LemonBreezes · 2022-06-30 00:53
I think you're getting downvoted because you use Debian, which ships with SystemD. I get you though.
CptPickguard · 2022-06-30 02:41
Emacs IS the computer, silly.
FailedHumanPrototype · 2022-06-30 03:03
To be fair, you can use something and think it still has flaws ^^
hangingpawns · 2022-06-30 03:15
>GUIX
is it a text editor?
LemonBreezes · 2022-06-30 03:18
I actually just fixed some code to use nested Emacs sessions in EXWM so that I can test code more safely. So I can see myself using SystemE some day. Maybe.
shosseinib · 2022-06-30 03:23
Maybe
mohd_sm81 · 2022-06-30 03:25
it is turing complete, though
shyouko · 2022-06-30 04:30
Everyone in this thread gets an upvote from me
kinleyd · 2022-06-30 08:59
OS
SlowValue · 2022-06-30 09:19
*Rough* boot process with Linux and systemd on x86 compatible machine and explanation.
1. load BIOS
2. load MBR from harddisk
3. load Grub or Lilo (or other bootloader)
4. load Linux kernel
5. load systemd
6. systemd then loads every other process, daemon, script, user shell ...
Do a "ps ax" on a running Linux and you will see that process with PID `1` is `/sbin/init` which is (nowadays) a link to `/lib/systemd/systemd`.
If you replace systemd with Emacs, then Emacs is the first running process on Linux and therefore would be responsible for invoking everything else.
Does it bring us closer to a lisp machine? Yes, somewhat. But a Lisp Machine is more than just invoking and managing Unix programs and editing text ...
1nc0ns1st3nt · 2022-06-30 09:30
Thank you! That lays out the process very clearly to me.
arthurno1 · 2022-06-30 10:20
:-) Ah someone actually trying that :).
Neither lightweight nor very speedy, but cool it is ;).
chrinto · 2022-06-30 11:20
C-g at the wrong moment will now abort critical functionality?
funk443 · 2022-06-30 13:25
Then when can I replace Linux kernel with Emacs?
7890yuiop · 2022-07-01 02:14
I've never tried EXWM, but I've always been pretty sure that if I did use it, then I wouldn't want the EXWM instance of Emacs doing *anything* of note other than being the window manager.^1
Your comment makes it sound like you're doing the same, and that it required some custom effort to achieve?
I'd be interested to hear more about that, if you wouldn't mind expanding?
----
^1: I've many a time read comments from EXWM users talking about it freezing and/or the occasional need to restart their system because their Emacs session went awry, and I *suspect* that the typical reasons for that are not due to EXWM itself, but rather something else that they were doing in that Emacs instance. That kind of problem is a deal-breaker for me, but I suspect it's entirely avoidable if you leave the EXWM session alone.
sucrbrg · 2022-07-01 05:19
I'd assume that it would now abort the computer 😅
LemonBreezes · 2022-07-02 02:50
Sure. I've been using EXWM for years now. I haven't gotten any crashes on my latest GNU/Linux install. I've written a [Doom Emacs module for EXWM](https://github.com/LemonBreezes/.doom.d/tree/master/modules/private/exwm) that eventually I want to submit to Doom. It has a lot of features and workarounds specific to Doom. Check out the README.
spudlyo · 2022-07-02 18:29
Systemd manages a huge number of things, and this doesn't even reap zombies, which all good init programs do. It doesn't support run levels, it doesn't support "resapwn" (for getty processes) -- hell feature-wise this isn't even a legit replacement for SysV init.