Master the fundamental concepts of rust for systems programming through this focused micro-challenge.
async fn in Rust desugars to a type implementing Future. tokio, hyper, and axum all boil down to executors calling poll until Poll::Ready. No magic threads: cooperative tasks yield at .await.
rustLoading…
Waker from cx and call it when I/O completesvrustLoading…
Real runtimes integrate epoll/kqueue and timer wheels; yours can spin for teaching.
For this exercise, you will implement a tiny executor that polls spawned futures until idle. This task asks you to wire a Waker that requeues tasks, because debugging tokio hangs without understanding poll/wake is guesswork.
Keep the relevant man page, ABI doc, or Rust reference chapter open while you work. When your output disagrees with the reference implementation on the same machine, the mismatch is usually an alignment rule, an off-by-one terminator, or a register slot you misread in GDB. Skim the official documentation for the tool or ABI named in the exercise; the prose changes, but register roles, syscall numbers, and ownership rules stay stable across releases.
Implement a simple async runtime from scratch.
Requirements:
Three hints are available for this task, revealed one at a time inside the code workspace so you can struggle productively before seeing them.
All starter code and reference implementations are available for your local setup.
View on Github