Re: libgmp deimos library

2017-01-14 Thread Andrew Hall via Digitalmars-d
On Thursday, 12 January 2017 at 16:55:10 UTC, Nordlöw wrote: On Thursday, 12 January 2017 at 09:19:26 UTC, Russel Winder wrote: Is the intention for this to stand with or replace std.bigint ? I have no plan yet. I'm just gonna work on it for fun until it covers most of GNU MP. Pull requests

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Thursday, 12 January 2017 at 02:12:01 UTC, Mike Parker wrote: On Wednesday, 11 January 2017 at 23:12:30 UTC, Nordlöw wrote: On Wednesday, 11 January 2017 at 22:19:58 UTC, Andrew Hall wrote: also, why nogc? Because C-functions never use the D garbage collector :) They should also be

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Wednesday, 11 January 2017 at 22:18:53 UTC, Andrew Hall wrote: On Wednesday, 11 January 2017 at 22:14:03 UTC, Nordlöw wrote: One important thing...you've forgotten to qualify the D wrapper functions as `pure @nogc`. in the actual bindings, I did include pure & nothrow however I've not

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Wednesday, 11 January 2017 at 22:14:03 UTC, Nordlöw wrote: One important thing...you've forgotten to qualify the D wrapper functions as `pure @nogc`. in the actual bindings, I did include pure & nothrow however I've not had time in the wrapper.

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Wednesday, 11 January 2017 at 18:32:36 UTC, Nordlöw wrote: On Wednesday, 11 January 2017 at 13:53:18 UTC, Andrew Hall wrote: I was planning on extending this wrapper but since you have one, you may as well have the test cases. Great. I'll merge mine and your's stuff and put it in

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Wednesday, 11 January 2017 at 12:50:15 UTC, Nordlöw wrote: On Wednesday, 11 January 2017 at 10:29:26 UTC, Andrew Hall wrote: https://github.com/andrew-m-h/libgmp Nice. I'll make use of it in my high-level wrapper at https://github.com/nordlow/phobos-next/blob/master/src/gmp.d instead of

GMP bindings for DLang

2017-01-11 Thread Andrew Hall via Digitalmars-d-announce
I've been writing D bindings for GMP the multi-precision numeric library. I know Dlang has bignum, but GMP is still the fastest library for extremely large numbers. I've thus far written header interface for all of gmp.h minus the mpn_t functions (low level natural numbers). And I'm in the

Re: libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
On Wednesday, 11 January 2017 at 10:52:40 UTC, Guillaume Chatelet wrote: On Wednesday, 11 January 2017 at 10:29:26 UTC, Andrew Hall wrote: I've been writing D bindings for GMP and I was wondering if they warrant inclusion in the Deimos git repo. I know Dlang has bignum, but GMP is still the

libgmp deimos library

2017-01-11 Thread Andrew Hall via Digitalmars-d
I've been writing D bindings for GMP and I was wondering if they warrant inclusion in the Deimos git repo. I know Dlang has bignum, but GMP is still the fastest library for extremely large numbers. The repos is in 'Deimos' format so if you care to use it, please tell me how to proceed.