I've just finished writing a genetic algorithm for Hello World, would anyone be interested in having a race? All languages allowed and no time limit.
Printable View
I've just finished writing a genetic algorithm for Hello World, would anyone be interested in having a race? All languages allowed and no time limit.
I'm having a hard time figuring out why we would want either a genetic algorithm or a generic algorithm for Hello World.
pretty much, yeah
as to why we'd want to do this, it provides an entrance to genetic algorithms where it's easy to evaluate your success, and there is plenty of room for optimization depending on how you choose to calculate your fitness, perform crossovers, or select members for the next generation. Oh, and it's fun imo
I like this idea, actually.
Wow, that's a really impressive runtime.
Here's mine, written in Java https://sourceforge.net/projects/helloworldga/files/
Mine is printed before yours is even compiled. I win.Code:#warning Hello World
Also:
because Prolog is awesome.Code:
?- write('Hello world!'), nl.
Cut n' paste #2: "name this language" challenge
bonus points if you have a compiler for this "mystery" language and can find the typo(s)...Code:+++++ +++++ initialize counter (cell #0) to 10
[ use loop to set the next four cells to 70/100/30/10
> +++++ ++ add 7 to cell #1
> +++++ ++++++ add 11 to cell #2
> +++ add 3 to cell #3
> + add 1 to cell #4
<<<< - decrement counter (cell #0)
]
> ++ . print 'H'
> + . print 'e'
+++ ++ . print 'l'
. print 'l'
+++ . print 'o'
> ++ . print ' '
<< +++++ +++++ +++++ . print 'W'
> . print 'o'
+++ . print 'r'
----- - . print 'l'
----- --- . print 'd'
> + . print '!'
> . print '\n'
OMG! All that opportunity wasted...Quote:
Yes well, I took a look at your code... and there's a heck of alot more than "hello world" in there... what's with all the arrays and data gathering?
If you are going to troll it, troll the .... out of it.
How did you not setup a "Rick Roll"?
http://trollcats.com/wp-content/uplo...t_trollcat.jpg
Soma
muahaha, you may have warned others but it's too late for you! Your SIN number is already in the hands of 42 Islamic extremest immigrants, the name and location of your children's school has been forwarded your local NANBLA chapter, all of the naked pictures of your wife that were stored within 5m of your computer have been sent to charities benefiting children's cancer, your complete browser history has been mailed to every member of a religious group within 50km of your current location, and your home page will be set to lemon party after you finish reading this message (try it)