this post was submitted on 03 Aug 2025
297 points (95.1% liked)
Programmer Humor
25460 readers
1145 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I don't agree with /u/red-crayon-scribbles ' approach to memory safety, but what you're saying isn't entirely true either.
It is possible to manipulate memory in ways that do not conform to Rust's lifecycle/ownership model. In theory, this can even be done correctly.
The problem is that in practice, this leads to the following, many of which were committed by some of the most highly skilled C developers alive, including major kernel contributors:
https://xeiaso.net/blog/series/no-way-to-prevent-this/
ooof.
You can do that in Rust with the unsafe keyword
but that's just a choice whereas in C you have no choice but write flawless code.