On Sunday, 15 January 2017 at 03:04:30 UTC, Andrew Hall wrote:
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 are very welcome.

What would be cool would be a way for D to generate 'optimal' gmp code. So a template function that takes in an expression, and output's D / GMP code that uses minimal allocation.

I'm gonna solve this with expression templates instead:

https://github.com/nordlow/gmp-d/blob/master/src/gmp.d#L1725

in use for instance here

https://github.com/nordlow/gmp-d/blob/master/src/gmp.d#L1744

I'm gonna activate it in the operator overloads for MpZ this week.

Reply via email to