Re: FFI Bindings to Libraries using GMP

2007-09-30 Thread Peter Tanski
Hello Benedikt, I apologise for the late reply. I am travelling tomorrow but I will try to get something an alpha implementation out by this Wednesday. For now here are some preliminary answers: On Sep 28, 2007, at 7:41 AM, Benedikt Huber wrote: Am 18.09.2007 um 05:49 schrieb Peter Tans

Re: FFI Bindings to Libraries using GMP

2007-09-28 Thread Benedikt Huber
Am 18.09.2007 um 05:49 schrieb Peter Tanski: The best solution would be to revamp the way Integer types are implemented, so when possible they are mutable under the hood, much like using the binary += instead of the ternary +. Enumerations like the test in [1], below, would not be mutable u

Re: FFI Bindings to Libraries using GMP

2007-09-25 Thread Isaac Dupree
Peter Tanski wrote: The one problem you will find with _all_ potential replacement libraries is incompatible behaviour for bitwise functions: they are implemented arithmetically in GMP but logically elsewhere (when they are implemented at all). I don't fully understand this... I made sure m

Re: FFI Bindings to Libraries using GMP

2007-09-25 Thread Peter Tanski
On Sep 14, 2007, at 9:14 AM, Benedikt Huber wrote: | I've been struggling using FFI bindings to libraries which rely on the | GNU Mp Bignum library (gmp). It's an issue that bites very few users, but it bites them hard. It's also tricky, but not impossible, to fix. The combination keeps

Re: FFI Bindings to Libraries using GMP

2007-09-15 Thread Roberto Zunino
Benedikt Huber wrote: > (3) So when replacing GMP with the BN library of OpenSSL Maybe the following license issues with OpenSSL should be taken into account: http://www.gnome.org/~markmc/openssl-and-the-gpl.html Regards, Zun. ___ Glasgow-haskell-user

Re: FFI Bindings to Libraries using GMP

2007-09-14 Thread Benedikt Huber
| I've been struggling using FFI bindings to libraries which rely on the | GNU Mp Bignum library (gmp). It's an issue that bites very few users, but it bites them hard. It's also tricky, but not impossible, to fix. The combination keeps meaning that at GHC HQ we work on things that affec

RE: FFI Bindings to Libraries using GMP

2007-09-13 Thread Simon Peyton-Jones
ailto:[EMAIL PROTECTED] On | Behalf Of Matthias Neubauer | Sent: 11 September 2007 22:04 | To: Simon Peyton-Jones | Cc: glasgow-haskell-users@haskell.org; benedikth; Peter Tanski | Subject: Re: FFI Bindings to Libraries using GMP | | Simon Peyton-Jones <[EMAIL PROTECTED]> writes: | | > Pe

Re: FFI Bindings to Libraries using GMP

2007-09-11 Thread Don Stewart
neubauer: > Simon Peyton-Jones <[EMAIL PROTECTED]> writes: > > > Peter Tanski did exactly that (he's the author of the > > ReplacingGMPNotes above), but he's been very quiet recently. I > > don't know where he is up to. Perhaps someone else would like to > > join in? > > Since I live only five

Re: FFI Bindings to Libraries using GMP

2007-09-11 Thread Matthias Neubauer
Simon Peyton-Jones <[EMAIL PROTECTED]> writes: > Peter Tanski did exactly that (he's the author of the > ReplacingGMPNotes above), but he's been very quiet recently. I > don't know where he is up to. Perhaps someone else would like to > join in? Since I live only five minutes away from this yea

RE: FFI Bindings to Libraries using GMP

2007-09-11 Thread Simon Peyton-Jones
| I've been struggling using FFI bindings to libraries which rely on the | GNU Mp Bignum library (gmp) - this is apparently a well known problem | (http://hackage.haskell.org/trac/ghc/ticket/311, | http://hackage.haskell.org/trac/ghc/wiki/ReplacingGMPNotes). | I do rely on using such libraries, and