• Blue_Morpho@lemmy.world
    link
    fedilink
    arrow-up
    83
    arrow-down
    12
    ·
    edit-2
    1 day ago

    There are many legitimate complaints. Bundling a bunch of services into a single binary goes completely against Unix philosophy. Systemd changing from text to binary logs is my pet peeve.

    Copying how Windows does things isn’t necessarily the best.

    • hirihit640@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      15
      ·
      19 hours ago

      I was annoyed with binary logs until I found cases where compressing logs was literally 10x or more improvement, like if you ran into a bug that just repeatedly spit the same log.

      And I know logrotate compresses text logs too but if you’re going to compress logs into tar.gz, might as well just make it binary by default and have a nice interface (journald) on top

    • BestBouclettes@jlai.lu
      link
      fedilink
      arrow-up
      39
      arrow-down
      3
      ·
      1 day ago

      You know it’s not a single binary, right ? Systemd is a bunch of different, mostly single usage, mostly optional, binaries. As far as Unix philosophy goes, Systemd is definitely following the principles, which is not the case for the Kernel for instance.

      As for the binary logs, I used to hate it, but then, not having to manually parse logs for filtering is really nice.

      I do have my issues with Systemd, but it not following the Unix philosophy is not one of them.

    • IrateAnteater@sh.itjust.works
      link
      fedilink
      arrow-up
      53
      arrow-down
      6
      ·
      1 day ago

      It’s not people disliking it that makes no sense to me; everyone has their opinions.

      I just can’t imagine having the level of anger displayed by some of the most vocal of the anti-systemd crowd.

      • Blue_Morpho@lemmy.world
        link
        fedilink
        arrow-up
        30
        arrow-down
        4
        ·
        1 day ago

        If your favorite thing is being ruined and you can’t stop it, I can understand frustration being displayed as anger.

        It’s the same when Windows users get angry at things like OneDrive. It’s forced on them and they don’t want to have to work around removing it like people having to work around how Gnome is integrated into systemd.

        • IrateAnteater@sh.itjust.works
          link
          fedilink
          arrow-up
          11
          arrow-down
          6
          ·
          1 day ago

          If your favorite thing is being ruined and you can’t stop it, I can understand frustration being displayed as anger.

          That’s the joy of open source though: you can stop it. You are free to use another init system, fork projects, etc. With Windows, you can’t do any of that. Since it’s closed source, workarounds that may be temporary are all you can do.

          • Blue_Morpho@lemmy.world
            link
            fedilink
            arrow-up
            24
            ·
            1 day ago

            That’s the joy of open source though: you can stop it.

            Not really. Unless you are prepared to devote your life to changing the source code to what you want, you have to accept it. And because you forked you are no longer downstream and will have to spend the rest of your life keeping up with patches.

            It’s not much different than Windows. You could write a OneDrive uninstaller but you will have to spend the rest of your life with patches every time MS updates and breaks your uninstaller.

            • mesa@piefed.social
              link
              fedilink
              English
              arrow-up
              5
              ·
              1 day ago

              I mean we are literally on a couple of open source solutions communicating using an open protocol probably using some sort of open OS.

              https://nosystemd.org/ is a thing. I dont have particularly strong opinions on the matter.

              You don’t need to do it alone. In fact, people can come by, fix some things, then go about life. Or donate money instead of resources. If you have used lemmy/piefed/mastodon/peertube in the past, theres a tiny bit of my code in there that makes things just a tiny bit better. Thats not a brag or anything, its just that multiple people can contribute.

              But I hear the frustrations. There is a certain mindset you have to have, hopeful you and others can build something…or with enough hatred to build out of spite. Sometimes thats hard to do with everything else in life. Sometimes the best thing to do is to accept and move on. Or go looking for new solutions without maintenance.

                • mesa@piefed.social
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  18 hours ago

                  I mean ive donated time to curl. And I did a one time one like years and years ago and got some stickers.

                  You doing ok?

          • PabloSexcrowbar@piefed.social
            link
            fedilink
            English
            arrow-up
            7
            ·
            1 day ago

            If you like a distro and they switch to systemd, there’s not a lot you can do if you aren’t up to forking the whole distro. I feel like too many people in open source forget that most people have lives outside of Linux.

          • corsicanguppy@lemmy.ca
            link
            fedilink
            English
            arrow-up
            3
            arrow-down
            2
            ·
            1 day ago

            That’s the joy of open source though: you can stop it. You are free to use another init system, fork projects

            That and a big company looking to manufacture a perceived advantage by aggreasively pushing their shit into the mainstream - good fit to be taken over by IBM - who can bankroll the slapdash dev and bully ISVs, and you’re set.

        • corsicanguppy@lemmy.ca
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          2
          ·
          1 day ago

          your favorite thing is being ruined and you can’t stop it,

          Hardly a ‘favourite thing’; it’s like making a water slide out of a river : Wantonly wrecking something simple, effective and usable for this mishmash isn’t ruining something sacred as much as it is destroying something for no reason to dramatically create something lesser the world didn’t need. Except with more hype, payola, ageism, strong-arm adoption and cult worship.

    • I Cast Fist@programming.dev
      link
      fedilink
      arrow-up
      28
      arrow-down
      2
      ·
      1 day ago

      Richard P. Gabriel, in his essay “The Rise of Worse-is-Better,” expounds on this theme (see Appendix A). His thesis is that the Unix design philosophy requires that all design decisions err on the side of implementation simplicity, and not on the side of correctness, consistency, or completeness. He calls this the “Worse Is Better” philosophy and shows how it yields programs that are technically inferior to programs designed where correctness and consistency are paramount, but that are evolutionarily superior because they port more easily. Just like a virus.

      The highest achievement of the Unix-aesthetic is to have a command that does precisely one function, and does it well (…) This philosophy, in the hands of amateurs, leads to inexplicably mind-numbing botches like the existence of two programs, “head” and “tail,” which print the first part or the last part of a file, depending. Even though their operations are duals of one another, “head” and “tail” are different programs, written by different authors, and take different options!

      From The Unix Hater’s Handbook

      (I like Linux, but it’s not all sunshine and rainbows)

      • everett@lemmy.ml
        link
        fedilink
        arrow-up
        12
        arrow-down
        1
        ·
        24 hours ago

        That head/tail thing is kind of a goofy argument. For one thing they aren’t duals; tail is naturally more complex because the end of a file often changes and the application can optionally keep showing you the new output. Also, the fact that they’re separate applications in the first place is arguably better than the a one-application approach, which would always require a command line switch to select between outputting the start or end of a file. And finally, while I guess this could vary between implementations of head and tail, mine has identical switches for all the common options.

        • qqq@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          2 hours ago

          I initially agreed with your take there but I actually think they’re a great argument for their point. head and tail are the exact same abstraction. Their implementations will be quite different, but they both serve “provided this data, give me these lines”. Consider instead that these are simply operations on arrays and actually they map perfectly to Python slices: data[:10] and data[-10:]. This abstraction mapping also shows that, imo, the tool should provide data[n:m] and it would still be entirely consistent with the Unix philosophy. In fact, this tool exists in the Unix toolkit: sed -n n,mp. Three tools then are currently required for the simple concept of “slice lines”. I also think it’s a bit of a mess. You could replace head with sed fairly easily: sed -n '1,10p' but not tail (it is possible, but quite slow and very opaque)

          As an aside I actually found this quite frustrating myself because I don’t like reaching for sed in the n:m case (I always forget and end up piping head to tail) and ended up writing my own tool for essentially this style of slicing input, also replacing probably my least favorite use of my least favorite Unix tool, dd, to slice arbitrary byte sequences. The tool doesn’t feel overloaded and I use it quite often.

          (I’m sure many people have written this same tool. There is probably a widely known open source option that I’ve just never come across)

        • hirihit640@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          8
          arrow-down
          2
          ·
          19 hours ago

          They could have been two commands that call a single parent command with different options. For example, imagine if cat had an option -N to restrict the number of lines that was printed, and also an option -t to start from the end. head would just proxy to cat -N and tail would proxy to cat -N -t. Combining the three into a single implementation reduces total LoC and opportunity for bugs. Also reduces total maintenance burden.

          I believe busybox is like this actually - a ton of Unix commands in a single package. It’s used by Alpine Linux, a tiny and performance linux distro commonly used by docker containers.

          • Kairos@lemmy.today
            link
            fedilink
            arrow-up
            3
            arrow-down
            3
            ·
            17 hours ago

            Busybox is literally just a bundle. That’s its whole purpose. It doesn’t reimplement anything.

            • hirihit640@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              5
              arrow-down
              1
              ·
              edit-2
              10 hours ago

              Some quick research says that it is indeed a re-implementation. The first line of the wikipedia, says:

              BusyBox is an implementation of many Unix commands in a single executable file.

              You can download the source code yourself to verify. And if you’ve actually used Alpine Linux before you would have also noticed that the commands provided by busybox have only a subset of the options provided by their GNU coreutils counterparts.

              Please do your research before so confidently correcting other people.

      • Kairos@lemmy.today
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        24 hours ago

        The head and tail programs also do completely different things. What differences in options do they have?

        • Viceversa@lemmy.world
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          edit-2
          19 hours ago

          Really completely different? Do they not print first / last lines of text from a file into the terminal?

          • Kairos@lemmy.today
            link
            fedilink
            arrow-up
            3
            arrow-down
            4
            ·
            edit-2
            18 hours ago

            The way they do it is fundamentally different. Head just reads until number of newlines is the target number. Tail has to first read the entire file and keep a buffer of the file and/or offsets for each line ending to determine what the last 10 (or so) lines are.

            This idiot (Gabriel) probably thinks exclusively in the real world paper line analog.

            I also just looked at each program’s command line options and they’re identical. Less things only Tail can do (because they’re fundamentally different operations)

            • qqq@lemmy.world
              link
              fedilink
              arrow-up
              7
              arrow-down
              1
              ·
              edit-2
              16 hours ago

              This idiot (Gabriel) probably thinks exclusively in the real world paper line analog.

              Typical of Internet discourse to just immediately brand someone you disagree with an idiot… That “idiot” is one of the designers of common lisp, among other things. You’re allowed to disagree with a smart person too you know

              • Kairos@lemmy.today
                link
                fedilink
                arrow-up
                2
                arrow-down
                5
                ·
                edit-2
                16 hours ago

                OK. Designers of programming languages can be idiots.

                Lisp is a bad language IMO. Way too mathy. Nobody programs like that anymore for a reason.

                • Viceversa@lemmy.world
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  edit-2
                  6 hours ago

                  Programming language is a tool. Do you think there’re no more tasks left where “mathy” programming language would be preferable?

      • Kairos@lemmy.today
        link
        fedilink
        arrow-up
        5
        arrow-down
        2
        ·
        edit-2
        24 hours ago

        “This program sucks because it doesn’t come with the world’s most confusing GUI and doesn’t do a trillion things”

        If you ask this person what “technically inferior” actually means you’d probably get a different answer every day.

    • shininghero@pawb.social
      link
      fedilink
      arrow-up
      24
      arrow-down
      3
      ·
      edit-2
      4 hours ago

      There’s also a few cases of feature and scope creep, including the infamous systemd-resolved.
      Systemd, your job is to launch services, manage logs, and do timers and relaunches on a service crash. DNS is out of scope, leave that to existing services.

      • Laser@feddit.org
        link
        fedilink
        arrow-up
        4
        ·
        9 hours ago

        resolved is entirely optional and disabled by default, I use it on case of non-mobile devices but leave it on laptops etc.

        DNS resolution isn’t something exotic, it makes sense for systemd to implement it in a simple optional daemon

      • caseyweederman@lemmy.ca
        link
        fedilink
        arrow-up
        8
        arrow-down
        2
        ·
        16 hours ago

        You’ve misunderstood something.
        systemd-resolved is one of the services that uses systemd’s service management system
        You’re saying “don’t use this service management system to manage your services”

        • shininghero@pawb.social
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          4 hours ago

          I may have written that in a confusing way. I’m saying systemd’s job is service management. Systemd-resolved is an unnecessary bit of scope creep.

          • caseyweederman@lemmy.ca
            link
            fedilink
            arrow-up
            1
            ·
            2 hours ago

            systemd-resolved is a service. It’s not scope-creep. It’s its own thing built in the systemd framework.

      • kungen@feddit.nu
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        16 hours ago

        I agree, though my biggest headache has been with systemd handling mounts. You have to modify a ton of units to add After and Required to make sure the NFS shares you have in fstab get mounted before starting services that depend on them. And then if the package maintainer updates their unit files, all your changes disappear!

        Such a huge headache compared to the classic init.d that mounted everything very early – with just the occasional “boot delayed a couple seconds because your share was offline” or such.

        • Laser@feddit.org
          link
          fedilink
          arrow-up
          4
          ·
          9 hours ago

          You’re not supposed to modify shipped unit files, that’s why systemd supports drop in snippets

    • mabeledo@lemmy.world
      link
      fedilink
      arrow-up
      16
      arrow-down
      2
      ·
      1 day ago

      A single binary? What?

      Systemd changing from text to binary logs is my pet peeve.

      Fast searchable compressed files is a fantastic idea.

    • mmmm@sopuli.xyz
      link
      fedilink
      arrow-up
      16
      arrow-down
      2
      ·
      1 day ago

      The other day on a thread here about “people who use other init systems, why?” and i wrote about my experience with systemd and git downvoted for mysterious reasons. Other people that did the same as me also got their downvote sixpacks. And now they want to make it seem like it’s just the people that hate systemd the annoying ones…

      • [object Object]@lemmy.ca
        link
        fedilink
        arrow-up
        7
        ·
        1 day ago

        There are too many people who use downvote to disagree with cogent and well written points.

        I try to only downvote if something is obviously trolling, in bad taste, or wildly stupid.

      • anyhow2503@lemmy.world
        link
        fedilink
        arrow-up
        5
        arrow-down
        3
        ·
        20 hours ago

        Hey, just wanted to let you know that I downvoted your comment. Mainly because I think it’s funny when people can’t come up with compelling arguments and complain about being downvoted instead, but also because I’m part of the conspiracy making sure that people vocally complaining about systemd seem really annoying and wrong.

      • decolo@piefed.social
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        edit-2
        1 day ago

        It attracts a lot of silent disagreement that’s for sure.

        By far my most controversial post was negative about systemd, while posts on Palestine, anarchy, etc. received no negative attention at all.

        • mabeledo@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          12 hours ago

          Not sure what’s annoying about logind, but udev was introduced eight years before systemd was a thing.

      • Blue_Morpho@lemmy.world
        link
        fedilink
        arrow-up
        4
        arrow-down
        4
        ·
        1 day ago

        It’s not the binary. It’s that the logs it writes are in binary so can’t be read without a program.

        • hirihit640@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          5
          ·
          19 hours ago

          Even systems that use text logs, compress logs using logrotate and you have to uncompress before you can read them. Also since the compressed tar.gz logs are a bunch of separate files, if you don’t have an exact date of what you’re looking for, you have to uncompress and search through all of them. I much prefer just using journalctl

          • Illecors@lemmy.cafe
            link
            fedilink
            English
            arrow-up
            2
            ·
            10 hours ago

            I mean… zless and zgrep have been a thing since forever ago. And some distros ship with lessopen(?) preinstalled, so it’s seemless.

            There are only so many times I’m willing to put up with lost logfile due to a crash. Logrotate wouldn’t do this.

            • esc@piefed.social
              link
              fedilink
              English
              arrow-up
              1
              ·
              4 hours ago

              You can read systemd logs with strings program (part of binutils). Even if the file itself corrupted due to a crash.

            • hirihit640@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              3
              ·
              9 hours ago

              But then you aren’t just using a text editor anymore. If you’re willing to use programs like zless and zgrep, then you can just as easily use journalctl. And I’ve never lost a logfile before, over many years, so not to discredit your experience but at least in my experience journald has been an upgrade

              • Illecors@lemmy.cafe
                link
                fedilink
                English
                arrow-up
                1
                ·
                6 hours ago

                Why would I ever use a text editor? I think our approaches to viewing logs are fundamentally different.

                • hirihit640@sh.itjust.works
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  5 hours ago

                  Well the original comment I responded to said

                  It’s not the binary. It’s that the logs it writes are in binary so can’t be read without a program.

                  Of course, a text editor is also a “program”, but I assumed they were saying they preferred plain text logs.

                  If you aren’t agreeing with them then you need to state your position more clearly when you hop in.