4 ms·
I made a Python script that copied itself and launched the copies (It had the ability to mutate too though by randomly changing the copies). I thought eventual
by tocomment 17y ago
I made a Python script that copied itself and launched the copies (It had the ability to mutate too though by randomly changing the copies). I thought eventually it would evolve into a sentient being. But it would just tie up all my resources and freeze the computer.
One time something interesting happened though. I noticed the latest copies had commented out the mutation part of the code. They had "evolved" to not mutate. I'm guessing that was the best strategy to make viable offspring.
My take away lesson was that mutation has to come from the environment for early life forms to advance.
- pizza 17y agoI'd love to see that source-code.
- DrJokepu 17y agoThat's exactly what happened when procariotes evolved to eucariotes and dropped RNA in favour of DNA for storing genetic information which is much more stable so mutatuons are much more rare (our body still uses RNA just not for genetic information)
- rick2047 17y agoCome on dude that must have been cool.My opinion sell the story at Hollywood they need just such a thing to stitch together another Computer-brings-doomsday movie. I don't care how big budgeted these movies are but they always are a good laugh.
- cmelbye 17y agoEasy, just use "import evolution". But really, the source code of that would be really cool to see.