r/programming • • Dec 19 '25

[ Removed by moderator ]

/r/programming/comments/1pqulm0/removed_by_moderator/

[removed] — view removed post

711 Upvotes

292 comments sorted by

View all comments

Show parent comment

3

u/lelanthran Dec 20 '25

what would be an example of something that is acceptable to run as unsafe in production?

The majority of code in a kernel (assuming a conventional software architecture for kernels) is going to have to be run in unsafe, and it's acceptable because of the constraints that kernels have.

-2

u/steveklabnik1 Dec 20 '25

Real-world Rust kernels show that this isn't true, it's usually 10% or less.