Re:totally_safe_transmute, Line-by-Line (2021)
by api on Monday January 08, 2024 @06:54PM
(#38920274)
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.
[ Parent
| on HN ]
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.