Re: how is Haskell not robust?
- From: George Neuner <gneuner2@xxxxxxxxxxx>
- Date: Fri, 05 Jun 2009 14:20:34 -0400
On Fri, 05 Jun 2009 09:11:21 +0200, Ertugrul Söylemez <es@xxxxxxxx>
wrote:
Jon Harrop schrieb:
i think i get it that laziness can lead to big space usage. and i
guess there is some debate about how easy it is for programmers to see
"oh this code right here could lead to a space leak!"
There is no debate. I asked Simon Peyton-Jones about this in person and he
confirmed that unpredictable memory consumption is one of the biggest
practical issues with Haskell. Ertugrul claimed he knew better but proved
himself wrong.
SPJ is certainly more knowledgable than I am, but in this regard I
disagree (if he really confirmed that in this form). What is a problem
in Haskell is 'unpredicted' space behaviour, because you didn't consider
the non-strict semantics, but not "unpredictable" space behaviour. If
it was such "unpredictable" as you claim, I'd have a very hard time
writing Haskell code.
You can write code forever without seeing a problem iff you never run
the programs with data sets that leak enough to break the system.
Also even if a space leak occurs, what's wrong with that? In most cases
the cause is obvious, so just correct your code.
In some cases it is obvious. In some it is not.
If you have done that a few times, at some point you simply 'get it'
and don't produce such leaking code anymore.
The problem is that even the experts still don't 'get it'.
George
.
- Follow-Ups:
- Re: how is Haskell not robust?
- From: Jon Harrop
- Re: how is Haskell not robust?
- References:
- Re: how is Haskell not robust?
- From: Adrian Hey
- Re: how is Haskell not robust?
- From: Ertugrul Söylemez
- Re: how is Haskell not robust?
- From: Adrian Hey
- Re: how is Haskell not robust?
- From: Ertugrul Söylemez
- Re: how is Haskell not robust?
- From: Jon Harrop
- Re: how is Haskell not robust?
- From: Ertugrul Söylemez
- Re: how is Haskell not robust?
- From: Jon Harrop
- Re: how is Haskell not robust?
- From: Ertugrul Söylemez
- Re: how is Haskell not robust?
- From: raould
- Re: how is Haskell not robust?
- From: Jon Harrop
- Re: how is Haskell not robust?
- From: Ertugrul Söylemez
- Re: how is Haskell not robust?
- Prev by Date: Re: how is Haskell not robust?
- Next by Date: Re: how is Haskell not robust?
- Previous by thread: Re: how is Haskell not robust?
- Next by thread: Re: how is Haskell not robust?
- Index(es):
Relevant Pages
|