News for hackers. Stuff that matters.
Re:Why Functional Programming Should Be the Future of Software by narrator on Wednesday November 02, 2022 @08:32AM (#33434681)
The other problem with functional programming is it's harder to look at code and figure out the time complexity. At least with non-functional languages I can easily figure out why there are performance problems with it. Stuff like lazy evaluation may seem cool, but it's not when you have to figure out why something's slow.
Re:Why Functional Programming Should Be the Future of Software by brmgb on Wednesday November 02, 2022 @09:27AM (#33435402)
That's an Haskell issue not a functional programming issue. Haskell is pretty much the only functional programming language which is lazy by default. It's the sole one for the reason you give. Every other ones are eager by default and you can opt in to lazy evaluation when needed.
Re:Why Functional Programming Should Be the Future of Software by tasuki on Wednesday November 02, 2022 @05:16PM (#33443029)
This is lazy vs strict, not functional vs whatever. I'm a fan of functional programming, not so much a fan of lazy evaluation. Look at PureScript or Idris perhaps?
Re:Why Functional Programming Should Be the Future of Software by nequo on Wednesday November 02, 2022 @11:37PM (#33446685)
In addition to sibling’s recommendations, consider OCaml too for a strict language that is vaguely similar to Haskell and performs similarly well in benchmarks:

https://cs3110.github.io/textbook/cover.html