A deep dive into scheduling strategies in reactive systems, exploring the tradeoffs between immediate, lazy, and scheduled evaluation of derived state. Covers reactive ownership and memory management, React's three-phase execution model, how SolidJS achieves concurrent rendering via scheduled computeds, and the challenges of async derivations including waterfall problems. Proposes splitting effects into tracking and effectful phases to preserve lazy derivations while maintaining predictable phased execution. Concludes that async values should generally be scheduled rather than lazily evaluated to avoid waterfalls.

13m read timeFrom playfulprogramming.com
Post cover image
Table of contents
Immediate vs Lazy vs Scheduled Copy link Link copied!Reactive Ownership Copy link Link copied!A Phased Approach Copy link Link copied!Deriving Async Copy link Link copied!Conclusion Copy link Link copied!

Sort: