Re:Hashtables, a new Haskell library for fast mutable hash t...
by calebmpeterson on Saturday June 11, 2011 @05:50PM
(#2644957)
Thank you for a thorough overview.
Re:Hashtables, a new Haskell library for fast mutable hash t...
by alnayyir on Saturday June 11, 2011 @05:49PM
(#2644954)
Too bad they made lazy the default.
Re:Hashtables, a new Haskell library for fast mutable hash t...
by BasDirks on Saturday June 11, 2011 @06:03PM
(#2644992)
care to elaborate?
Re:Hashtables, a new Haskell library for fast mutable hash t...
by dons on Saturday June 11, 2011 @06:09PM
(#2645007)
Haskell is the only widely used language that uses lazy evaluation by default. This has historically lead to confusion and difficulties with reasoning about time and space, particularly when a programmer is coming from a strict language.
Why do we care about laziness by default? Like purity, it adds power and expressiveness.
----
Finally, what would a strict Haskell be like? Here's a discussion: http://augustss.blogspot.com/2011/05/more-points-for-lazy-ev... )
Re:Hashtables, a new Haskell library for fast mutable hash t...
by alnayyir on Saturday June 11, 2011 @07:11PM
(#2645127)
Space leaks.
Also, unpredictable program behavior (which nearly destroys its usefulness in embedded beyond what perhaps Galois has been doing).
Re:Hashtables, a new Haskell library for fast mutable hash t...
by nandemo on Sunday June 12, 2011 @03:56AM
(#2646014)
For what is worth, Edward Yang is writing an excellent series on space leaks in Haskell:
http://blog.ezyang.com/2011/05/space-leak-zoo/
The series require Haskell knowledge but this summary is fairly readable if you have a good grounding on programming language theory and implementation.
Just remember: in Haskell, persistent and immutable is the default. You turn on other environments as you need them.
Why is it the default? So-called "purely functional" programming is a rich, safe, environment for most programming problems, and makes lots of nice things possible, such as trivial parallelization, automatic thread safety, proofs on code via simple equational reasoning, and powerful optimizations.