[Haskell-beginners] truncate results depend on strict/lazy

Brandon Allbery allbery.b at gmail.com
Tue Sep 10 02:28:48 CEST 2013


On Mon, Sep 9, 2013 at 8:03 PM, Bryan Vicknair <bryanvick at gmail.com> wrote:

> Whatever the behavior of truncate is, given the same input it should give
> the
> same output.
>

An ideal, but unlikely when floating point is involved; optimization can
result in altered evaluation order or removal (or even addition in some
cases) of load/stores which can modify the internal representation. Note
that ghci is completely unoptimized.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130909/3bd5ce26/attachment.htm>


More information about the Beginners mailing list