this post was submitted on 09 Jun 2023
32 points (100.0% liked)

Linux

48386 readers
985 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
 

Basically title, with System76 moving from gnome to their new rust built COSMIC environment what are your thoughts?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 1 year ago* (last edited 1 year ago) (8 children)

I'm incredibly interested in COSMIC DE! For multiple different reasons, actually.

  1. Rust - I'm very interested to see how performant/memory-efficient this DE will be compared with other DEs. Also, I wonder how the Iced toolkit will evolve and be adopted in other projects.
  2. Benefits over GNOME - I'm looking forward to seeing how much out-of-box customizability and features come with COSMIC over GNOME (which I'm currently using).
  3. Maintainability going forward - Since the DE basically started from scratch and is using a much better language for robust software, I wonder how much easier and faster it would be to maintain the desktop environment. This potential improved maintainability could be huge in overtaking other DEs sometime soon.
[–] [email protected] 2 points 1 year ago (6 children)

How is rust more memory efficient than c or c++?

[–] [email protected] 5 points 1 year ago (5 children)

It's not, perhaps they meant memory-safe?

The DE might be more memory efficient given the hindsight and freedom a fresh slate brings, but not strictly due to rust.

[–] [email protected] 8 points 1 year ago* (last edited 1 year ago) (2 children)

There's several things that make Rust more ideal for writing software that makes efficient use of resources than C or C++.

One of these is how cumbersome it is to use tagged unions in C/C++. They're integrated as a first class citizen in Rust in the form of enums, and both the standard library and all Rust projects as a whole utilize them extensively. An example would be the Cow<'a, T> type. The compiler also has some clever tricks like zero-sized types which can reduce the size of types which contain them.

On the surface, the borrowing and ownership model is useful for guaranteeing memory safety. Yet if you take that a step further, it's the perfect tool for finely optimizing resource usage with confidence. In comparison, defensive programming practices are the norm in C and C++ because resource management is risky. So applications written in Rust are more likely to be better optimized.

[–] [email protected] 4 points 1 year ago

And the GNOME project doesn't just use C/C++ right? It uses Javascript for developing all sorts of components and Python for scripting/misc utilties. That's what I meant by more memory-efficient.

[–] [email protected] 2 points 1 year ago (1 children)

Hey, do you have plans to open any communities into Lemmy?

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)
[–] [email protected] 2 points 1 year ago

If the author of the community isn't responding, I believe you can pop a request over at https://lemmy.ml/c/community_requests to have it transferred to you.

load more comments (2 replies)
load more comments (2 replies)
load more comments (3 replies)