corroded: so unsafe it should be illegal
github.com·3d·
Preview
Report Post

corroded

"We used to tell compilers what to do. Now they lecture us about ‘lifetimes’ and ‘ownership.’ Time to write code the way God intended." — Terry Davis, probably

What Is This

The rust compiler thinks it knows better than you. It won’t let you have two pointers to the same thing. It treats you like a mass of incompetence that can’t be trusted with a pointer.

We fix that.

Modules

null

Billion-dollar mistake? More like billion-dollar idea.

Null<T> gives you back raw pointers that can be null. Dereference them. See what happens.

let ptr: Null<i32> = Null::null();
let x = *ptr;  // segfault -> freedom.

transmute

yeet() reinterprets any bytes as any type. Look at a float as an integer. View a struct as a byte array. Cast a function …

Similar Posts

Loading similar posts...