News for hackers. Stuff that matters.
Re:Relic: Functional relational programming for Clojure(Script) by dwohnitmok on Sunday February 26, 2023 @07:12PM (#34951289)
I wouldn't be surprised if Redux has cross-polination from ClojureScript, but in terms of non-Javascript languages that inspired Redux, the top of that list is probably Elm.

See https://redux.js.org/understanding/history-and-design/prior-... which lists Elm right under Flux.

Re:Relic: Functional relational programming for Clojure(Script) by chitowneats on Sunday February 26, 2023 @08:08PM (#34951744)
Either way, FP is slowly eating the web. "View as function of state" has thoroughly won the argument. What that will ultimately look like is unclear, but ignore it at your own peril.
Re:Relic: Functional relational programming for Clojure(Script) by eyelidlessness on Monday February 27, 2023 @12:18AM (#34953279)
It’s not just eating the web, * as function of state is generally the trend in many disciplines. So much so that people I knew who balked at the concept have since embraced it. And it is good.

Now we just have to get a handle on all the leaky stuff at the edges of every “functional core”, because there lay many dragons.

Re:Relic: Functional relational programming for Clojure(Script) by chitowneats on Monday February 27, 2023 @12:45AM (#34953438)
I want this to be true. And certainly there has been a lot of progress towards functional-ish code in the languages I'm about to reference.

In my experience, languages like C, Go, Java, C# still dominate the backend. Replacing JavaScript is such a simple and well-defined task that I expect it will be completed much sooner. Maybe only a decade or two.

Re:Relic: Functional relational programming for Clojure(Script) by eyelidlessness on Monday February 27, 2023 @01:58AM (#34953830)
Well I can’t speak to most of those, but I can definitely speak to JS: pretty much the only things holding back FP are people’s aversion to reduce and their aversion to grafting monads where they don’t fit. Otherwise it’s pretty much idiomatic to write functional-core code in JS basically everywhere. But again there be dragons at the edges.
Re:Relic: Functional relational programming for Clojure(Script) by kaba0 on Monday February 27, 2023 @03:46AM (#34954347)
Java and C# can absolutely be written in an FP style and it is definitely winning grounds.
Re:Relic: Functional relational programming for Clojure(Script) by chitowneats on Monday February 27, 2023 @03:49AM (#34954360)
Like I said. Functional-ish. Still way too many ThingDoers and other associated boilerplate to be actually interesting. A nice option though if you're working in a legacy codebase or your employer requires it.
Re:Relic: Functional relational programming for Clojure(Script) by heretoo on Monday February 27, 2023 @03:20AM (#34954227)
> Now we just have to get a handle on all the leaky stuff at the edges of every “functional core”, because there lay many dragons

My gut is telling me erlang might have tackled this.

Re:Relic: Functional relational programming for Clojure(Script) by chitowneats on Monday February 27, 2023 @04:46AM (#34954635)
Don't worry. It didn't.
Re:Relic: Functional relational programming for Clojure(Script) by agumonkey on Tuesday February 28, 2023 @03:36PM (#34974465)
surely "reducer" came from early FP leaks in mainstream