On Dec 17, 2:48 am, Paul Zimmermann <paul.zimmerm...@loria.fr> wrote:

Hi Paul,

> sorry to answer late to this thread.

:)

> > Paul -- does GMP-ECM have a by-design hard limit of 4095 digits?
>
> the answer is no, this problem is likely related to pexpect.
>
> >> The real longterm solution to this problem is to totally rewrite the...
> > Thanks to Robert Miller that is already in Sage:
>
> yes instead of the pexpect interface one should use now ecmfactor. I am myself
> using it continuously and it is quite robust (unlike the pexpect interface
> which runs out of ttys after a few minutes).

Ok, the problem here is likely that we use popen3 and do not properly
close the tty, so we are leaking file descriptors. Something similar
happened with the phc interface, so if this could keeps on living we
should fix it.

> > Is there any reason we're still shipping the old interface?
> > How can I obtain the old functionality?
>
> I see no reason. However indeed the new interface performs only one curve.
> It is easy to extend to run several curves until a factor is found:
>
> # n is composite, returns a prime factor of n
> def Ecmfactor (n):
>    b1 = 100
>    while True:
>       p = ecmfactor (n, b1)[1]
>       if is_pseudoprime(p):
>          return p
>       b1 = b1 + isqrt(b1)
>
> Paul Zimmermann

Yep, I would recommend we open a new ticket to improve the library
interface so that it can do everything that the current pexpect
interface can do and once that is done open another ticket do switch
the old interface over to use the library interface.

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to