Re:Smart pointers for the kernel
by Dylan16807 on Friday October 18, 2024 @03:32AM
(#41877122)
I get the impression they're only counting code outside the standard library, in which case tons of useful programs are fully safe.
Re:Smart pointers for the kernel
by I_AM_A_SMURF on Friday October 18, 2024 @03:11AM
(#41877027)
It's definitely all of them. Even HashMap uses unsafe.
Re:Smart pointers for the kernel
by steveklabnik on Friday October 18, 2024 @09:28AM
(#41879265)
It’s more fundamental than that: the Rust language does not encode hardware specifics into the language, and so way deep down there, you have to write down bytes to an address that Rust considers arbitrary. Unless you only want to run programs that accept no input and take no output, which is not exactly a useful subset of programs.
If one claims otherwise, I say they have no understanding of Rust. But also, if one helds that against Rust's value promise, I, again, say that they have no understanding of Rust.