Skip to content
0:00 / 0:00

#tokio#actors#ownership

Keynote | Actors with Tokio – a lesson in ownership - Alice Ryhl

RustLab Conference

5.3K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Alice Ryhl, Tokio contributor

Intermediate. Assumes working knowledge.

25K views3 years ago2 recommendations

Distributed systemsSystems programmingRustConcurrency and parallelismSoftware architecture

Alice Ryhl explains how the actor pattern fits naturally with Rust's ownership rules and how to implement actors using Tokio.

🔔 FOLLOW RUSTLAB CHANNEL 🔔 ABSTRACT: Actors are an elegant way to work with shared resources. Furthermore, actors fit together with Rust’s ownership rules very well, and learning how to write actors gives a better understanding of how to write code that the borrow checker likes. This channel is dedicated to the videos of the RustLab conference. ⚙️ Follow us on TWITTER: twitter.com/rustlab_conf ⚙️ Follow us on FACEBOOK: facebook.com/RustLabConference RustLab is the first Italian international conference on the Rust programming language, organized by Develer. Develer is not just an Italian company projecting and releasing hardware and software solutions for the industrial environment, but is also an ensemble of people sharing their great passion for new technologies and how they can be applied to your everyday life. ⚙️ Follow DEVELER on INSTAGRAM: instagram.com/wearedeveler/ ⚙️ Follow DEVELER on FACEBOOK: facebook.com/we.are.develer/ ⚙️ Follow DEVELER on TWITTER: twitter.com/develer ⚙️ Follow DEVELER on LINKEDIN: linkedin.com/company/114426/ ⚙️ Follow DEVELER on TELEGRAM: t.me/wearedeveler ⚙️ Follow DEVELER on TIK TOK: tiktok.com/@wearedeveler

Why it's here

2 people recommend this

What people say. Recommended as an excellent presentation on implementing the actor pattern in async Rust.

u/AiexRedditin r/rust • Recommends

On “What's your favourite lecture/presentation about Rust?”

…. Catherine West's closing RustConf 2018 talk on Rust gamedev and how ECS systems work, dynamic typing, arenas etc. I first started learning Rust by building games (as I do for most languages) and this one is just so good t describing a lot of the underlying fundamentals of the tools I was using (at the time specs and amethyst, these days Beyv) link to this video 2. This talk from Alice Rhyl of Tokio on the actor pattern. I was fumbling around with event driven systems last year for the first time and really struggling to figure out what I was trying to do, and when I came across this blog and the associated talk (linked below) it all clicked together as "ohhhh this is an established pattern with…

u/xul_ed_tohrobin r/rust • Recommends

On “Tips on architecture with Tokio”

Actors are a neat pattern

u/MassiveInteraction23in r/rust • Mentions

On “I don't understand how the std::thread::scope lifetime's function works”

Lifetime syntax and name choices are janky af.  It’s one of the only notable syntax failings of rust. +’static does NOT mean that the thing is static.  It means that the thing has no lifetime annotations that would shorten it.  (+ often means intersection when dealing with lifetimes, but here it … well lifetimes have not been nearly added to syntax and … I don’t know of any good general disambiguating sources for what it means where.  I suppose that means I should do some extra hw and then make one.  But TLDR: bad info circulates on this and then use is inconsistent.) See Alice Ryhl @ 20:00:00 in this talk here: link to this video