News for hackers. Stuff that matters.
Re:Application-as-a-Function Thinking by Huh1337 on Sunday October 16, 2022 @05:39AM (#33222388)
Elm was inspired by Flux/Redux, not the other way around.
Re:Application-as-a-Function Thinking by iddan on Sunday October 16, 2022 @05:49AM (#33222424)
Sorry no, the redux docs specifically mention Elm as an inspiration and previous art https://redux.js.org/understanding/history-and-design/prior-...

Flux was before, but it’s not about application as a function

Re:Application-as-a-Function Thinking by Huh1337 on Sunday October 16, 2022 @05:57AM (#33222470)
Hmm, you're right, Redux first appeared in 2015 and Elm in 2012. I was early adopter of both (didn't stick with Elm though) but I guess I only noticed Elm once it got popular. Thanks, my mistake!
Re:Application-as-a-Function Thinking by dminuoso on Sunday October 16, 2022 @06:42AM (#33222625)
Neither is the case.

Elm semantics were originally loosely based on functional reactive programming in the sense of Conal Elliot, as per the thesis of its author.

Redux on the other hand is just imperative programming folks rediscovering that a state transition can be described as a pure function S -> S, with all the benefits that come along with it. This is as old as lambda calculus itself. Words like reducer are just red herrings.