FYI: AI-programmer

Ian Kelly ian.g.kelly at gmail.com
Fri Feb 22 15:23:23 EST 2013


On Fri, Feb 22, 2013 at 5:09 AM, Andrew Robinson
<andrew3 at r3dsolutions.com> wrote:
> On 02/22/2013 07:21 PM, Ian Kelly wrote:
>> I am curious about how he deals with infinite loops in the generated
>> programs.  Probably he just kills the threads after they pass some
>> time threshold?
>
> I'm under the impression that Python doesn't really allow you to kill a
> thread after a time period.
> It's not portable to do so....

He's using C#, not Python.  And anyway, you can cooperatively request
threads to shut down; just have the Brainfuck interpreter thread check
for a shutdown request every N cycles, or even just place the timeout
in the interpreter thread itself.



More information about the Python-list mailing list