Charles Greathouse on Tue, 17 Jun 2014 16:00:00 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: alarm support for mingw


Ah -- yes I am, it picked up my gprc.txt.

Turning it off I get

(09:56) gp >default(factor_add_primes,0)
(09:56) gp >alarm(1); factor(2^256+1)
  ***   at top-level: alarm(1);factor(2^256+1)
  ***                          ^---------------
  *** factor: alarm interrupt after 1,001 ms.
  ***   Break loop: type 'break' to go back to GP prompt
break> alarm(5); factor(2^256+1)

[                                              1238926361552897 1]

[93461639715357977769163558199606896584051237541638188580280321 1]

break> alarm(1, factor(2^256+1))
error("alarm interrupt after 1,000 ms.")
break> alarm(5, factor(2^256+1))

[                                              1238926361552897 1]

[93461639715357977769163558199606896584051237541638188580280321 1]

where the second line now takes about 5 seconds.


Charles Greathouse
Analyst/Programmer
Case Western Reserve University


On Tue, Jun 17, 2014 at 9:39 AM, Bill Allombert <Bill.Allombert@math.u-bordeaux.fr> wrote:
On Tue, Jun 17, 2014 at 09:20:23AM -0400, Charles Greathouse wrote:
> It seems to work for me on Vista. The first command takes about a second,
> the others are instant.
>
> For anyone else testing this, the URL should be
> http://pari.math.u-bordeaux.fr/pub/pari/windows/snapshots/gp-alarm-gitdbee21f.exe

Sorry...

> break> alarm(1, factor(2^256+1))
>
> [                                              1238926361552897 1]
>
> [93461639715357977769163558199606896584051237541638188580280321 1]

This one is unexpected: are you using factor_add_primes ?
Maybe retry in a new session just to be sure ?

Thanks for your test!
Bill.