by amelius · 11y ago · 0 comments
So, for example, calling a function f(a, b) is first done normally, and then, when e.g. "b" changes value, the function f(a, b) is re-evaluated incrementally. Note that this means that not simply f is invoked again, but that f is recursively re-evaluated.
Anybody here aware of such a system?
I know there is research in this area ([1]). I would really like to use such a system in Javascript.
[1] http://www.umut-acar.org/publications-by-topic#TOC-Self-Adju...
While it sounds like an awesome idea, things get crazy really fast. It's hard to explain briefly, but make it explicit and clear to the programmer which things are reactive streams and which are simply values makes it much easier to predict what the program is doing.
If my program just gets re-evaluated in an optimal way (without any other side-effects) then that would make my life much simpler.
The research I linked to already states that it can be done. So I was wondering if there are any Javascript implementations yet out there.
Check out Adapton though, which is trying to bridge the gap.
I just hope there will be a browser-implementation soon :)