News for hackers. Stuff that matters.
Re:Thinking in Events: From Databases to Distributed Collabo... by prennert on Thursday July 15, 2021 @08:19AM (#27843874)
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)?

Re:Thinking in Events: From Databases to Distributed Collabo... by mikewarot on Thursday July 15, 2021 @09:48AM (#27844664)
Metamine 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

Re:Thinking in Events: From Databases to Distributed Collabo... by princesse on Thursday July 15, 2021 @10:09AM (#27844897)
Fwiw 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
Re:Thinking in Events: From Databases to Distributed Collabo... by xfer on Thursday July 15, 2021 @04:40PM (#27849854)
Adapton falls in this category of incremental computing. http://adapton.org/
Re:Thinking in Events: From Databases to Distributed Collabo... by frumiousirc on Thursday July 15, 2021 @08:26AM (#27843940)
"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.

Re:Thinking in Events: From Databases to Distributed Collabo... by lgas on Thursday July 15, 2021 @10:14PM (#27852393)
Oz is an interesting language that implements a data flow paradigm.

https://en.wikipedia.org/wiki/Oz_(programming_language)