Do The Evolution

I don't really remember if I learned Darwin's theory of evolution by the means of natural selection at school, I was attending to a catholic school but as far as I know we never read the bible literally so evolution shouldn't conflict with god and we must had been taught about it but I just don't remember, instead I do remember the day I decided to deeply involve my life with computers, I was a kid watching a documentary on TV and they showed computer simulated creatures that evolved to accomplish a certain goal like move in different environments such as land or water, they also of course explained the theory of evolution which is the foundation of their research. I was so amazed by that show that I truly decided I will some day do the same and became a computer scientist, that show changed my life and opened my mind to the sciences, which in turn gave me a wonderful world where faith and belief are useless, I can't thank them enough.

I found parts of the show on youtube and here they are:

Time went by and my computer skills got better, at some point I taught myself how to write software at the same time I had to learn how to read and write in english to understand the books I was "reading", so when I say I'm autodidact I really mean it.

Many years later I started reading about religion and evolution and all that controversy around it in the US, this time I was of course completely atheist and a decent programmer, I found another video, this time on youtube that explained how evolution really works. Inside this brilliant video the author runs a software with small creatures that shows a basic feature of many creatures as they change it's color to mimic their environment, those creatures that mix the best with their environment have less chance to get eaten by predators, some of them die randomly and the remaining ones get a chance to pass their genes to the next generation with a small probability of a small mutation, the process is repeated over and over and something wonderful happens, this small organisms start to gradually change their color and mix with the environment.

Then as a video response I found a Windows version of the same:

Then it hit me! I could try to do the same for the mac, since I wanted to learn how to program on the mac anyways, this is the perfect way to get started!.. so I got myself a couple of beers and a weekend, I learned the basics of Objective-C and Cocoa and this is the result.

WARNING: Beware I'm a complete n00b in the Mac OS X development world, my familiarity with Cocoa is 3 days old and I just got my books yestarday so don't expect a piece of art here:

Of course the code sucks, I use pseudo-random number generators and a very rough mix and mutation algorithm, but the point is, it seems to work, I was happy and smiling :)

Bonus Track (I couldn't resist):

Comments !

blogroll

social