flâneur

Measure What You Optimize - Cliffle

cliffle.com · 1,338 words · saved by 1 readers

Learn Rust the Dangerous Way, Part 3

Learn Rust the Dangerous Way, Part 3 2019-12-09 Refreshing your (uninitialized) memory Measuring A safe version of output_Energy What have we learned? Where next? (Series Overview) In part 2 we introduced Rust references, and this was enough to convert one of our inner functions into safe Rust. The others are still unsafe. There are several reasons for this. In this, the briefest of sections, we’ll tackle the easiest one: deliberate use of uninitialized memory. Refreshing your (uninitialized) memory At the end of part 2, our program looked like this: nbody-2.rs There are two…

saved by

related reading