this post was submitted on 17 Jul 2026
144 points (96.2% liked)

Linux

66521 readers
320 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 7 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Nalivai@lemmy.world 1 points 1 day ago (1 children)

Yeah, it's not optimal, I don't think anyone argues that it is. It has a bunch of ways to shot yourself in the foot, no questions about that, people were writing books about that for decades.
But also, a lot of that non-optimality is what gives it advantage. Well, that and enormous amount of legacy code and expertise.
Sometimes you need to pass around raw pointers without caring about memory ownership, and for that situation it's optimal. I'm glad you have your mandatory curly brackets, but sometimes I just want my microcontroller to blink an LED and for that I'm in turn glad that I can be as quick and dirty as my filthy mind allows me.
And for serious projects we're all MISRA compliant anyway, and it mandates curly brackets for ifs and proper cases for switch.

[–] iopq@lemmy.world 1 points 18 hours ago (1 children)

Let's not get too abstract. Just because Rust made its own mistakes doesn't mean it didn't fix the mistakes I pointed out

Serious projects have huge memory safety issues that don't exist in Rust. More than half of security CVEs are due to the nature of C. Rust just has fewer bugs like Heartbleed because it doesn't let you do a buffer overrun

[–] Nalivai@lemmy.world 1 points 13 hours ago (1 children)

that don’t exist in Rust

That's because serious projects basically don't exist in Rust. Yet, probably, Rust seem to be a good language that people like, so those are to follow, but for now they're rare.
Or don't, if we discover that Rust has some other issue that only happens when the project grows old enough.
Personally, I'm sticking to the devil I know, the one that has almost 60 years of accumulated knowledge and best practices.

[–] iopq@lemmy.world 1 points 8 hours ago (1 children)

Rustls can already replace OpenSSL, but maybe that's not serious enough for you. Sure, the ring backend embeds assembly for the crypto operations, but that's the point:

You can have a safe interface for interacting with potentially unsafe code. Do all of the memory allocation and string manipulation stuff in Rust and call out to crypto in assembly

[–] Nalivai@lemmy.world 1 points 8 hours ago

Yeah, it's not serious enough for me. It will become serious if it actually replaces openssl, or at least actually is in use by any significant numbers. Until then, it's a project that can potentially maybe sometimes be used by someone maybe, which by definition isn't serious. Like any other project, it needs time under pressure, it needs to mature with use, be supported for some time, accept patches and changes, and sustain constant prodding by people who would like to break your stuff.
OpenSSL is a standard for almost 3 decades, Rustls is cautiously maybe being pushed in experimental branches.
It's like that with everything Rust related really. We are at a phase where enthusiasts enthusiastically trying to convince someone to consider their new toy, which means we can't really compare it with decades old projects that were scrutinized and stress-tested by millions of people.