r/haskell • u/graninas • Jun 12 '24
My talk "Functional Programming: Failed Successfully" is now available!
Hi folks,
My talk "Functional Programming: Failed Successfully" from LambdaConf 2024 is now published online.
This is my attempt to understand why functional languages are not popular despite their excellence. The talk's other title is "Haskell Superiority Paradox."
Beware, the talk is spicy and, I hope, thought-provoking.
I'll be happy to have a productive discussion on the subject!
https://youtu.be/018K7z5Of0k?si=3pawkidkY2JDIP1D
-- Alexander
71
Upvotes
17
u/graphicsRat Jun 13 '24
Hi Alexander, chapter 10 (pages 199-255) of Functional Programming in C++ is titled "Monads".
Last cppcon there was a talk on Monads in C++ by two developers at Bloomberg where they successfully lifted ideas from Haskell Monads to C++ in their trading infrastructure. https://youtu.be/kZ8rbhGgtv4?si=BbHVurXaOQ15Vff4
I disagree with you on extremism. I think the world needs "extremists", okay purists, to push some ideas. Richard Stallman for example. He is wrong on a few matters and his views on software are extreme but he has played no small part in pushing the idea of open source software. It is good that Haskell has committed itself to pursuing a set of ideas and hasn't made success it's goal. I'm not interested in Haskell because it might be popular someday but because of the ideas, so it doesn't matter who doesn't use it.
On mathematics, in my opinion part of the reason we have a security industry today is because when we built the tech industry e.g. the internet, the concern was largely "is it possible" not "is it safe". The greatest human invention in thought is mathematics (in fact computers were born out of mathematical thought) therefore I cannot get on board with the idea that it should be divorced from programming.
Nonetheless, thank you for your talk.
26
u/tomejaguar Jun 13 '24
I believe I have similar values to the presenter:I would like to foster software engineering culture within the Haskell community and to help the community grow. However, I have a number of issues with the presentation itself.
Firstly, a point of information: (one of) the goal(s) of the Haskell Foundation is to broaden Haskell adoption. It not intended to push Haskell to industry specifically. (I personally happen to to believe it can't do the former without the latter, but in principle there is a distinction.)
Additionally, I simply don't recognise the portrait presented of the Haskell community. I have never been asked to "read papers", never been told that Haskell stands for "correctness at all costs" (the prevalence of
errorin Haskell codebases is testament to that) and I have always believed that Haskell stands for simplicity not complexity (the complexity of some approaches to software development in Haskell notwithstanding). However, it's possible that I am simply filtering out inputs that contradict my way of seeing things.In particular, I cannot reconcile these claims with my perception of the Haskell and functional communities:
I don't think this talk is likely to motivate a substantial numbers of Haskellers to work towards fostering an engineering culture. I think it's more likely to raise people's hackles and make them become defensive. I think a talk that would be such a motivator would be one that paints an appealing picture of what the Haskell world would look like once that engineering culture has been established and the community has grown. What amazing tooling, libraries and applications we would have! What interesting and enlightening discussions we'd have in a community 10 or 100 times the size it is now! I like this quotation by Antoine de Saint-Exupéry
We should be yearning for the vast and endless world of wonderful software created once Haskell has penetrated the mainstream. What a boon that will be to our economy and society! By constrast, in this metaphor, I think the presentation here comes across as berating the men for being too lazy and myopic to gather wood.
31
u/zarazek Jun 12 '24
"Haskell superiority syndrome" is definitely real, but the overall tone of the talk is too pessimistic in my opinion. For first, lets not conflate popularity of Haskell with popularity of functional programming as a whole. Functional programming is actually slowly gaining adoption, while popularity of Haskell is decreasing. So the title of the talk should be "Haskell: failed successfully".
Haskell has pretty strange adoption curve. As Simon Peyton Jones described it doesn't follow the adoption curve of research languages ("quick death") nor mainstream languages (quickly crossing "the threshold of immortality"). It is something in between - a research language that for some reasons refuses to die. For sure at its inception it wasn't meant to be an industrial strength language, but research vehicle. So perhaps the few industry uses we have should be treated as a bonus.
4
u/JadeXY Jun 14 '24
Hey Alexander,
Thanks so much for this talk; I can see myself in the criticisms you gave and it was a humbling experience to hear it.
My discovering of Haskell reinvigorated my love for programming precisely because of its mathematical nature, so this talk made me reflect on what my real motives are for learning Haskell and to be honest with myself.
Out of curiosity, what attracted you personally to Haskell and FP in general?
Thanks again for your talk and I look forward to reading your books when they're published :)
3
u/sagittarius_ack Jun 12 '24
Thanks for posting the talk! One small correction: C++ appeared in 1985, not 1973.
25
u/imihnevich Jun 13 '24
Relax people it's Granin
18
u/TanukiCoding Jun 12 '24
What a surprising talk from such a figurehead in the community!
I don't get it, though. I haven't directly interacted with the Haskell community much, but never did I get the impression of elitism. One of the blog posts on the Comonad.Reader even cautions against elitism.
I have, however, been lectured and supervised by several prominent people in the development of Haskell and its ecosystem, and they all seem very kind and gentlemanly. Although, they are not working in the industry, so maybe the talk doesn't pertain to them.
The most relevant person who falls under this critique that I can think of is Erik Meijer, who wrote this old article against "mostly functional" programming. However, his arguments were based on interactions between language features, so it isn't a case of him ignoring OOP/imperative designs, but arguing for their omission, or at least, for effects to be compile-time tagged with types.
So, I really have no idea where this perception of "apathetic intellectuals" come from. Am I just sheltered? Do your experiences differ? The google search graph at the start was nice, but what I really want is a list of old forum posts where people in the Haskell community bash on other languages. I see a lot more bashing in the other direction.
2
u/source-drifter Jun 12 '24
I think if Haskell has something like what Elixir to Erlang, it can gain a lot bigger mind share from the programmers.
12
u/ysangkok Jun 13 '24
There is nothing about Haskell here. You could replace occurrences of the word with e.g. Clojure and it would still be plausible to some. It's pocket psychology, not on topic.