|
|
Subscribe / Log in / New account

Rust for safety

Rust for safety

Posted Jul 13, 2016 23:47 UTC (Wed) by madscientist (subscriber, #16861)
In reply to: Rust for safety by roc
Parent article: Herman: Shipping Rust in Firefox

C++ Core Guidelines are about a LOT more than memory safety. If you look at only the bits related to memory safety it's much more manageable and people have been working on it for a lot longer. The basic requirement is that you never allow a raw pointer in your code anywhere, and you have a set of smart pointers that encode ownership information. As mentioned above, though, it's almost impossible to make these rules universal. And, I'm not sure I'd call it "easy" (unless you just mean the concept rather than the implementation, which always involves a lot of trade-offs).


to post comments

Rust for safety

Posted Jul 14, 2016 3:34 UTC (Thu) by roc (subscriber, #30627) [Link]

I was specifically referring to the memory safety part of the Core C++ Guidelines. If you look at the discussion in my blog, regardless of how long they've been working on them, they're nowhere near done and it's not clear the approach is really going to work.


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