Interruptible calculations

Hans Aberg haberg at math.su.se
Wed Apr 15 09:49:18 CEST 2009


On 14 Apr 2009, at 19:11, Jafet wrote:

> I would like it to be human-friendly and especially allow a keyboard
> interrupt to quit a calculation and return to the prompt. However,  
> if a
> GMP function is executing at the moment I would want to force it to  
> stop
> and quit cleanly when the program gets a SIGINT.

There is a program that can do things like that though it is for  
producing audio and music, but perhaps you can look at the sources and  
tweak it:
   http://chuck.cs.princeton.edu/
   http://en.wikipedia.org/wiki/ChucK

   Hans Aberg




More information about the gmp-discuss mailing list