4 ms·
This is a really weird hack to say the least. More like a flex showing that the author can implement transmute without unsafe than something you’d really use.
by api 3y ago
This is a really weird hack to say the least. More like a flex showing that the author can implement transmute without unsafe than something you’d really use.
- throwaway0665 3y agoThe point is likely to show that Rust's "safety" is not absolute and it's possible to do lots of silly stuff with "safe" code.
- lifthrasiir 3y agoThat's true but this particular crate exists to show an unevitable hole in the definition of memory safety, while you can do lots of stupid things (like, `rm -rf /`) only with absolutely safe code.
- api 3y agoAbsolute safety would require a totally managed runtime with least privilege, not a 1970s Unix derivative.