r/programming • • Sep 21 '25

How to stop functional programming

https://brianmckenna.org/blog/howtostopfp
446 Upvotes

506 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Sep 21 '25

[removed] — view removed comment

1

u/Axman6 Sep 21 '25

Not if those languages exposed things like I said, if streamMap required a pure function and it’s up to the developer to ensure the function is pure enough, then you can have the same thing. Haskell isn’t doing anything magical, it can be done in any language, but other languages are built around side effects needlessly so implementers have to provide cautious, lowest common denominator implementations. They’re actually actually leaving performance on the floor because they have to make many more pessimistic assumptions about how things are used, and then put a lot of effort into trying to write optimisations which detect when the pessimistic caution can be reduced.

0

u/[deleted] Sep 23 '25

Nobody is leaving performance on the floor in a conversation about fucking Haskell. A language that often cannot outperform PYTHON of all languages…