News for hackers. Stuff that matters.
Re:Embassy: Modern embedded framework, using Rust and async by bfrog on Thursday January 08, 2026 @11:25PM (#46550019)
I've read this, and frankly its comparing apples to oranges. These are not the same things though naively they may appear the same.
Re:Embassy: Modern embedded framework, using Rust and async by bschwindHN on Friday January 09, 2026 @12:36AM (#46550416)
I'd be happy to hear some of the differences if you don't mind. Both Embassy and FreeRTOS are often used to organize the various tasks you want to perform in an embedded context so I think it's fair to compare them.

I know their implementations and behaviors can be quite different, but I'd like to hear more about what makes this an apples to oranges comparison.

Re:Embassy: Modern embedded framework, using Rust and async by bfrog on Saturday January 10, 2026 @08:34AM (#46565622)
Show me how time slicing or deadline scheduling would work with multiple priorities (InterruptExecutor's) involved. Show me how a task in an InterruptExecutor would priority boost a task of a lower priority, switch to it, then switch back to free up a locked resource. I don't see how these things are feasible in Embassy.

There's a large number of things that the cooperative scheduler can't do. Maybe you don't need those things, that's fine! Embassy really is quite nice for cooperative task scheduling. But to benchmark a context swapping RTOS which can and pays the cost for doing so, against a cooperative task queue scheduler... these are not at all the same things, and won't have the same performance characteristics in simple scenarios like the one in the blog post.

Re:Embassy: Modern embedded framework, using Rust and async by rcxdude on Sunday January 11, 2026 @07:02AM (#46574953)
With an NVIC you essentially have a context switching realtime scheduler in hardware. With appropriate configuration of it you can achieve all things you mention here (though I don't know if embassy has a mechanism for priority inheritance in its current primitives for this kind of thing).
Re:Embassy: Modern embedded framework, using Rust and async by bfrog on Sunday January 11, 2026 @11:53AM (#46577322)
How would time slicing work?
Re:Embassy: Modern embedded framework, using Rust and async by imtringued on Friday January 09, 2026 @08:32AM (#46553641)
Maybe actually post a legitimate criticism instead of making people think hard about what you're saying?

If I had to complain, I'd say that usually an RTOS isn't really meant for something like button handling. You can use it and it will work, but the bread and butter workload of an RTOS is multiple simultaneous CPU/time intensive tasks that need to complete within a deadline.

The embassy scheduler here could run into a problem because long running tasks would block short lived interrupts.