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.
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.
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
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.
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.