NHacker Next
login
▲Lilos: A wee async RTOS for Cortex-Mgithub.com
82 points by hasheddan 744 days ago | 7 comments
Loading comments...
retrac 743 days ago [-]
The comments in the code are wonderful documentation. I like the applicative mutex, I may borrow the idea! https://github.com/cbiffle/lilos/blob/main/os/src/mutex.rs
lulf 743 days ago [-]
Async Rust is great for embedded! Check out https://embassy.dev as well which is very similar but with support for more hardware.
Matthias247 743 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 743 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 743 days ago [-]
Awesome. When I saw it was from Cliff Biffle I got really excited. This is why I visit HN.
sitkack 739 days ago [-]
I can see why http://cliffle.com/blog/bare-metal-wasm/ https://github.com/cbiffle
sitkack 743 days ago [-]
Super cool. A friend of mine built an event based task runner on the PIC18, but this looks even neater.