|
|
Log in / Subscribe / Register

Memory-safe C code

Memory-safe C code

Posted Nov 17, 2025 11:38 UTC (Mon) by khim (subscriber, #9252)
In reply to: Memory-safe C code by hunger
Parent article: Rust in Android: move fast and fix things (Google Security Blog)

> `unsafe` is IMHO a needlessly inflammatory name for a marker that basically says "The rust compiler does not fully understand this code"

It's absolutely correct and proper marker. Technically the name is TCB (trusted code base), but when I worked in a project with “correct” naming… everyone who arrived on the project invariably wanted to commit something in the trusted folder…

> especially when you are communication with other language communities

Which communities are we talking about? C# with the exact same unsafe keyword or Haskell with System.IO.Unsafe?

IMNSHO name unsafe conveys precisely the right balance between inherent danger and usability.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds