r/haskell • • 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

93 comments sorted by

View all comments

Show parent comment

0

u/pthierry Jun 15 '24

Yes, maybe on some level, overall, Haskell is a bit more complex to learn than VBA or Python.

But the end product is just not comparable!

With Haskell and Elm, my team is able to produce software with zero exception raised at runtime in production. We had some exception raised once in a loop that forked a process and it didn't break anything else than that process, and I think it happened more than 18 months ago. I think that's the only time it happened in 3 years we've been using Haskell and Elm.

In every other codebase I've seen up close, you get exceptions raised on a regular basis, you catch them in staging in the debugger or in production in the logs. It's a normal part of development and operations.

Also, in my own experience, it's not harder to use, it's only harder to learn. Once you known ReaderT, or MTL, or Polysemy, or lenses, or advanced Haskell technique, using them is nice and simple.

Usually, with Haskell, I end up finding it easy to produce extremely efficient and robust software. The only hard part is learning, the DX is just awesome.