Re:Rust Memory Management: Ownership vs. Reference Counting
by reorder9695 on Monday April 27, 2026 @09:33AM
(#47921361)
The difference I see there is any line in a C codebase could have these issues, whereas in Rust they're specifically marked as unsafe sections, with the language having a clear list of invariants it expects the programmer to uphold in an unsafe block. Additionally Rust has a culture of developers specifically justifying the unsafe block and why it's correct in comments. It's a massive reduction of the scope of the code that needs audited, that doesn't mean there can't be mistakes in it, just that it's easier to verify certain properties of the whole codebase.
[ Parent
| on HN ]
Re:Rust Memory Management: Ownership vs. Reference Counting
by bcjdjsndon on Monday April 27, 2026 @10:43AM
(#47922291)
> The difference I see there is any line in a C codebase could have these issues
Not true.
> Additionally Rust has a culture of developers specifically justifying the unsafe block and why it's correct in comments
Yeah, if your on the message board. Wait til rust hits real world levels of usage and shit code begins to emerge....
It's easy to sit on that pedestal when your essentially a novelty language in comparison to amount of legacy code in production