Hacker News new | ask | show | jobs
by avadodin 65 days ago
I'm not a rust expert, but couldn't this be solved like memory safety? A few checks here and there.
1 comments

How do you statically guarantee the order of lock acquisition for a thread? I think either you have simple enough control flow that it is somehow entirely visible to the compiler or you need to embed the order into the type system like this approach does.