by treesurgeon · 2y ago · 0 comments
We had lots of legacy subcomponents that permeated throughout the app's data structures, and as a practical matter, we couldn't reopen all that existing code. Some of that legacy code crossed organizational boundaries, so eliminating laziness throughout simply wasn't do-able.
So given all the above, there are two reasonable conclusions, which aren't contradictory:
1) If we could have reworked lots of existing code, we could have eliminated space leaks via @tome's approach.
2) Haskell's laziness is fundamentally misaligned with projects like ours, which has cross-organization code, long-running iterative algorithms, and complex data structures.
In desperation we used deepseq, which everyone knows is bad, and shortly thereafter we cut our losses by switching platforms.