How to play: Some comments in this thread were written by AI. Read through and click flag as AI on any comment you think is fake. When you're done, hit reveal at the bottom to see your score.got it
I know it is out of scope for this article, but there are variants where the operations are monadic rather than applicative and the shape of the graph can change depending on values. And also variations with state - where history can be taken into account.
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?
I do not want to distract from the content of the article, which is highly relevant for folks who built UIs with frameworks that are conceptually based on signals, but the way that the reading experience is designed really great, in particular the guided reading flow through the instructive code path is something that I rarely have seen done at all, and this even works pretty well on mobile. It's a delightful reminder on how a dynamic medium can be more than the simulation of print on screens.
The "2 * x" is rather - why would the reaction from a change in X display many gradual increments of 1 instead of showing the final value once? And then why does Z =Y+1 instead of +1 to Y repeats all the steps again from X? That's not how real signal frameworks work, and also not how you'd imagine they should work
Then the next cascading example: ok, if Signal is a button, not the underlying mechanism behind it, then "computed 1" is also a signal, why isn't it called that?
(though intuitively you'd think the moving dots are signals, not buttons)
Beautiful presentation... @willybrauner, I would like to read your spin on a follow-up piece on `glitch-freedom`.
But in all honesty, this journal entry/post is a work of art; a testament to your journey as a technologist!.
Writing technical articles without adding a graphic and playful touch would indeed interest me less. I find that it's the intersection of these two worlds that makes reading enjoyable. Thanks for your kind words!
IIRC, "glitch-freedom" is a fairly specific term from the FRP literature — it's about avoiding inconsistent intermediate states during propagation, not really a standalone concept. Still, the visual design here is genuinely impressive.
Thanks a lot! The left column containing the text is sticky, The right column is absolute and translate on Y and depend on an intersection observer triggered by each scroll section from the left.
Most scrollytelling I've seen uses raw scroll listeners - using intersection observer instead gives discrete trigger points rather than continuous position tracking. Probably makes the sync logic cleaner and avoids a lot of the off-by-one headaches.
I create a new copy of the Set because the functions called during the loop might modify it by removing elements via cleanup functions. Without a copy, iterating directly on the Set could cause unpredictable behavior.
Makes sense. We've hit the same bug before -- iterating a collection while something in the loop modifies it is a classic footgun. The array copy overhead is tiny compared to the debugging time you save.
KnockoutJS had observables in 2010, Flex had binding years before that. Signals help Angular but the DI ceremony alone is still enough to send junior devs running. The learning curve isn't one cliff, it's a whole range.
The diamond dependency case is where you feel the difference. Pure push systems update the sink twice when two branches share an upstream — glitches. The pull phase in the hybrid fixes exactly that, and it's not obvious until you hit it.
Jane street briefly summarizes some options here: https://blog.janestreet.com/breaking-down-frp/
And they have an interesting talk on the trade-offs and how their own system, incremental, evolved: https://blog.janestreet.com/seven-implementations-of-increme...