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'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.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
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
Last edited by ಠ_ಠ; 04-23-2011 at 06:23 PM.
╔╗╔══╦╗
║║║╔╗║║
║╚╣╚╝║╚╗
╚═╩══╩═╝
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
I like this idea, actually.
Code://try //{ if (a) do { f( b); } while(1); else do { f(!b); } while(1); //}
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'
Last edited by MK27; 04-26-2011 at 07:35 PM.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge