129
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 15 Feb 2025
129 points (100.0% liked)
Linux
50341 readers
1176 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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
Is there any write-up for the recent events around the kernel and Rust? Glancing over recent posts, it seems like new devs want to push Rust, but older maintainers don't want to deal with it. Why do people love Rust so much? Is it just a loud minority or does it in fact offer substancial gains and safety over existing C code? Lqstly, can they simply fork the kernel and try their own thing? E.g. do a branch as a proof of concept and therefore convince them to migrate?
Forking the Linux kernel will effectively guarantee that no one will run their software. None, but the most niche distros would ship it. If the Rust people are forced to fork, their time may be better spent contributing to Redox.
Rust makes it very difficult (but not impossible) to write dangerous code, whereas C pretty much guarantees you'll write something dangerous (and therefore insecure or buggy) at some point, especially in larger codebases, like the Linux kernel. Arrogant devs will defend keeping Rust out of the kernel by saying things like "write better code", but if the people writing kernel code for 20 years are still writing dangerously flawed code, it's safe to say that at a certain point, we need a better tool. That tool is Rust.
Rust also has very high-quality libraries that produce nicer finished products. I learned Rust because of
clap
andratatui
, which make superior CLIs and TUIs to anything else. Seriously, go use a CLI or TUI that was made in Rust. Trybat
, acat
clone. You'll get easy, great command-line completions, easy-to-read help output, optional, beautiful syntax-highlighting, theming, etc. It's hard for me to go back to vanillacat
.And I say all of that as someone that likes C. C is really fun, and it's a very powerful language, but it was not designed to be memory-safe. If it was, the people complaining about Rust would just complain about C too.
That's a simply amazing pun for a library name. I really enjoy the history of kind of silly naming within linux and programming generally.