Re:Nvidia Security Team: “What if we just stopped using C?”
by Gigachad on Monday November 07, 2022 @06:57PM
(#33514279)
You typically don't have to write any unsafe Rust as an end user. The unsafe stuff is contained in very small and very rigorously analyzed standard library types. Which then provides you a safe interface to do all the stuff you normally do.
[ Parent
| on HN ]
Re:Nvidia Security Team: “What if we just stopped using C?”
by nyanpasu64 on Monday November 07, 2022 @08:47PM
(#33515030)
In practice unsafe Rust is necessary to write many classes of nontrivial code, and is harder to get right in many ways than C++ (possibly C) and I think Zig.
Re:Nvidia Security Team: “What if we just stopped using C?”
by Gigachad on Tuesday November 08, 2022 @01:02AM
(#33516331)
Examples? I have been writing production rust for about 6 months now and haven’t had to use unsafe yet. Looking at the standard library internals I see it a lot but everything I have had to do works in safe.