4 ms·
Kleppmanns books (as this talk) references spreadsheets and the underlying programming model of Functional Reactive Programming. You essentially define a variab
by prennert 5y ago
Kleppmanns books (as this talk) references spreadsheets and the underlying programming model of Functional Reactive Programming. You essentially define a variable as a function of inputs it depends on, and it gets recalculated if any of the inputs change.
In a way it is quite a cool concept, because you can build a model that is based on some inputs and then it gets recalculated on-the-fly as the inputs change (or the model changes).
Is anyone aware of a language that supports this type of calculations in a nice way (outside of spreadsheet applications)?
- xfer 5y agoAdapton falls in this category of incremental computing. http://adapton.org/ http://adapton.org/
- frumiousirc 5y ago"Data flow programming paradigm" would be one term that describes the architecture for such a system. It is more general but if each node in the graph emits output only if novel input is received then one gets idempotency. A Makefile (ie, for the "make" tool) or any of the similar build systems implement this pattern using file based data exchange (DFP graph edges) and graph nodes implemented as processes.
- lgas 5y agoOz is an interesting language that implements a data flow paradigm. https://en.wikipedia.org/wiki/Oz_(programming_language) https://en.wikipedia.org/wiki/Oz_(programming_language)
- mikewarot 5y agoMetamine is an experimental language that supports both reactive and procedural programming modes at the same time. Here's a previous thread about it - https://news.ycombinator.com/item?id=27555940 https://news.ycombinator.com/item?id=27555940
- princesse 5y agoFwiw this is the core concept behind React, and it is approached in a nice way there as far as my opinion goes. I'm unclear about general purpose programming languages but seems like other comments have good suggestions