this post was submitted on 12 Oct 2023
207 points (99.1% liked)

Linux

48329 readers
639 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
 

cross-posted from: https://lemmy.ndlug.org/post/280126

Jeremy Soller shares some examples of the COSMIC lock screen that Pop!_OS is working on.

you are viewing a single comment's thread
view the rest of the comments
[–] NiaTheCat@lemmy.blahaj.zone 1 points 1 year ago (2 children)

Recently moved to PopOS and while I've been generally aware of Cosmic I've been looking into it a lot recently, don't know much about programming languages but from what I understand Rust is supposed to be really fast for this stuff.

Will using Rust cause the desktop to feel really responsive/snappy compared to other ones like Gnome or KDE Plasma (not that they're slow), or is it more like an efficiency thing, less CPU/RAM use, etc? If this has already been answered can someone link me because I haven't been able to find much on it

[–] fedcon@lemm.ee 5 points 1 year ago* (last edited 1 year ago)

Rust wouldn't necessarily make it more responsive. It is more oriented towards safety and robustness.

Cosmic might be more responsive / efficient due to the fact that it's a new development and they can choose to implement things better and not carry old baggage, but that's about it. Rust doesn't have much say in it.

Edit: Although, if they are moving away from JavaScript in Gnome as their shell language to pure Rust in Cosmic, then you would probably see some responsiveness / efficiency gains, yes.

[–] mmstick@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

Synthetic benchmarks written in Rust are as fast as those in C. In practice, Rust applications are more efficient than their C counterparts. The performance and efficiency is nice, but the main benefit will be stable software that is free of vulnerabilities caused by common mistakes in C and C++. Virtually every Curl vulnerability would not happen in Rust.

There's half of a century of programming language theory research between C++ and Rust. Which solves many of the issues in programming that are common in C and C++. Such as the memory and thread safety violations that can be difficult to diagnose, application crashes, and critical software vulnerabilities.

The language concepts and compiler features also prevent a lot of common logical mistakes a programmer may make. Such that the best practices in C++ are the baseline for any Rust project that successfully compiles. It is easy to develop highly parallel and asynchronous software that just works and is easy to maintain and debug. As a result, you may notice Rust projects developing to maturity much quicker than you'd expect.