Reactive programming is powerful, but often overlooked due to obscure syntax. Given int x,y,z; we can write z=x+y for immediate assignment. What if we could also write z~=x+y to ensure z is recalculated formulaically whenever x or y change, plus when(z) {..} to monitor changes?
-
-
I think auto-updated value expressions/dataflow programming is a great idea. The tension is at the boundaries between the dataflow world and the anything-goes imperative world (your 'when' statement for value-change event handlers).
-
Actually, not just 'when' statements but anything that can occur in a dataflow value expression that isn't "reactively referentially transparent" i.e. depends on or affects things outside the otherwise simple dataflow world.
- 4 more replies
New conversation -
-
-
This Tweet is unavailable.
-
Cassowary is just LP with the simplex method, not dataflow programming.
- 3 more replies
-
-
-
Reminds me of Excel cells, those are reactive like you describe. Take a look at Hoplon for Clojure. For constraints in web see https://gss.github.io Also, this reactivity was very strongly developed within Eve. I wrote few word about those:https://www.namekdev.net/2016/10/fancy-reactive-web-solutions-on-counter-example/ …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.