On Mon, Mar 15, 2010 at 12:57 PM, Brian Granger <ellisonbg....@gmail.com> wrote:
> Gonzalo,
> On Sun, Mar 14, 2010 at 9:21 PM, Brian Granger <ellisonbg....@gmail.com>
> wrote:
>>
>> > Gonzalo,
>> > Thanks for starting this discussion.  I am willing to help with this
>> > effort
>> > as I definitely need this capability.  Part of the challenge will be
>> > figuring out how to do this on Windows.
>>
>> Not necessarily. I think signals(2) is part of C89, and setjmp(3) /
>> longjmp(3) are as well, so they should work on windows (although it's
>> probably good for trapping ctrl-c and fp exceptions and not much more
>> -- but what else do you need?). Note that sigsetjmp(3) / siglongmp(3)
>> don't seem to be part of ansi c, though... I'm not sure atm why we use
>> that --- possibly only makes sense on unix and those can be changed to
>> the no-sig counterparts on windows)
>>
>
> This is encouraging, hopefully it won't be an issue to port this to Windows.

As a data point, the current _sig_on/_sig_off code appears to 100%
"just work" in Cygwin on Windows:

wst...@winxp2 /home/mhansen/sage-4.3.3.alpha0
$ ./sage
----------------------------------------------------------------------
| Sage Version 4.3.4.alpha1, Release Date: 2010-03-09                |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
**********************************************************************
*                                                                    *
* Warning: this is a prerelease version, and it may be unstable.     *
*                                                                    *
**********************************************************************
sage: time n=factorial(10^5)
CPU times: user 0.04 s, sys: 0.03 s, total: 0.07 s
Wall time: 0.20 s
sage: time n=factorial(10^7)
[I press control-c]
KeyboardInterrupt

sage:
sage:



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to