Rust / Atom
A hands-on Rust lab. Start with bits and bytes, then trace what happens to a value as you move it, borrow it, and process it in a collection.
A hands-on Rust lab. Start with bits and bytes, then trace what happens to a value as you move it, borrow it, and process it in a collection.
Understand what the machine actually does. Manipulate the rules. Predict the compiler. Only then write bigger programs.
A variable is not simply a box. Explore how values occupy bytes, how stack frames differ from heap allocations, and why Rust's ownership rules make sense once you can see the memory.
0 / 5 checkpoints complete · stored in this browser
Educational simulation, not a Rust compiler. Illustrative addresses and layouts are conceptual, not a promise of exact runtime placement. Verify snippets at play.rust-lang.org.
Rust tracks who owns a value and who may borrow it. Explore moves, copies, immutable references, exclusive mutable references, and the moment a borrow ends. No garbage collector required.
0 of 5 checkpoints
Rust structures describe what data contains. Enums describe which state it can be in. Patterns let you unpack either safely. Build a miniature sensor controller and watch its state machine respond.
0 / 5 checkpoints
Rust encodes absence and recoverable errors in types. Route missing sensor readings through Option<T>, parse uncertain input with Result<T, E>, and watch ? return errors to the caller.
Build and inspect collections of sensor readings. Discover how Vec<T> grows, how slices borrow a view, how maps associate keys with values, and how iterators transform data without mutating the source.