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'