From: MonkeeSage Date: 2007-11-29T08:49:59+09:00 Subject: Re: Metaprogramming for Tierra-like (artificial life) program? On Nov 28, 12:08 pm, Phil Rhoades wrote: > People, > > Would it be possible to use Ruby's metaprogramming ability to write > something like Tierra?: > > http://www.nis.atr.jp/~ray/tierra/whatis.html > > http://www.nis.atr.jp/~ray/pubs/images/ > > A quick summary for those who don't want to look at this site - Tierra > is an artificial life program using a virtual computer and virtual > machine code to allow "evolution" of self-reproducing code by mutation > (bit-flipping). Various "organisms" then evolve including hosts, > parasites, immune hosts, hyper-parasites etc > > It would be a nice programming exercise for me (to learn more Ruby) if > something like Tierra was possible using metaprogramming (or any other > ruby facilities). > > Regards, > > Phil. > -- > Philip Rhoades > > Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) > GPO Box 3411 > Sydney NSW 2001 > Australia > Fax: +61:(0)2-8221-9599 > E-mail: p...@pricom.com.au Sure, you can write a Game of Life in ruby. (You could even get fancy and name it something else, like, say..."Tierra" ;P) http://rubyforge.org/projects/rlife/ Regards, Jordan