← Back to context Comment by afdbcreid 24 days ago Like? 10 comments afdbcreid Reply gmueckl 24 days ago Algorithms that safely mutate the same data structure on multiple threads and do so safely because of some complex algorithmic properties that guarantee that the changes do not overlap? afdbcreid 24 days ago Rust can do that just fine. https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell..... "some complex algorithmic properties that guarantee that the changes do not overlap" are exactly the place to use unsafe and encapsulate it.If you mean things that formally create a data race, then C++ cannot do that either. tcfhgj 24 days ago Why can Rust not do that? gmueckl 24 days ago How do you create shared mutable ownership of overlapping ranges of a single flat array in rust? 6 replies →
gmueckl 24 days ago Algorithms that safely mutate the same data structure on multiple threads and do so safely because of some complex algorithmic properties that guarantee that the changes do not overlap? afdbcreid 24 days ago Rust can do that just fine. https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell..... "some complex algorithmic properties that guarantee that the changes do not overlap" are exactly the place to use unsafe and encapsulate it.If you mean things that formally create a data race, then C++ cannot do that either. tcfhgj 24 days ago Why can Rust not do that? gmueckl 24 days ago How do you create shared mutable ownership of overlapping ranges of a single flat array in rust? 6 replies →
afdbcreid 24 days ago Rust can do that just fine. https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell..... "some complex algorithmic properties that guarantee that the changes do not overlap" are exactly the place to use unsafe and encapsulate it.If you mean things that formally create a data race, then C++ cannot do that either.
tcfhgj 24 days ago Why can Rust not do that? gmueckl 24 days ago How do you create shared mutable ownership of overlapping ranges of a single flat array in rust? 6 replies →
gmueckl 24 days ago How do you create shared mutable ownership of overlapping ranges of a single flat array in rust? 6 replies →
Algorithms that safely mutate the same data structure on multiple threads and do so safely because of some complex algorithmic properties that guarantee that the changes do not overlap?
Rust can do that just fine. https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell..... "some complex algorithmic properties that guarantee that the changes do not overlap" are exactly the place to use unsafe and encapsulate it.
If you mean things that formally create a data race, then C++ cannot do that either.
Why can Rust not do that?
How do you create shared mutable ownership of overlapping ranges of a single flat array in rust?
6 replies →