Better HN
topnewbestaskshowjobs
Log inSign up

treesurgeon

0 karma · joined Aug 6, 2024 (2y ago) · 5 submissions

Submissions

comment 2y ago · link · parent

That's great work and a terrific post.

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.

comment 2y ago · link · parent

For routine fast numerical algorithm dev, Julia is like a modern c++ or fortran. Hyperspecialilzed isn't the right adjective here.

Our team's big mistake was believing blog posts that swept laziness problems under the rug. In hindsight, there's plenty of criticism about Haskell's laziness in complex apps, and we should have taken that criticism more much seriously.

comment 2y ago · link · parent

Complete rewrite in julia solved it.

comment 2y ago · link · parent

Just mix nontrivial data structures with algorithms that iterate until numerical convergence. Team of experienced devs fought space leaks for weeks, project schedule crashed, directly caused by Haskell's lazy eval. Management and customers angry. Good times, good times.