News for hackers. Stuff that matters.
Re:151-byte static Linux binary in Rust by omega_rythm on Sunday January 11, 2015 @04:10AM (#8869510)
You really should have a look at the rust code this guy wrote. I would not call that last optimization type safe.
Re:151-byte static Linux binary in Rust by the_mitsuhiko on Sunday January 11, 2015 @04:18AM (#8869518)
How so? The only unsafe part is the transmute which only saves 7 bytes anyways :P
Re:151-byte static Linux binary in Rust by exprL on Sunday January 11, 2015 @10:43AM (#8870213)
Even that is still type safe, just not portable. After all, every part of the memory is a collection of bytes (that is, a slice of u8) – whether you can access them is another story.