Live data from Hacker News

Signals, the push-pull based algorithm

willybrauner.com

41–42 of 42 posts

Re: Signals, the push-pull based algorithm

#41

Overall, very nice article. A few notes: * I think the first implementation in JS land was Flapjax, which was around 2008: https://www.flapjax-lang.org/publications/ * The article didn't discuss glitch-freedom, which I think is fairly important.

[flagged]

wouldn't this be solved by synchronously invalidating everything before computing anything? it seems like that's what the described system is doing tbh, since `setValue` does a depth-first traversal before returning. or is there a gap where that strategy fails you?

Re: Signals, the push-pull based algorithm

#42
The writeup is written very well. Kudos!

However, I really wonder if this scales to real applications…

I’ve seen too many people get initially mesmerized by “event driven” programming only to find the system eventually becomes a steaming mess that nobody can comprehend or debug. Or it manages to work but has serious performance issues (in an exclusively “push” design)…

Maybe in a single process, single threaded environment, it is more difficult to screw up?

Post reply on HN