5 ms·
Here is the original link – it was made by Raph Levien: https://docs.google.com/presentation/d/1q-c7UAyrUlM-eZyTo1pd8SZ0qwA_wYxmPZVOQkoDmH4/edit#slide=id.p htt
by conradev 9y ago
Here is the original link – it was made by Raph Levien:
https://docs.google.com/presentation/d/1q-c7UAyrUlM-eZyTo1pd8SZ0qwA_wYxmPZVOQkoDmH4/edit#slide=id.p https://docs.google.com/presentation/d/1q-c7UAyrUlM-eZyTo1pd...
- steveklabnik 9y agoA quick note: while this is a good way to get a grasp on how these types work, it also exposes/implies things that are implementation details and not guaranteed. This is why we haven't put it in the docs, awesome of a resource as it is.
- raphlinus 9y agoMy feelings are hurt! Nah, just kidding. An example of the kind of thing that might change, the current stdlib mutex implementation currently depends on pthread mutex objects, which can't be safely moved, so there's an additional allocation to box them. The parking_lot crate is an alternative implementation that interfaces with the system at a lower level, so can avoid this allocation. I found I learned a lot about Rust's low level implementation details when making the chart, so can definitely see how it would be useful for such a class, and am very happy it's being used in this way.
- steveklabnik 9y ago<3 By the way, I'm extremely sad to be missing your talk at the Recurse Center; I'm in Canada until Monday :(
- wasted_intel 9y agoIs there the possibility of adopting this with an explicit caveat that the details are subject to change? I would have found it incredibly useful when first learning about these types; feels like a missed opportunity.