Instructor & office hours
||Ford 2-215||Tue. & Thu. by appointment|
Modern, safe programming languages such as Java and Python have become increasingly accepted for application-level programming, but for systems programming, which often requires precise, low-level control of system resources, programmers still turn to C and C++. The new programming language Rust, under development by Mozilla, promises the best of both worlds: the type safety of Java with the speed and expressiveness of C++. Through discussions, lectures, and programming exercises, students will learn how to program in Rust and to use its resource ownership model effectively. Rust is especially well suited for our particular focus, concurrent programming, so students will use Rust as a vehicle for exploring both classic concurrency problems and more contemporary concerns.
This course assumes proficiency in C++ and some programming maturity.
We will have one in-class examination on Thursday, May 4.
There will be no final exam.
There is no required textbook. However, you are likely to find some online references useful:
Please post your questions on our Piazza discussion board.
We will use Rust 1.16, currently in stable. On OS X or Linux, it’s recommended that you install Rust using rustup, with this single command:
curl https://sh.rustup.rs -sSf | sh
Rust is also available on the lab machines (tlab01.eecs,
batman.eecs, etc.). Add
We also will use C++ 2014, the current version of the C++ programming language; earlier versions of C++ may not work for all the code we write. The instructor will be using CLion, a cross-platform IDE. CLion ordinarily costs money, but student licenses are available for free. Any other conforming C++14 toolchain should work.
This table specifies the course schedule; topics are tentative.
|28 Introduction [rainfall spec]||30 Hello, Rust! [code]|
|4 Rainfall solution [code]||6 Rust basics, continued [code]|
|11 Ownership and borrowing [slides]||13 ...continued... [code]|
|18 Mutual exclusion [slides]||20 More mutual exclusion [slides]|
|25 Concurrency in Rust [code]||27 Concurrency in Rust, continued [code]|
|2 Concurrent objects and linearizability [slides]||4 Exam|
|9 A better concurrent list-set [slides, code]||11 A lock-free list-set [code]|
|16 Atomics [code]||18 Using atomics [code]|
|23 Futures [code]||25 Presentation prep|
|30 Final presentations||6/1 Final presentations|
Collaboration and academic integrity
You may not collaborate with anyone on the exam. You may not use any electronic tools, including phones, tablets, netbooks, laptops, desktop computers, etc. If in doubt, ask the instructor.
Most homework assignments will be completed with a partner or team. You should work with your official partner or team, as specified, on homework assignments. You may discuss your work with anyone, but all work you submit must yours, or when appropriate, your team’s. However, the best place to discuss anything related to the course is on our Piazza discussion board. Of course, you may always ask the instructor for help; when working with a partner, it’s best to ask for help together.
Students who cheat will be reported to the appropriate dean.
If you are unclear on any of these policies, please ask the instructor.
In general, you should submit your homework according to the instructions on the web page for the individual assignments.
Acceptance of late work is at the discretion of the instructor. Generally, I would rather have you do the work and learn something rather than skip it.
Your grade will be based on your performance on
- class participation (5%),
- four programming assignments (20%),
- one midterm exam (25%), and
- one final project (50%).
The mapping of raw point totals to letter grades is at the discretion of the instructor.