3 ms·
Not every program has such a well-defined life cycle that fits into Rust’s memory model. There was a great post on why the wayland library’s rust implementation
by kaba0 6y ago
Not every program has such a well-defined life cycle that fits into Rust’s memory model. There was a great post on why the wayland library’s rust implementation was abandoned. There was basically no point of Rust’s memory model there over C.
- lmm 6y agoIn the worst case you're no worse off. As several replies there said, a weak pointer model would have worked fine for that scenario.
- kaba0 6y agoFor new code, absolutely. But rewrites, especially when the new language can’t necessarily give huge safety guarantees as in this case are very bug-prone.