by iafisher on 1/8/24, 9:38 PM with 40 comments
by petsfed on 1/8/24, 10:45 PM
by pcfwik on 1/9/24, 12:19 AM
by Pesthuf on 1/8/24, 10:56 PM
by jiggawatts on 1/8/24, 10:40 PM
There’s an updated version with Windows support and better performance: https://github.com/John2143/totally-speedy-transmute/
What worries me is this macro, which “smuggles” the unsafe keyword past the forbid(unsafe_code) flag: https://github.com/John2143/totally-speedy-transmute/blob/ma...
In my mind, this kind of capability makes Rust crate safety scanning and associated metadata worthless as currently implemented.
Package management tools ought to store code instead of binaries, and perform safety checks to via instrumented compilers.
by api on 1/8/24, 11:54 PM
by quotemstr on 1/9/24, 3:01 AM
Every day that goes by is a day I think we should make a beeline to CHERI even when we have "safe" languages.
by o11c on 1/8/24, 11:54 PM
by kazinator on 1/8/24, 11:19 PM
Casts are conversion: a new value is produced based on an existing one.
Reinterpretation requires a value to be in memory, and to be accessed using an lvalue of a different type. Most situations of this kind are undefined behavior.