[Haskell-cafe] Directed rounding in haskell ?

Claude Heiland-Allen claude at mathr.co.uk
Fri Apr 11 12:03:45 UTC 2014


On 11/04/14 12:16, Dominik Peteler wrote:
> On Thu 2014-04-10 16:15, Alp Mestanogullari wrote:
>> Maybe these packages could be relevant/useful:
>> - https://github.com/ekmett/rounded
>
> Very interesting, thank you.
> How does it compare to hmpfr[1] ?
>
> [1] http://hackage.haskell.org/package/hmpfr

'hmpfr' doesn't work safely (random crashes occur) unless you re-compile 
a custom ghc without 'integer-gmp', and the alternative 'integer-simple' 
is very slow in comparison.

'rounded' works around the problem (GHC's GC moving GMP things behind 
MPFR's back) but requires a patched libmpfr (which it bundles), though 
it is still not quite ready for general use (a few remaining issues to 
resolve afaik).


Claude
-- 
http://mathr.co.uk



More information about the Haskell-Cafe mailing list