Richard in Reading on Wed, 01 May 2013 18:36:14 +0200
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Recovering partial factorizations when using trap() and alarm() to abort factorint()
- To: email@example.com
- Subject: Recovering partial factorizations when using trap() and alarm() to abort factorint()
- From: Richard in Reading <firstname.lastname@example.org>
- Date: Wed, 1 May 2013 17:35:59 +0100 (BST)
- Delivery-date: Wed, 01 May 2013 18:36:14 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1367426160; bh=InHkf0VMiGVab8Lck3w5gQpRRQNANgVgHJF7qgfKZGk=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=6qq9vjSeCuv6GuQT0ueCxSQxCaarH1Zuqccuf7RE1pgrUFIcFfT5hOZ0gJlufGfzZhBXO5FJnXjGo/p3iS9KvIt8my9ABhtjTytxU8mAxkl3MzuA0OuZTPRjCGWsToDBuaNGDnTy4FzhUllKkyySxYBhopVI6y/TkUnFe88pw7Q=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=X+OTR3wTQJmPtVoBFIojlyB8cGSMETT3pXd2lc/ovksGn2SCLx2MvzQlh499TYOWB4uWt/4yROycA4pVLQsbQfh6n6JfPRfxbjg4ysJ0x4RCNMIPQIJ2yxwLmgFq5dt94zWfbrNBs8weHI7AUi5xbW5wAcZEiz+kqm5KmWASC00=;
- In-reply-to: <CAJkPp5MpR9W9xELgNj64Y7A9cV-_vm8kO4n2MPaJhe-wKR1i6Q@mail.gmail.com>
Thanks to Max Alekseyev I understand how to use alarm to abort a hung factorint() on systems which support alarm().
Runing on windows, alarm(1) gives
"alarm: sorry, 'alarm' not available on this system."
I suppose there's no way of getting alarm to work on a windows box?
Also, aborting the factorint() function does not give any access to any partial factorization found. Is there any way to recover this?
I'm very impressed with some of the changes I can see in 2.6 but I think the usability of the factoring functions are not keeping up. Any changes which would make the run-time of factoring with different flags a bit more predictable would make a big difference to me.