Skip to content
0:00 / 0:00

#rust#statemachines#enum_dispatch

RustConf 2022 - All aboard the Rust (electric freight) train! by Julie Wang

Rust Programming Language

70K subscribers • 72 videos on Hallway • Conference channel

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Julie Wang

Intermediate. Assumes working knowledge.

15K views4 years ago2 recommendations

Systems programmingHardwareRustEmbedded systemsConcurrency and parallelism

Julie Wang discusses how Parallel Systems uses Rust for firmware, control, and simulation of modern electric freight trains.

At Parallel Systems, a team of C++ and Python developers raised on null pointers, read/write races, and the wild west of pip packaging, set off to create a modern electric freight train with an appropriately modern systems language – Rust. We dive into our use of Rust as a general-purpose language for our entire tech stack for a safety-critical, real-time application. Join us to learn about how we use Rust to write firmware, to control and simulate the freight vehicle, and even to wrap deep learning libraries to make them all available in Rust.

Why it's here

2 people recommend this

What people say. Recommended for its practical insights on building state machines and safety-critical systems in Rust.

u/NewtonChutneyin r/rust • Recommends

On “YouTube channels for a beginner”

To get hyped up about rust: No boilerplate, Chris Biscardi To learn: As others have already mentioned, Doug Milford, Jon Gjengset, Ryan Levick, fasterthanlime, Jeremy Chone, Gaming: Tantan General programming: theprimeagen Also, the official rust channel @rustvideos hosts some amazing content.. - one about a research database that has a lot of parallelism - rust in arts: mindbuffer+nannou link to this video - electrification of freight trains: link to this video Another video on static vs dynamic dispatch, and a position where dynamic had to be preferred over static: link to this video

u/CrimsonManain r/rust • Recommends

On “How do you build your state machines?”

There's a great Rust Conf talk about developing a state machine for automated electric freights. It's a great watch: Rust Conf 2022: All aboard the Rust(electric freight) train! By Julie Wang Using enum_dispatch crate, also mentioned in the talk, is an excellent way to build a state machine, maintaining type information and better performance than simply using dynamic dispatch.