News for hackers. Stuff that matters.
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.