News for hackers. Stuff that matters.
Re:totally_safe_transmute, Line-by-Line (2021) by throwaway0665 on Monday January 08, 2024 @07:17PM (#38920536)
The 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.
Re:totally_safe_transmute, Line-by-Line (2021) by lifthrasiir on Tuesday January 09, 2024 @01:32AM (#38923089)
That'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.
Re:totally_safe_transmute, Line-by-Line (2021) by api on Tuesday January 09, 2024 @07:30AM (#38925358)
Absolute safety would require a totally managed runtime with least privilege, not a 1970s Unix derivative.