• priapus@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        15
        ·
        11 months ago

        Closer to 50/50, and other parts of the GNOME desktop like mutter, are largely C. Saying the entire GNOME desktop is mostly JS is silly.

          • priapus@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            1
            ·
            11 months ago

            You’re right, they said the desktop shell, which is still incorrect, but I guess a little less incorrect. My bad.

            • ⲇⲅⲇ@lemmy.ml
              link
              fedilink
              arrow-up
              1
              ·
              11 months ago

              Well, I started this thread saying it runs on JavaScript, and I mean that they need JS for most of the interactions with the desktop, like gesture or mouse events. 😞 Even if most of the code is C, we all know we need to write much many lines of code of C to do the same with JS, so most of the logics on GNOME is computed by JS. We need some rust here. 🦀 🦀 🦀 🦀

        • kbal@fedia.io
          link
          fedilink
          arrow-up
          2
          arrow-down
          8
          ·
          11 months ago

          On the other hand, saying that there’s way too much javascript in it is objectively factual.

          • priapus@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            11
            ·
            11 months ago

            You don’t get to decide what too much JS in the project is unless you actually work on and have in depth knowledge of the project. I dont like JS, but it has its uses.

            Many people are conflating modern electron bloatware with ‘JS bad’, but things are not that simple.

      • Possibly linux
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 months ago

        The JavaScript and typescript gtk bindings are nice and make building apps nice.

        • priapus@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          11
          ·
          11 months ago

          That page also shows that there is more C. That page is also specifically the shell, not all of the desktop.

          • ⲇⲅⲇ@lemmy.ml
            link
            fedilink
            arrow-up
            1
            arrow-down
            4
            ·
            11 months ago

            There is less than 4% more code in C than JavaScript. That’s pretty much, many features on the gnome-desktop is using JavaScript too, like gestures and mouse events.

    • ⲇⲅⲇ@lemmy.ml
      link
      fedilink
      arrow-up
      2
      arrow-down
      16
      ·
      11 months ago

      Okay, but still needs JavaScript, they are slowly trying to remove or improve it. But it is a fact that it also runs on JavaScript. 🤣

      • priapus@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        11
        ·
        11 months ago

        Using JavaScript isn’t inherently a bad thing. JavaScript can be very useful when used for scripting. Obviously anything with a new for performance will be done in C.

        • ⲇⲅⲇ@lemmy.ml
          link
          fedilink
          arrow-up
          3
          arrow-down
          3
          ·
          11 months ago

          JavaScript isn’t the best language to make a desktop interface in my opinion, it can be very efficient, but you can see in bugs (at least in the past) how bad performance it had, and they needed to re-factor it to replace to C or improve the JavaScript. I’m just laughing and making fun of it using JavaScript, not saying it is slow, Gnome is pretty fast nowadays.

        • TimeSquirrel@kbin.social
          link
          fedilink
          arrow-up
          2
          arrow-down
          8
          ·
          11 months ago

          Javascript was a toy created in the mid 90s to make dumb interactive animations and have some sort of dynamic aspect to a web page. The world starting to code entire desktop programs and servers in it was a giant, horrific, societal mistake.

          • Possibly linux
            link
            fedilink
            English
            arrow-up
            1
            ·
            11 months ago

            I don’t thing you know how to write good JavaScript code. It is a very useful and robust language that is used in a lot of places.

      • Possibly linux
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 months ago

        Um, I’m not sure if you realized that basically everything is written in JavaScript. Try programing in C for a while and you will quickly see the benefit of high level languages