Re:Haskell in Production: Standard Chartered
by JonChesterfield on Wednesday May 03, 2023 @01:05PM
(#35804843)
This reply neatly captures that functional programming tends to consider performance/efficiency in terms of number of reductions. Sadly other programmers tend to view it as wall clock time and the two don't correlate very well.
[ Parent
| on HN ]
Re:Haskell in Production: Standard Chartered
by slacknatcher12 on Wednesday May 03, 2023 @06:26PM
(#35808645)
I just gave a list of possible meanings of what parent said. Only one of them is the numbers of reductions.
Re:Haskell in Production: Standard Chartered
by kerkeslager on Thursday May 04, 2023 @08:15PM
(#35823840)
Sadly?
If a client comes to me and says one of the parts of their application was slow, and I come back to them saying I lowered the number of reductions with zero change in the wall clock time, they'll fire me, and rightly so.
To be nitpicky, wall clock time isn't the same as CPU time or power draw. You can increase efficiency at the same time as you increase wall clock time because they aren't necessarily the same metric.