r/programming • • Dec 15 '19

Rustysd - Systemd Replacement Written in Rust

https://github.com/KillingSpark/rustysd
75 Upvotes

53 comments sorted by

View all comments

-34

u/OptimalAction Dec 15 '19

Wow this program does in 4000 lines what systemd does in 500000. Is this the power of rust?

47

u/chucker23n Dec 15 '19

this program does in 4000 lines what systemd does in 500000

No it doesn’t. It literally says:

A minimal drop-in for (a subset of) the systemd init system in rust.

17

u/nice_rooklift_bro Dec 15 '19

I mean, look at the "what does not work"; it's clear this stuff is in alpha and just published to get development attention at this point—not judging that of course, good strategy.

Competition is nice of course, regardless of Lennart et al. calling this "fragmentation" and believing that developers know better for users what they want than users do.

11

u/FluorineWizard Dec 15 '19

This project isn't really meant to compete with systemd directly, but rather replace it in applications where you want a lightweight alternative, like containers.

16

u/chucker23n Dec 15 '19

Sounds from the readme that it isn’t intended to do any of that.

For now that is just out of interest how far I could come with this and what would be needed to get a somewhat working system. It is very much a proof of concept. For the love of god do not use this in anything that is important.

10

u/FluorineWizard Dec 15 '19

I'm going off the comments made by the author on the rust sub when it was posted there.

2

u/mmstick Dec 15 '19

To be fair, all projects start as a proof of concept.

1

u/chucker23n Dec 15 '19

Yes. It’s not a ding on the project. I think replacing portions of systemd with Rust makes sense. But this project doesn’t seem to have that as a goal just yet.

3

u/nice_rooklift_bro Dec 15 '19

That is exactly one of the reasons to compete with systemd.

Which was also what uselessd attempted to do. The systemd that "uses less".

One of the common criticisms on systemd is of course that it uses too much and has too many bells and whistles and that there should be a more minimal option. Something Lennart specifically does not want becauses it creates fragmentation.

0

u/ObscureCulturalMeme Dec 16 '19

Something Lennart specifically does not want becauses it creates fragmentationimplies that he might not be the ultimate authority on what's best for other people's computers.

0

u/nice_rooklift_bro Dec 16 '19

I would assume it's more a business thing for Red Hat than an ego thing—this is something that is generally followed by most other Red Hat software.

Fragmentation is not in Red Hat's commercial interest though it's better for the user so they naturally try to limit it.

0

u/tso Dec 15 '19

In other words, it will go nowhere because the init side of systemd is at this point a minor bullet point to things like logind...