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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help