this post was submitted on 17 Dec 2025
186 points (98.4% liked)

Technology

77925 readers
2814 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Technus@lemmy.zip 82 points 1 week ago (2 children)

Because Rust lets you choose when something is unsafe vs writing all unsafe in code all the time:

Note the other 159 kernel CVEs issued today for fixes in the C portion of the codebase

[–] ryannathans@aussie.zone 4 points 1 week ago (1 children)

Yes same concept as other languages like C#

[–] Technus@lemmy.zip 8 points 1 week ago (2 children)

You go ahead and write an OS kernel in C# then.

[–] ryannathans@aussie.zone 9 points 1 week ago (1 children)

Why the hell would you do that

[–] Technus@lemmy.zip 4 points 6 days ago (1 children)

Why would you bring up C# in a thread about kernel programming?

[–] ryannathans@aussie.zone 2 points 6 days ago* (last edited 6 days ago) (2 children)

Talking about how unsafe is not some new fancy rust feature and exists in other languages. Your comment makes it sound like the choice is some new wild computing concept.

[–] Hawk@lemmynsfw.com 2 points 6 days ago

Memory safe languages that are not garbage collected are not all that common. Ada and Rust are two examples.

With great care C++ and zig can be.

I'm sure there's a good reason a lot of the big players and the community at large have picked up rust though. Docs, error messages, cargo community etc.

I would argue that Rust does bring a lot to the table. I certainly would never code in C for work but I'll happily reach for Rust.

[–] AI_toothbrush@lemmy.zip 1 points 6 days ago (1 children)

Bruh do you actually not get it. The point of rust is that its memory safe(with a huge grain of salt in the case of low level programming) and is a language you can write kernels in. Youre not gonna write a kernel in C# so it doesnt really matter for a discussion about kernels.

[–] ryannathans@aussie.zone 2 points 6 days ago (1 children)

I think you are lost, nobody is saying use C# for an OS kernel.

[–] boonhet@sopuli.xyz 5 points 1 week ago

Here, someone already wrote a bare bones one. Of course that also uses an unsafe block lol

[–] isVeryLoud@lemmy.ca 3 points 1 week ago (1 children)

I wonder if this can be adjusted for LoC count in each language

[–] victorz@lemmy.world 7 points 6 days ago (1 children)

Not sure if that's a fair metric yet.

[–] isVeryLoud@lemmy.ca 4 points 6 days ago (1 children)

It's not, I have no better idea

[–] nsfw936421@lemmynsfw.com 3 points 6 days ago

Maybe only counting new/edited LoC in that language. But also probably not completely fair.