#601: Replace GMP
----------------------+-----------------------------------------------------
Reporter: simonmar | Owner:
Type: task | Status: new
Priority: normal | Milestone: _|_
Component: Compiler | Version: None
Severity: normal | Resolution: None
Keywords: | Difficulty: Difficult (1 week)
Testcase: N/A | Architecture: Unknown
Os: Unknown |
----------------------+-----------------------------------------------------
Comment (by igloo):
In the HEAD, `integer` is now a separate package, by default provided by
`libraries/integer-gmp`. If you make a variant in `libraries/integer-foo`
and change `libraries/Makefile` to refer to `integer-foo` instead of
`integer-gmp` then it will use your variant instead. You need to export
the same functions with the same types.
The current package is just the old GMP implementation, and still uses
primitives from the RTS. If anyone is interested in workong on this, it
would be very interesting to:
* Write an Integer performance suite
* Compare the current implementation to a direct GMP binding, i.e. not
using RTS primitives
* Compare the GMP implementation to a pure Haskell binding, e.g.
http://www.haskell.org/pipermail/libraries/2007-August/007909.html
* Compare the GMP implementation to a binding to a BSD-licenced C library
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/601#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs