All aboard the Rust (electric freight) train!
summary
Parallel Systems builds a full electric freight vehicle stack in Rust: firmware, control state machines, simulation, PTC networking and perception, and it runs. Macros generate state-machine code and diagrams; the simulation uses enum dispatch for a 10x improvement in iteration time; PTC parsing encodes 100 PTC message types with ~10k LOC of structs and ~5.5k LOC generated; DeepStream/CUDA bindings use bindgen + Drop for safety to wrap C APIs. Results: working vehicles and fast sims, with tradeoffs of opaque macros, tricky callbacks, and onboarding cost.
AI-written summary · about
chapters (14)
- 0:00Intro
- 1:17System Architecture
- 2:35Vehicle Software
- 3:25State Machines 101
- 8:19State Machines in Rust: Summary
- 11:15Vehicle Simulation Model
- 12:33Conductor Nodes
- 17:04Rust in Simulation: Summary
- 20:03Positive Train Control with Rust macros
- 21:33Code Breakdown
- 22:08Positive Train Control: Summary
- 23:59Perception Framework
- 25:33Crabification Architecture
- 29:29User Application
related talks
37m"Rusty New 'ars: Look, Ma, No C Added!"
39mReal-Time Rust in Robotics
20m"Rust in Motion: Building Reliable and Performant Robotics Systems"
27mDeterministic fleet management for autonomous mobile robots using Rust
40mRust for large-scale automotive applications
31mThe Fullest Stack
22mUsing Rust in Metal Fabrication
27mRust at Volvo Cars
