I couldn't get 9!:32 33 to work in J6.02 - I couldn't create a timer error.
I can't tell from the description whether they will do what I want. I
want to be able to set a time limit on a verb run as part of a function.
The discussion of 9!:32 33 talks a lot about immediate execution,
while I want to use it many times within the execution of a single immex
line.
Henry Rich
On 9/20/2012 8:15 AM, Henry Rich wrote:
Thanks, that's exactly what I need.
Henry Rich
On 9/20/2012 12:38 AM, Gilles Kirouac wrote:
Henry
Did you look at 9!:32 33?
It may not have the wanted granularity under Windows though.
~ Gilles
---------- Original Message -----------
From: Henry Rich <henryhr...@nc.rr.com>
To: Programming forum <programm...@jsoftware.com>
Sent: Wed, 19 Sep 2012 16:30:33 -0400
Subject: [Jprogramming] Execution with time limit
I have uses for a conjunction u (6!:4) n defined as 'execute u, but
give a timeout error if execution lasts more than n seconds'.
I can see 2 uses: first, my immediate need, where I want to run lint
on a program that has a long-running sequence. I would like to halt
execution of any verb that takes more than 0.5 seconds.
Second, in any interactive system it might be desirable to halt a
process that takes too long.
This would be fairly easy to implement, I expect, and I'd try it if
Jsoftware would solve the problem of how to make official changes.
Henry Rich
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
------- End of Original Message -------
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm