AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Problem With Tree Borrows
Tree borrows is a new way of implementing aliasing in rust. The biggest change with tree borrows is that turning a pointer into a reference doesn't shrink its province to the size of the reference and so you can then cast back to a raw pointer and offset it outside the size of thereference right? It's very useful yes but uh as far as it's brutal it is brutal the i i i use this pattern a lot in c and breaking this pattern for me was a big part of learning rust and accepting that that pattern was no longer going to be part of what i i just like that I thought of as intrusive data structures where you got a data structure within a data