Scripting languages will provide safety, but not concurrency and speed, while traditional systems programming languages such as C and C++ will definitely give you speed and some concurrency, but forget about safety! If you need safety, concurrency, and speed, then Rust is the only viable option.
In this course, you will learn how Rust guarantees memory and thread safety at compile-time, yet uses zero-cost abstractions without the runtime overhead of a garbage collector. You'll learn how to monitor the flow of data through a pipeline by building your own middleware utility. You'll learn how to utilize I/O to interact with the command line, work with standard library mpsc channels to perform data flows, and create an ergonomic timer for your project. You'll apply key concepts in every section while creating your own middleware tool in Rust along the way.
By the end of this practical course, you will feel comfortable designing safe, consistent, parallel, and high-performance applications in Rust using systems programming.
This course should appeal to intermediate Linux and general Unix programmers, network programmers, and C/C++ programmers interested in learning different approaches to concurrency. Prior knowledge of basic programming concepts is required, and a working knowledge of Rust is assumed.
What You Will Learn
- Explore Rust s package registry for discovering and sharing code
- Use multithreading to unlock the power of multiple cores
- Get to know data-flow rate and speed through a pipeline
- Display time-based statistics using stderr
- Build your own middleware project to control the flow of data between two processes
- Best practices and techniques to set up your project for success
- Test and publish your own project on crates.io
If you are already a software developer and want to learn systems programming in Rust practically and quickly, this course is for you!
This course will greatly appeal to intermediate Linux and general Unix programmers, network programmers, and C / C++ programmers interested in learning different approaches to concurrency. Prior knowledge of basic programming concepts is required. A working knowledge of Rust is assumed.
About The Author
Nathan Stocks: Nathan Stocks has spent the last 20 years working in software development, mostly in the field of backend infrastructure. He fell in love with Rust in 2016 and began teaching it in 2017. For the past several years, he has focused on systems-level programming. He maintained the AVbin audio library (written in C) from 2011-2013. He has had tons of fun learning, using, and teaching Rust at conferences and online. He also loves Python and PostgreSQL, and still occasionally suffers from nightmares about C and C++. He currently works at GitHub, managing the Git Storage team, and spends his nights in pursuit of someday creating a successful indie game in Rust.
Table of contents
- Chapter 1 : Preparing for Systems Programming with Rust
- Chapter 2 : Operating with I/O
- Chapter 3 : Applying Multithreading Features to Your Project
- Chapter 4 : Dealing with Time and Terminal
- Chapter 5 : Systems Programming in Rust: Best Practices
- Title: Hands-On Systems Programming with Rust
- Release date: February 2020
- Publisher(s): Packt Publishing
- ISBN: 9781838822132
You might also like
Programming WebAssembly with Rust
WebAssembly fulfills the long-awaited promise of web technologies: fast code, type-safe at compile time, execution in …
Practical System Programming for Rust Developers
Explore various Rust features, data structures, libraries, and toolchain to build modern systems software with the …
Network Programming with Rust
Learn to write servers and network clients using Rust's low-level socket classes with this guide About …
Introduction to Rust Programming
Many programmers from all over the world consider Rust as an alternative programming language for building …