by codeulike · 5y ago · 0 comments
If only one sensor input changes then intermediate computations that don't depend on it don't need to be updated.
And you still need a control loop to look for sensor changes? Its just a way of caching most of the computation?
[1] There is a busy loop but it's only there to trigger tasks on a timer.
It sounds elegant, but I’m not convinced there’s a benefit to a model of abstractions of abstractions like this unless it’s done at the language level. In practice, I’ve only seen this produce a web of race conditions, performance issues, and system complexity. My experience is anecdotal.
This makes it hard to reason about the overall capacity of the system (in terms of numbers of sensors and actuators). You will always end up uncertain whether you've ever really evaluated the "full load" condition, even if you formally test it in ways that say you have.