News for hackers. Stuff that matters.
Re:How to avoid correctness space leaks on a lazy setting in... by hgsgm on Saturday April 08, 2023 @08:31AM (#35492603)
25 years after Haskell 98, and we're struggling to get basic control over memory usage in our programs, in language designed for the "BDSM" of forcing you to write highly correct code at compile-time.
Re:How to avoid correctness space leaks on a lazy setting in... by nullcaution on Saturday April 08, 2023 @09:15AM (#35492811)
And? The developers of Haskell owe us nothing. I don't see the point of your complaint. If the tool doesn't fit the bill, don't use it.

IMO Haskell is more of a dream project of having a highly optimizable and flexible complier. Its fun to write, great when it works (well), but it's not the workhorse of C and Python.

Re:How to avoid correctness space leaks on a lazy setting in... by whateveracct on Saturday April 08, 2023 @09:21AM (#35492848)
This is a pretty hyperbolic take imo.

Anecdata, but I've seen more space leaks in non-Haskell languages than Haskell in production despite having more production years of experience in Haskell over the last decade.

Space leaks really are not a big issue.

Re:How to avoid correctness space leaks on a lazy setting in... by klntsky on Saturday April 08, 2023 @10:15AM (#35493337)
> and we're struggling to get basic control over memory usage

You have to understand runtime of any language in order to write memory-efficient code in it. Lazy runtimes are predictable once you know how they work.

Re:How to avoid correctness space leaks on a lazy setting in... by whateveracct on Saturday April 08, 2023 @10:46AM (#35493676)
It's somewhat telling that the first comment on a blog post about having control of laziness is about how "we struggle to control laziness" .. seemingly using the blog post's existence as proof that we don't have control?