News for hackers. Stuff that matters.
Re:I Fell in Love with Erlang by jacquesm on Tuesday November 11, 2025 @09:48AM (#45887844)
I used to think that Clojure was going to be the first FP language that was going to go mainstream but it seems to have fizzled. What went wrong?
Re:I Fell in Love with Erlang by gf000 on Tuesday November 11, 2025 @12:11PM (#45889947)
> What went wrong?

Well, we have FP at home.

It just got ingrained into pretty much every mainstream language, and most [1] of the wins can be had even when it's applied to certain parts of the code base only. Like, Java has immutable data classes (records), ADTs with pattern matching, etc.

As much as I like Clojure, I just don't think Lisps can ever become too mainstream, their readability simply repels too many people (and even though I am okay with reading it, I do think it's less readable than an equivalent Java-style code would be).

[1]: I would even argue that a properly mixed pure and (locally) side-effecting code is the happy ground, as they strengthen each other

Re:I Fell in Love with Erlang by skydhash on Tuesday November 11, 2025 @09:56AM (#45887939)
FP language is very hard on novice programmers. You can write thousands of lines of bad javascript/java/python code, but you won’t write ten in FP without the whole thing blowing up.

And then there’s the whole evaluation instead of instructions. With FP, you’re always thinking recursively. With imperative, you can coast on a line by line understanding.

Re:I Fell in Love with Erlang by dzonga on Tuesday November 11, 2025 @12:12PM (#45889959)
yeah - without an easy ramp up for beginners most languages / frameworks die.

I wish most language / framework designers knew that part.

again - another point why not hiring junior developers cz A.I or outsourcing those will cause catastrophic effects in the future.

Re:I Fell in Love with Erlang by sodapopcan on Tuesday November 11, 2025 @10:07AM (#45888088)
In my experience it's still very possible to write many, many lines lines or utterly shit FP code, but I know what you're saying.
Re:I Fell in Love with Erlang by mercer on Tuesday November 11, 2025 @12:49PM (#45890465)
in some ways Elixir is a child of Clojure!

> JOSE: Yeah, so what happened is that it was the old concurrency story in which the Clojure audience is going to be really, really familiar. I’ve learned a lot also from Clojure because, at the time I was thinking about Elixir, Clojure was already around. I like to say it’s one of the top three influences in Elixir, but anyway it tells this whole story about concurrency, right?

https://www.cognitect.com/cognicast/120

Re:I Fell in Love with Erlang by cultofmetatron on Tuesday November 11, 2025 @02:17PM (#45891547)
I work with elixir daily and I would concur. elixir's semantics line up nearly 1:1 with the clojure code I used to write a few years ago. Its basically if you replaced the lisp brackets with ruby like syntax. The end result is a language that is much easier to read and write on the daily with the disadvantage of making macros more difficult. I would argue that it should be difficult since you should avoid using it until absolutely necessary. Lisps on the other hand, practically beg you to use macros as the entire language is optimized for their use.