I find it strange that I never see anyone advocating for systemd to be re-written in Rust.It's the obvious place to start using a safe language in Linux userspace. Since PID1 spawns everything else and is the most important PID in userspace. Unlike kernel modules you don't need to use unsafe code anywhere to implement the init and service manager. So theoretically everything in PID1 should be doable in "safe" code. Meaning everything spawned by it would also be much safer.They should at least be re-writing certain parts of the systemd src tree by now like udev and everything to do with PAM/polkit. The init part should have been done years ago.I find it very strange that the same big tech companies pushing Rust so hard lately never make a peep about what's running as PID1.
>>107599344This
>>107600167You know it's true because no bot will reply to this thread.
>>107599344Nim does this better>you need statically compiled init systems because reasonsNo I dont
>>107599344Submit PR then
>>107599344>systemd>rustI double hate you
>rewrite program in safe rust>look inside>unsafe_unwrap()
>>107599344That, and no attempt at oxidizing Wayland pretty much prove that all rust promoters engage in a hostile campaign against software development.
>>107600996>Anon doesn't want his enemies to eat themselvesFew can understand the genius of the OP
They messed up coreutils
Let's start bullying Microsoft to do this
>>107599344some javascript needs to be removed first.this is not a joke.https://nlnet.nl/project/allowd/
>>107599344ACCELERATE
>>107601176polkit has always been so retarded. Its entire reason for existing is because gksudo was deemed insecure. A small application that did nothing but launch a GUI to prompt for password whenever sudo was needed to launch something that required elevated privileges. Something you could easily implement in a few lines of code that was easy to audit.Instead it was replaced by a daemon running as root at all times, launched by another daemon running as root at all times, that talks to other daemons running as root at all times over a insecure channel in userspace. All of that to avoid typing a password into a small prompt. gksudo was so good at what it did that it was forcefully removed from every last major distro's repos so you can't even run it even if you want to. You have to go out of your way to track it down and package it yourself.They have the gall to call something like Xorg a possible exploit when they have millions of lines of shit like logind running as root all of the time.
>>107599344>OOM crashes PID1Yeah bro
could it be done in haskell or fortran?
>>107601963what are you poor? Can't afford 128gb of ram?
>>107602087sure but considering that haskell generates garbage 1gb/s you can't have too much in the init before it OOM
>>107599344Two liabilities will cancel each other out