These are chat archives for rust-lang/rust

9th
Mar 2018
Michal 'vorner' Vaner
@vorner
Mar 09 2018 07:42
@portstrom I don't know who to contact or where to do it, but I hope I won't miss it (I'm prom Prague and trying to push for Rust in my company, but I don't have the energy now to actually organize something outside of it).
Ayushya Chitransh
@AyushyaChitransh
Mar 09 2018 07:57
@portstrom I would love to attend it if it is possible to have online something too
I have been exploring rust and trying to learn from the book rust lang.
Michal 'vorner' Vaner
@vorner
Mar 09 2018 08:15
@portstrom Also, if you'd like someone to help mentoring during the workshops, I'd like to offer help if I have time at that time (I have some experience with teaching, both Rust and programming in general).
Scott J Maddox
@scottjmaddox
Mar 09 2018 18:11
Hi eveyrone! Quick question: is there any plan to allow multiple mutually exclusive mutable indexes into an array at one time? In cases where it's easy to prove (or assert) mutual exclusion, it would be nice to not need to use unsafe.
Also, as far as I can tell, I have to switch to pointers, which is more of a pain than it really should be.
Actually, I guess I can do unsafe{&*(&mut array[i] as *mut _)};, which isn't easy enough, but not very pretty.
Sorry, meant to say is easy enough
Scott J Maddox
@scottjmaddox
Mar 09 2018 18:15
yeah, thats a bit of a pain for N^2 iteration
I didn't see anything in a quick search of the RFC's, but I find it difficult to believe that no one has run into this. N^2 iteration of an array is extremely common when trying to get something up and running quickly.
And really just in general...
Yemi Bedu @ P&R
@pr-yemibedu
Mar 09 2018 18:21
there is a youtube video showing rayon do that with join over the closures.
Yemi Bedu @ P&R
@pr-yemibedu
Mar 09 2018 18:28
Diving Into Rust For The First Time https://youtu.be/_jMSrMex6R0?t=2520 by Niko
it still has unsafe, but rayon is handling that for you.