Jon Fairbairn wrote:
> I just got myself a copy of ghc-6.2.1 and was idly
> experimenting with Network in ghci.
> Unfortunately a second attempt is not so happy:
>
>Prelude System.Posix Network> do r <- recvFrom "localhost"$ PortNumber 9090;
> putStr r
>*** Exception: bind: resource bu
I just got myself a copy of ghc-6.2.1 and was idly
experimenting with Network in ghci.
I tried
Prelude System.Posix Network> do r <- recvFrom "localhost"$ PortNumber 9090; putStr
r
in one ghci and
Prelude Network> do sendTo "localhost" (PortNumber 9090) "jellied eels\n"
in another an
On Tue, Aug 10, 2004 at 01:09:03PM +0100, Simon Marlow wrote:
> On 10 August 2004 13:03, MR K P SCHUPKE wrote:
>
> > Re GMP, Why not provide more GMP functions as primitives on the
> > Integer type, and avoid the need to call out to GMP via the FFI?
>
> Show us the code! :-p
Or implement Integer
On Tue, Aug 10, 2004 at 12:59:46PM +0100, Simon Marlow wrote:
> GHC's use of GMP does cause problems if you want to use GMP for your own
> purposes, or if you link with external code that wants to use GMP. The
> real problem is that GMP has internal state, which means it can't be
> used in a modul
On 10 August 2004 14:08, Alastair Reid wrote:
>> - Rename all the symbols in our GMP to be unique. (sounds hard)
>
> Nah, easy.
>
> First get a list of symbols: nm libgmp.a | grep gmp
> [Supply a few flags to nm to get a better list.]
>
> Then turn it into a list of #defines:
>
> #define
> - Rename all the symbols in our GMP to be unique. (sounds hard)
Nah, easy.
First get a list of symbols: nm libgmp.a | grep gmp
[Supply a few flags to nm to get a better list.]
Then turn it into a list of #defines:
#define gmp_blah ghc_gmp_blah
...
#include your list of #defines into
Hi!
On Tue, Aug 10, 2004 at 12:59:46PM +0100, Simon Marlow wrote:
> On 09 August 2004 16:57, Remi Turk wrote:
>
> > Hm, I _was_ aware of mp_set_memory_functions being used by the RTS.
> > I've seen it often enough in ltrace's ;)
> > It does indeed sound rather plausible (and making big allocation
On 10 August 2004 13:03, MR K P SCHUPKE wrote:
> Re GMP, Why not provide more GMP functions as primitives on the
> Integer type, and avoid the need to call out to GMP via the FFI?
Show us the code! :-p
Cheers,
Simon
___
Glasgow-haskell-users ma
Re GMP, Why not provide more GMP functions as primitives on the
Integer type, and avoid the need to call out to GMP via the FFI?
Keean.
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haske
On 09 August 2004 16:57, Remi Turk wrote:
> On Sun, Aug 08, 2004 at 07:34:04AM -0700, Sigbjorn Finne wrote:
>> Hi,
>>
>> please be aware that the RTS uses GMP as well, and upon
>> initialisation it sets GMP's 'memory functions' to allocate memory
>> from the RTS' heap. So, in the code below, the
10 matches
Mail list logo