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
- A half-hour to learn Rustfasterthanli.me
- Learn Rust the Dangerous Waycliffle.com
- Destroy All Values: Designing Deinitialization in Programming Languages - Faultloregankra.github.io
- What is Ownership? - The Rust Programming Languagedoc.rust-lang.org
- References and Borrowing - The Rust Programming Languagedoc.rust-lang.org
- Rust Optimization.md · GitHubgist.github.com
- (Re)writing an interpreter in Rust – Danny van Kootendannyvankooten.com
- What Every C Programmer Should Know About Undefined Behavior #2/3 - The LLVM Project Blogblog.llvm.org
- What is Ownership? - The Rust Programming Languagerust-book.cs.brown.edu
- References and Borrowing - The Rust Programming Languagerust-book.cs.brown.edu
- Working with strings in Rustfasterthanli.me
- Patterns for Defensive Programming in Rust | corrode Rust Consultingcorrode.dev