Re: Haskell PPL bug fix
Marcin 'Qrczak' Kowalczyk <[email protected]> Fri, 15 Oct 2004 16:08:00 +0200
| Newsgroups | gmane.comp.lang.haskell.ffi |
|---|---|
| Message-ID | <[email protected]> |
Axel Simon <[email protected]> writes: > the Haskell compiler GHC replaces the memory allocator in GMP with > one that allocates from the Haskell heap. Pedro managed to link the > PPL with a private version of GMP but that is not a feasible > solution in the long term. I second this. I would like to make a bridge between Haskell and my language Kogut, but my runtime uses GMP for big integers. I don't change the allocation functions from the default, to make possible to have multiple libraries using GMP in a single program, as long as others are similarly cooperable. Unfortunately GHC does change them, and without checking I can say that it will not work. I don't think that I should make a private copy of GMP for my language. After all, it doesn't change the default settings, and it's GHC which breaks the GMP interface. IMHO it should either have a private copy of GMP with changed names, or stop changing GMP allocation functions, accepting the slowdown. -- __("< Marcin Kowalczyk \__/ [email protected] ^^ http://qrnik.knm.org.pl/~qrczak/