111
submitted 1 year ago by ugjka@lemmy.world to c/linux@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] yukijoou 6 points 1 year ago

the desktop shell is mostly javascript though

[-] priapus@sh.itjust.works 14 points 1 year 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.

[-] kbal@fedia.io 2 points 1 year ago

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

[-] priapus@sh.itjust.works 10 points 1 year 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.

[-] Aradia@lemmy.ml 1 points 1 year ago

No one here said GNOME desktop is mostly JS.

[-] priapus@sh.itjust.works 1 points 1 year ago

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

[-] Aradia@lemmy.ml 1 points 1 year 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. 🦀 🦀 🦀 🦀

[-] Aradia@lemmy.ml 3 points 1 year ago

Yeah, on their git says 46% of the code is JavaScript: https://gitlab.gnome.org/GNOME/gnome-shell

That's pretty much, almost half of the code.

[-] priapus@sh.itjust.works 10 points 1 year ago

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

[-] Aradia@lemmy.ml 1 points 1 year 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.

[-] possiblylinux127@lemmy.zip 1 points 1 year ago

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

this post was submitted on 09 Jan 2024
111 points (100.0% liked)

Linux

49482 readers
1035 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS