
Rust in Production Fusion Engineering with Jakub Valtar
Jul 11, 2024
Jakub Valtar, a former game engine developer turned drone software engineer at Fusion Engineering, discusses innovative flight-control systems for the next generation of drones. He highlights Rust's advantages, including performance and safety, crucial for drone operations in complex environments. Valtar shares insights on handling hardware failures, utilizing real-time scheduling on Raspberry Pi, and the importance of robust error handling. He also emphasizes Rust's role in improving team productivity and encourages others to explore drone development, blending technology with creative engineering.
AI Snips
Chapters
Books
Transcript
Episode notes
Fail Fast When Safety Requires It
- Handle recoverable errors in code flow and crash when continuing would be unsafe.
- Jakub says crashing is preferable to an uncontrollable drone when recovery is impossible.
Encode Assumptions In Types And Docs
- Encode assumptions in types and docs to prevent misuse and preserve critical knowledge.
- Jakub recommends making illegal states unrepresentable and documenting non-encodable constraints.
Give Primitives Meaning With Types
- Use new-type patterns and enums to avoid primitive misuse and make code self-documenting.
- This reduces bugs like mixing units or boolean blindness by giving semantic meaning to values.


