bug#10519: guile and (mini-)gmp

2016-11-10 Thread Andy Wingo
On Thu 27 Oct 2016 14:29, ni...@lysator.liu.se (Niels Möller) writes: > Mark H Weaver writes: > >> FYI, I've pushed patches to Guile's git repository (stable-2.0 branch) >> which eliminate the known obstacles to mini-gmp integration. > > Hi, I'm curious if there's been any

bug#10519: guile and (mini-)gmp

2016-10-27 Thread Niels Möller
Mark H Weaver writes: > FYI, I've pushed patches to Guile's git repository (stable-2.0 branch) > which eliminate the known obstacles to mini-gmp integration. Hi, I'm curious if there's been any further progress? Regards, /Niels -- Niels Möller. PGP-encrypted email is

bug#10519: guile and (mini-)gmp

2013-03-27 Thread Mark H Weaver
Hi Niels, ni...@lysator.liu.se (Niels Möller) writes: For the small integer gcd code, you may want to have a look at the tricks used in http://gmplib.org:8000/gmp/file/304af17b9ccc/mpn/generic/gcd_1.c, the code under GCD_1_METHOD == 2 1. Shift out the least significant bit of both a and b

bug#10519: guile and (mini-)gmp

2013-03-26 Thread Niels Möller
Mark H Weaver m...@netris.org writes: FYI, I've pushed patches to Guile's git repository (stable-2.0 branch) which eliminate the known obstacles to mini-gmp integration. Out of curiosity, I had a quick look at the patches as posted to the guile devel list. For the small integer gcd code, you

bug#10519: guile and (mini-)gmp

2013-03-18 Thread Ludovic Courtès
Mark H Weaver m...@netris.org skribis: FYI, I've pushed patches to Guile's git repository (stable-2.0 branch) which eliminate the known obstacles to mini-gmp integration. Great, thanks! And sorry for not following more closely... Ludo’.

bug#10519: guile and (mini-)gmp

2013-03-05 Thread Mark H Weaver
Hello all, I wrote: I'm embarrassed to admit that the integration of mini-gmp into guile has long been waiting on my pending numerics patches. I'll try to get going on this (and some other things) for the 2.0.8 release. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10519#8 I've posted a new

bug#10519: guile and (mini-)gmp

2013-03-02 Thread Andy Wingo
Hi, A ping on this bug on getting Guile to have the possibility of using an embedded copy of mini-gmp. 1. What is the status of mini-gmp? I understand that you use it in GMP itself, so hopefully mini-gmp is in a good state, upstream. 2. Has anyone looked at getting mini-gmp into Gnulib?

bug#10519: guile and (mini-)gmp

2013-03-02 Thread Niels Möller
Andy Wingo wi...@pobox.com writes: 1. What is the status of mini-gmp? I understand that you use it in GMP itself, so hopefully mini-gmp is in a good state, upstream. The version bundled with gmp-5.1.1 is fairly solid. The first release, with gmp-5.1.0, had some severe bugs. Testsuite has

bug#10519: guile and (mini-)gmp

2012-08-11 Thread Niels Möller
l...@gnu.org (Ludovic Courtès) writes: Yes, thanks. I just tried it, and here’s the status: - numbers.c uses ‘GMP_NUMB_BITS’, which is lacking; If that's really needed, it can be substituted with something like #ifndef GMP_NUMB_BITS #include limits.h #define GMP_NUMB_BITS

bug#10519: guile and (mini-)gmp

2012-08-11 Thread Ludovic Courtès
Hi, ni...@lysator.liu.se (Niels Möller) skribis: l...@gnu.org (Ludovic Courtès) writes: Yes, thanks. I just tried it, and here’s the status: - numbers.c uses ‘GMP_NUMB_BITS’, which is lacking; If that's really needed, it can be substituted with something like #ifndef

bug#10519: guile and (mini-)gmp

2012-08-11 Thread Niels Möller
l...@gnu.org (Ludovic Courtès) writes: For me/us, the best workflow would be to have a Gnulib module. That way, whenever GMP developers fix a bug in mini-gmp, we automatically get the fix when running “gnulib-tool --update”. I guess you can do whatever you want in gnulib. But it should be

bug#10519: guile and (mini-)gmp

2012-08-11 Thread Ludovic Courtès
ni...@lysator.liu.se (Niels Möller) skribis: l...@gnu.org (Ludovic Courtès) writes: For me/us, the best workflow would be to have a Gnulib module. That way, whenever GMP developers fix a bug in mini-gmp, we automatically get the fix when running “gnulib-tool --update”. I guess you can do

bug#10519: guile and (mini-)gmp

2012-08-10 Thread Ludovic Courtès
Hi Niels, ni...@lysator.liu.se (Niels Möller) skribis: l...@gnu.org (Ludovic Courtès) writes: Reviving the discussion, as we’ve been discussing this at the GHM, and some people would really like to see it happen. :-) Great! Any summary of the discussion, for those of us who couldn't make

bug#10519: guile and (mini-)gmp

2012-07-22 Thread Ludovic Courtès
Hello! Reviving the discussion, as we’ve been discussing this at the GHM, and some people would really like to see it happen. :-) ni...@lysator.liu.se (Niels Möller) skribis: To try that out, I'm working with a slightly patched guile: Do you still have the patch around? 1. The header file

bug#10519: guile and (mini-)gmp

2012-07-22 Thread Ludovic Courtès
Hi Mark! Mark H Weaver m...@netris.org skribis: ni...@lysator.liu.se (Niels Möller) writes: 2. The next problem is maybe more a nuisance than a real problem. I'm looking at scm_i_big2dbl, in numbers.c. I notice this code doesn't currently use mpz_get_d (comment says that's because

bug#10519: guile and (mini-)gmp

2012-07-22 Thread Niels Möller
l...@gnu.org (Ludovic Courtès) writes: Reviving the discussion, as we’ve been discussing this at the GHM, and some people would really like to see it happen. :-) Great! Any summary of the discussion, for those of us who couldn't make it there? ni...@lysator.liu.se (Niels Möller) skribis:

bug#10519: guile and (mini-)gmp

2012-02-03 Thread Andy Wingo
Greets, Thanks for working on this, Niels, and thanks for following up on it, Mark. It's great to have such knowledgeable folk working on this problem. One suggestion, if it's possible: it would be great if mini-gmp could make it to be part of gnulib at some point. That's probably the easiest

bug#10519: guile and (mini-)gmp

2012-02-03 Thread Niels Möller
Andy Wingo wi...@pobox.com writes: One suggestion, if it's possible: it would be great if mini-gmp could make it to be part of gnulib at some point. It's main home will be the GMP repo and distributions. But that doesn't exclude that it's also copied into gnulib, if that's convenient. BTW, I

bug#10519: guile and (mini-)gmp

2012-02-03 Thread Torbjorn Granlund
ni...@lysator.liu.se (Niels Möller) writes: Andy Wingo wi...@pobox.com writes: One suggestion, if it's possible: it would be great if mini-gmp could make it to be part of gnulib at some point. It's main home will be the GMP repo and distributions. But that doesn't exclude that

bug#10519: guile and (mini-)gmp

2012-01-28 Thread Niels Möller
Mark H Weaver m...@netris.org writes: It would be good if you could duplicate the `mp_set_memory_functions' interface in mini-gmp. I'm looking into this. I found that the GMP interface has one awkward feature: The current allocation size must be passed as an argument to the free and realloc

bug#10519: guile and (mini-)gmp

2012-01-16 Thread Mark H Weaver
Hi Niels, thanks for looking into this! ni...@lysator.liu.se (Niels Möller) writes: 2. The next problem is maybe more a nuisance than a real problem. I'm looking at scm_i_big2dbl, in numbers.c. I notice this code doesn't currently use mpz_get_d (comment says that's because gmp-4.2

bug#10519: guile and (mini-)gmp

2012-01-16 Thread Niels Möller
Mark H Weaver m...@netris.org writes: Don't worry about this. I have a patch set that (among other things) reimplements scm_i_big2dbl in a much more robust way, with proper rounding, and without using such low-level GMP accessors. I posted this patch set to guile-devel on 7 Oct, [PATCH]

bug#10519: guile and (mini-)gmp

2012-01-15 Thread Niels Möller
Hi, I'm hacking on something called mini-gmp (see http://gmplib.org:8000/mini-gmp/). This is inteded to be a small and simple implementation of a GMP subset, suitable for programs which needs bignums, but which don't use very large numbers or very high performance. (I aimed for mini-gmp.c to be