
one of the gnarliest tricks i've seen in rust is preventing deadlocks *at compile time*
I think it might be fun to make a mutex library where you must give every mutex a u32 priority, and you are only allowed to acquire mutexes of strictly higher priority than any your thread currently holds, with crashes if you violate this rule. This completely prevents deadlocks.
2
8
693
Replying to @SpaceXSI
Halftime: Dynamically weaves AI-generated ads into the scenes you’re watching, so breaks feel like part of the story instead of interruptions.
@krishgarg @yuviecodes @lohanipravin
unwrap() is for invariant violations. in this particular case, the invariant was a soft limit which they treat as a hard one
just one more chromium fork bro just one more i swear this time it's gonna work no one's thought of this one bro i sw-
1
4
232









