322
submitted 2 months ago by petsoi@discuss.tchncs.de to c/linux@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] SuperFola@programming.dev 51 points 2 months ago

I'm getting fed up about all those articles "rust x something: the future?", "I rewrote in rust it's now memory safe". I get the rust safeties and all, but that doesn't automatically make everything great, right ? You can still write shit code in any language that can RM -rf all your disk, or let security gaps here and there without intending to.

[-] Asudox@lemmy.world 19 points 2 months ago* (last edited 2 months ago)

It does make stuff great. Even Microsoft is trying out Rust in their shit operating system because apparently 30% of all CVEs are related to, you guessed it, memory issues. And Rust will most likely solve them all. Even the Linux kernel has Rust code in it now. If Rust was not of importance, why would the Linux kernel get rusty? Especially Linus Torvalds is very strict about these things. Sure, bad code rewritten in Rust does not make it any better than it originally was. Plus you get C-like speed with good syntax and memory safety, what more could you ask for?

[-] sweaty@lemmy.world 16 points 2 months ago

Yes security issues will remain a problem no matter what language was used. You are talking about the possibility of a logic flaw being there, whereas rust 'just' prevents memory corruption.

Which is the more common security issue? Memory corruption by a mile. That's why many are excited by the rust rewrite

So you're right it isn't literally everything, but I'm not sure what would be. What would make you not fed up about it?

[-] SuperFola@programming.dev 0 points 2 months ago

I think I'm more fed up with people making those quotes "rust will change everything" when, in fact, it will rule out many if not most memory corruption as you said. Reading your comment, I see now it's the mentality "everything need to be in rust" that bothers me the most, which in fact means "rust can bring memory safety" and not "rust will replace everything". Alas I'm seeing it used times and times again as the latter instead of the former.

this post was submitted on 21 Apr 2024
322 points (95.0% liked)

Linux

45443 readers
1385 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