Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39609

Re: FYI: AI-programmer

Date 2013-02-22 12:09 +0000
From Andrew Robinson <andrew3@r3dsolutions.com>
Subject Re: FYI: AI-programmer
References <4CACF5BFEFC24638A0D8007921722FB8@dev.null> <CAPTjJmq4NNoR9wcq9KSjWOd_bu8gdQ8iuwNVGK-qy1niOJUh_A@mail.gmail.com> <CALwzidnmi+08qGOdSK+=TE5N_38uJ91g468piQ3L2eu5Dzf4kw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2298.1361563926.2939.python-list@python.org> (permalink)

Show all headers | View raw


On 02/22/2013 07:21 PM, Ian Kelly wrote:
> On Fri, Feb 22, 2013 at 4:41 AM, Chris Angelico <rosuav@gmail.com> wrote:
>> That's not artificial intelligence, though. It's artificial program
>> generation based on a known target output. The "Fitness" calculation
>> is based on a specific target string. This is fine for devising a
>> program that will produce the entire works of Shakespeare, since there
>> is a target string for that (actually, several targets, plus you have
>> to work out whether you want the works of Shakespeare or the works of
>> some guy named Bacon... mmm bacon), but I suggest that a more
>> sophisticated and useful goal be implemented.
> Indeed, it seems to me that this is basically Richard Dawkins' weasel
> program, with the addition of a transformation step in the fitness
> function that amounts to running the string through a Brainfuck
> interpreter.  There is a rather large gap between this and getting
> computers to generate programs that do anything interesting.
>
> 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....

http://eli.thegreenplace.net/2011/08/22/how-not-to-set-a-timeout-on-a-computation-in-python/

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: FYI: AI-programmer Andrew Robinson <andrew3@r3dsolutions.com> - 2013-02-22 12:09 +0000

csiph-web