News for hackers. Stuff that matters.
Re:Linux distros without systemd by sanderjd on Monday May 20, 2019 @01:11PM (#19962568)
I'm not such a lover of Go, but: non-sarcastically, Go may well have been a good choice.
Re:Linux distros without systemd by amalcon on Monday May 20, 2019 @01:36PM (#19962845)
> Lennart Poettering and Kay Sievers started the project to develop systemd in 2010.

https://en.wikipedia.org/wiki/Systemd#History

> Go was publicly announced in November 2009,[29] and version 1.0 was released in March 2012.

https://en.wikipedia.org/wiki/Go_(programming_language)#Hist...

The brand-new language that Google just announced last year was probably not considered a serious option here.

Re:Linux distros without systemd by loeg on Monday May 20, 2019 @01:48PM (#19962998)
It's 2019 and Go still has a much weaker toolchain and infrastructure story than C (which has a 30 year head start).
Re:Linux distros without systemd by sanderjd on Monday May 20, 2019 @02:28PM (#19963491)
Ha yeah, I didn't mean "they really should have used Go", I just meant, "Go as it exists today may be a good thing to use for this".
Re:Linux distros without systemd by masklinn on Monday May 20, 2019 @02:04PM (#19963209)
Given the timeframe, something like OCaml would likely have been a better option.
Re:Linux distros without systemd by szemet on Monday May 20, 2019 @02:36PM (#19963573)
Ocaml parallelism/concurrency story was not that good - but Haskell has just got its fancy new epoll based I/O manager (100000+ lightweight threads) around that time, with the 7.0.1 release (16 November 2010)

They could have even take inspiration, imagine: typed, functional, monadic init files - "systemd: avoid success at all costs" :)

Re:Linux distros without systemd by astrobe_ on Monday May 20, 2019 @03:05PM (#19963850)
The topic is memory safety, not concurrency support, FWIW.

Lua would have been a good candidate: memory safe, coroutine to structure the code in a concurrent-ish way if needed, and you have a configuration file parser for free (just use Lua as the configuration language, it was its very first purpose after all).

Re:Linux distros without systemd by m4rtink on Monday May 20, 2019 @06:06PM (#19965779)
That's nice in theory, but where are all the people who know Ocaml to write it and contribute to it ? I might be clueless but I can't really name any significant projects written in it, which might imply something about the number of people using it and being able to work on and contribute to something as large and important as systemd.
Re:Linux distros without systemd by ernst_klim on Wednesday May 22, 2019 @04:14PM (#19984995)
>I might be clueless but I can't really name any significant projects written in it

From system programming solely: libguestfs, Xen API, liquidsoap, Unison, MirageOS, google drive on fuse, 0install.

Re:Linux distros without systemd by ernst_klim on Monday May 20, 2019 @05:34PM (#19965474)
>Ocaml parallelism/concurrency story was not that good

OCaml concurrency is great, and Lwt [1] would be exactly what systemd need: run daemon and poll the answer concurrently.

Ada, C++ and D would have been another great choices.

[1] https://github.com/ocsigen/lwt

Re:Linux distros without systemd by masklinn on Monday May 20, 2019 @03:21PM (#19964011)
> Ocaml parallelism/concurrency story was not that good

I wouldn't expect CPU-bound multithreading to be much of a concern in an init/rc system. And resource thriftiness and predictability would likely be a bigger concern.

Re:Linux distros without systemd by the_why_of_y on Monday May 20, 2019 @04:52PM (#19965070)
While that would be amusing for sure, systemd's pid 1 is actually single threaded.