News for hackers. Stuff that matters.
Re:Thread Safety in C++ and Rust by natded on Sunday December 19, 2021 @01:47AM (#29611986)
One of the best post-beginner / intermediate learning experiences wrt. Rust is to try to model the Borrow Checker behavior with Rust. Just write small (>10 LoC) programs within safe subset of Rust:

1. Rejected unsafe programs (and the why)

2. Rejected safe programs (and the why)

.. and try to convince yourself that you understand the logic behind the two.

https://whileydave.com/2021/12/06/modelling-borrow-checking-...

https://github.com/rust-lang/unsafe-code-guidelines/blob/mas...

There are no comments on this comment yet.