Async Rust is great for embedded! Check out https://embassy.dev as well which is very similar but with support for more hardware.
Matthias247 670 days ago [-]
It looks pretty cool. And is actually something I tried while I was working on futures-intrusive (before I lost most interest in async Rust).
But besides being possible, I'm wondering if its a *realtime* OS in the sense that the term suggests. A realtime OS requires guarantees that tasks run in certain intervals - which seems to require preemption, and thereby "real" stacks. When using a cooperative multi-tasking system it seems any task could prevent all others from running - which voids the realtime guarantees.
bfrog 670 days ago [-]
That’s not true, higher priority interrupts could drive higher priority tasks still. That’s the premise of RTIC which also supports futures.
dbcurtis 671 days ago [-]
Awesome. When I saw it was from Cliff Biffle I got really excited. This is why I visit HN.
But besides being possible, I'm wondering if its a *realtime* OS in the sense that the term suggests. A realtime OS requires guarantees that tasks run in certain intervals - which seems to require preemption, and thereby "real" stacks. When using a cooperative multi-tasking system it seems any task could prevent all others from running - which voids the realtime guarantees.