← Back to context

Comment by gmueckl

24 days ago

How do you create shared mutable ownership of overlapping ranges of a single flat array in rust?

similarly except the algorithm to Mutex<[T]> and Arc?

  • How does this work e.g. for an array of integers that several workers threads write to at random, non-overlapping positions?

    • 1. by implementing your complex algorithm? 2. if they don't overlap, they can't be random, can they?

      Rust can literally do anything programmatically. Idk why you think it cannot do something.

      3 replies →