Rust Tutorial
The slides are available at
http://www.slideshare.net/nikomatsakis/rust-mozlando-tutorial. The
original keynote file is
also available.
This page is at http://smallcultfollowing.com/20151209.
- Hello World:
- Goal: make it greet you by name
- Time: 3 minutes
- Ownership:
- Goal #1: Get code to compile
- Goal #2: Convert so that it prints Removing vowels from "Firefox" yields "Frfx".
- Extra credit: Can you do it without copying any data?
- Time: 10 minutes
- Borrowing:
- Goal: convert
strcat
function so that it uses borrowing, not ownership.
- Question:
- Time: 10 minutes
- Structs
- Goal: implement
total_price
method
- Time: 10 minutes
- Threads
- Goal: join the threads and print out the store with the best price
- Extra credit #1: use channels instead
- Extra credit #2: or, instead of channels, use a mutex to compute the best price in
the parallel threads themselves
- Time: 10 minutes
Thank you for coming to the tutorial! Before you go, please let me
know what you thought at
this Google form.