4 ms·
...Except that Rust is thread-safe, so expressing your algorithm in terms that the borrow checker accepts makes safe parallelism possible, as shown in the examp
by kibwen 1y ago
...Except that Rust is thread-safe, so expressing your algorithm in terms that the borrow checker accepts makes safe parallelism possible, as shown in the example using Rayon to trivially parallelize an operation. This is the whole point of Rust, and to say that C and C++ fail at thread-safety would be the understatement of the century.
- jstimpfle 1y agoMemory safe doesn't imply memory efficient and reasonable. Wrapping everything in Arc is the opposite of simple & easy.