Re:Rust for Web
by steveklabnik on Monday February 01, 2016 @08:21AM
(#11011546)
You can safely pass mutable pointers to stack data to scoped threads.
[ Parent
| on HN ]
Which requires the language to perform some kind of synchronization around the data access or you will have races between threads.
Just because you don't have to be explicit about it doesn't mean you don't need to have some mechanism to handle it somewhere, its just automatic instead.
Re:Rust for Web
by steveklabnik on Monday February 01, 2016 @02:54PM
(#11014849)
It does not, actually, if you're accessing disjointed parts of your data: http://aturon.github.io/crossbeam-doc/crossbeam/struct.Scope...