Rust 101 – 37: Async runtimes
We talked about how Futures have poll methods, but who calls them? That is the job of the runtime. We talk about how to launch your async code and how to choose the right runtime, and then we have a...
View ArticleRust 101 – 38: Exercises for module E (q1a)
Writing our own multi-producer-single-consumer (MPSC) queue using async Rust. Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait...
View ArticleRust 101 – 39: Exercises for module E (q1b)
Writing a one-shot queue using async Rust, this time with a little less help. Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait...
View ArticleRust 101 – 40: Exercises for module E (q2a)
Writing a little chat server in async Rust. Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, Async This section (Async): 34:...
View ArticleRust 101 – 41: Exercises for module E (q2b)
Writing a mini client to connect to our async Rust chat server. Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, Async This...
View ArticleRust 101 – 42: Why do we need unsafe?
There is a special mode in Rust programs called unsafe – why do we need it? Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects,...
View ArticleRust 101 – 43: The two meanings of “unsafe” in Rust
The `unsafe` keyword in Rust means two things: “You must read the docs!” or “I promise I read the docs and followed the rules!”. Series: Language basics, More syntax, Traits and generics, Building...
View ArticleRust 101 – 44: Undefined behaviour
If you write unsafe Rust, you need to reason about “undefined behaviour”. We talk through what that means, and try to develop an intuition about why we can’t predict how our program will behave if we...
View ArticleRust 101 – 45: Unsafe types and examples
Looking through some of the types of code you will be working with if you’re doing unsafe Rust, and some of the unsafe types you might want to use. Series: Language basics, More syntax, Traits and...
View ArticleRust 101 – 46: Exercises for module F (q1)
Coding up a linked list based on raw pointers in Rust. Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, Async, Unsafe This...
View Article