Sujet : Re: systemd controversy
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.adaDate : 19. Mar 2024, 23:29:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <utd3ku$12lm6$4@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Tue, 19 Mar 2024 10:16:50 -0000 (UTC), Kevin Chadwick wrote:
The declarative systemd unit-file syntax should be easier to translate
to other forms than perhaps going the other way.
I can't see how non portable unit files backed by c code are more
helpful than atleast more portable scripts with less c per command to
interpret, to be honest.
The unit files are in the classic .INI file format, which has been around
for decades. Code for parsing it should be readily available for every
language in common use.
Scripts need an interpreter. Being Turing-complete, in general information
cannot be extracted from them except by running them. Unit files have a
fixed vocabulary of keyword entries, which can be easily enumerated,
looked up, whatever. That’s what’s meant by “declarative”.