this post was submitted on 07 Dec 2024
117 points (94.0% liked)

Linux

48666 readers
472 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
top 35 comments
sorted by: hot top controversial new old
[–] lustyargonian@lemm.ee 20 points 2 weeks ago (3 children)

Fun fact, roughly half of gnome-shell codebase is written in JavaScript.

[–] antrosapien@lemmy.ml 6 points 2 weeks ago (1 children)

I know that extensions are mostly written in js, but why codebase? Any legacy reason I wonder?

[–] lustyargonian@lemm.ee 8 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

From what I can gather

  1. JS is system agnostic, doesn't require compilation or multiple dependency binaries, as opposed to say Python.
  2. JS is widely understood, could get more contributors.
  3. JS is a good enough scripting language made with UI stuff in mind.

I also see people lamenting that lua wasn't chosen, so there's that.

[–] OmegaLemmy@discuss.online 4 points 2 weeks ago

İf it works good enough for my laptop phone and pc then it's good enough for everyone else

Besides, it wouldn't have made much of a massive difference if it was lua or js, but even lua has it's issues leading to people preferring other versions of lua

[–] HK65@sopuli.xyz 1 points 1 week ago (1 children)

JS is system agnostic, doesn’t require compilation or multiple dependency binaries, as opposed to say Python.

Can you expand on that? How does JS have less requirements than Python?

[–] lustyargonian@lemm.ee 3 points 1 week ago

While it's true that both python and js are interpreted languages, making them highly portable, JS at that time was a very lightweight language with a robust runtime offered by mozjs, that was built to be easy to embed into other systems, while python was designed for being the framework in which you build apps directly, hence requiring deeper dependencies.

Sources:

https://blog.fishsoup.net/2008/10/22/implementing-the-next-gnome-shell/#comment-1691

https://blogs.gnome.org/alexl/2008/09/09/embeddable-languages-an-implementation/

https://www.reddit.com/r/gnome/comments/120edc0/comment/jdgwyoq/

[–] cmgvd3lw@discuss.tchncs.de 2 points 2 weeks ago (1 children)
[–] Rokin@lemm.ee 7 points 2 weeks ago (1 children)
[–] lustyargonian@lemm.ee 7 points 2 weeks ago (1 children)
[–] piexil@lemmy.world 1 points 1 week ago

A rock fact

[–] Mwa@lemm.ee 1 points 1 week ago* (last edited 1 week ago)

Oh that's why cinnamon (fork of Gnome 3) uses a ton of JavaScript.

[–] BitcoinMiner@fasheng.ing 1 points 1 week ago

Great for my 128Gb RAM laptop