[{"data":1,"prerenderedAt":273},["ShallowReactive",2],{"project-2002673":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":5,"maker":10,"posted_at":11,"year":12,"points":13,"comments":14,"rank_in_year":15,"shown_in_year":16,"top":17,"tier":18,"category":19,"subcategory":20,"format":21,"keywords":22,"reception":27,"sentiment":28,"stance_mix":29,"scored_comments":32,"aspects":33,"strip":39,"post_text":41,"what":42,"said":67,"maker_in_thread":124,"shape":132,"grid":137,"attempts":236,"same_week":237,"maker_shows":135,"maker_hidden":265,"reader_version":266,"card":267},"2002673","puremango.co.uk","A Genetic Algorithm I wrote in JavaScript to evolve \"Hello World\"","title","Show HN: A Genetic Algorithm I wrote in JavaScript to evolve \"Hello World\"","http:\u002F\u002Fwww.puremango.co.uk\u002F2010\u002F12\u002Fgenetic-algorithm-for-hello-world\u002F","user24",1292288767,2010,109,38,8,370,3,"notable","languages","genetic algorithm library","web_app",[23,24,25,26],"genetic algorithm","javascript","evolutionary computation","hello world","curious",-0.089,{"positive":30,"neutral":31,"mixed":30,"critical":17},1,10,15,{"execution":34,"design":35,"idea":37,"performance":38},{"positive":30,"critical":30},{"positive":36,"critical":36},0,{"positive":36,"critical":30},{"positive":36,"critical":30},[40,17,36,17,36,17,36,36,36,36,36,17,36,36,36,17,30,36,36,36,36,36,36,36,17,36,36,36,30,17,17,17,36,36,17,36,30,17],5,null,{"problem":43,"audience":50,"pricing":41,"motivation":54,"time_to_build":41,"stack":58,"openness":64,"stage":65,"team_size":66},{"value":44,"source":45,"evidence":46},"Demonstrates how genetic algorithms work by evolving a target string.","maker",[47],{"id":48,"by":10,"text":49},"2002678","The code's fairly messy, but I hope the blog post and online demo will be enough to give the absolute beginner a good idea of how GAs work. One day I hope to apply machine…",{"value":51,"source":45,"evidence":52},"Absolute beginners learning genetic algorithms.",[53],{"id":48,"by":10,"text":49},{"value":55,"source":45,"evidence":56},"Maker wants a small step toward applying machine learning to predicting real-life events.",[57],{"id":48,"by":10,"text":49},[59],{"value":60,"source":45,"evidence":61},"JavaScript",[62],{"id":63},"post","unknown","launched","solo",{"praise":68,"objections":78,"requests":90,"questions":101,"alternatives":108},[69],{"value":70,"source":71,"evidence":72},"Clear presentation and blog post that helps explain genetic algorithms.","commenter",[73,77],{"id":74,"by":75,"text":76},"2002999","cgs1019","The author clearly put a lot of work into both the implementation and the presentation as well as the accompanying blog post (I love the quotes interspersed; reminds me of my…",{"id":48,"by":10,"text":49},[79,83],{"value":80,"source":45,"evidence":81},"Code is messy.",[82],{"id":48,"by":10,"text":49},{"value":84,"source":71,"evidence":85},"Fitness function description did not match the actual implementation.",[86],{"id":87,"by":88,"text":89},"2004261","SeanLuke","Update Looks like the guy's description of his function is different from his actual function. You're right, there is a single global optimum and no local optima.",[91,95],{"value":92,"source":71,"evidence":93},"Evolve an actual program that prints Hello World rather than a string.",[94],{"id":74,"by":75,"text":76},{"value":96,"source":45,"evidence":97},"Support for plugging in custom fitness functions.",[98],{"id":99,"by":10,"text":100},"2003696","Nice! Yeah I was thinking about trying to genericise it so you could plug your own fitness function in, but didn't get around to it. I got an error when playing with the values…",[102],{"value":103,"source":45,"evidence":104},"What selection method is used?",[105],{"id":106,"by":10,"text":107},"2003759","Ah, right I see :) > This gives the option to also specify how many survive from one round to the next v.s (correct me if this is wrong) a random amount each time in your…",[109],{"value":110,"source":71,"evidence":111},"Other JavaScript genetic algorithm demos and string evolvers.",[112,116,120],{"id":113,"by":114,"text":115},"2003173","icefox","A few years ago I made up this [generic] genetic algorithm page in javascript. http:\u002F\u002Ficefox.github.com\u002Fjavascript_genetic_algorithm\u002F?program=JavaScript%2520Genetic%2520Algorithm…",{"id":117,"by":118,"text":119},"2003580","JohnIdol","Nice. I did something similar in javascript --> https:\u002F\u002Fgithub.com\u002FJohnIdol\u002FWasDarwinWrong ... and C# --> https:\u002F\u002Fgithub.com\u002FJohnIdol\u002Ftypingmonkey",{"id":121,"by":122,"text":123},"2008427","agnt666","Recently, I also wrote (C#) a string evolver using a GA: https:\u002F\u002Fgithub.com\u002Fdreasgrech\u002FStringEvolver I tried 3 different types of fitness functions: Per-Character error…",{"comments":125,"answered":17,"key":126},9,[127,128,129],{"id":99,"text":100},{"id":106,"text":107},{"id":130,"text":131},"2003753","> This is with random strings inside a main() wrapper with stdio I'm impressed it managed to get something which ran at all! Usually with GP you at least start with a set of…",{"commenters":133,"max_depth":134,"maker_replies":125,"first_comment_mins":135,"lifespan_hours":136},17,6,2,117,[138,140,143,145,148,150,152,156,159,161,163,165,167,171,173,175,179,183,185,189,192,194,196,198,201,205,207,209,210,214,217,220,222,226,229,230,232,234],[113,36,40,139,114,36],"project\u002Fpositive\u002Fexecution",[141,36,17,142,114,36],"2003431","project\u002Fneutral\u002Fexecution",[99,36,36,144,10,30],"project\u002Fcritical\u002Fexecution",[146,36,17,147,114,36],"2003703","project\u002Fneutral\u002Fdesign",[106,36,36,149,10,30],"maker\u002Fneutral\u002Fdesign",[151,36,17,147,114,36],"2003829",[153,30,36,154,155,36],"2003052","other\u002Fneutral\u002Fnone","Groxx",[157,30,36,154,158,36],"2003401","StavrosK",[160,30,36,154,155,36],"2003456",[162,30,36,154,158,36],"2003547",[130,30,36,164,10,30],"maker\u002Fneutral\u002Fnone",[74,135,17,166,75,36],"project\u002Fmixed\u002Fidea",[168,135,36,169,170,36],"2003016","commenter\u002Fneutral\u002Fnone","Vivtek",[172,135,36,164,10,30],"2003742",[48,17,36,174,10,30],"maker\u002Fneutral\u002Fidea",[176,17,17,177,178,36],"2002751","project\u002Fneutral\u002Fnone","anathem",[180,17,30,181,182,36],"2003051","project\u002Fcritical\u002Fidea","yters",[184,17,36,154,155,36],"2003139",[186,17,36,187,188,36],"2003512","commenter\u002Fcritical\u002Fidea","tel",[190,17,36,191,182,36],"2017628","other\u002Fcritical\u002Fidea",[193,17,36,154,188,36],"2020435",[195,17,36,174,10,30],"2003744",[197,17,36,187,182,36],"2017622",[199,17,36,200,10,30],"2019835","commenter\u002Fneutral\u002Fidea",[202,17,17,203,204,36],"2004149","project\u002Fneutral\u002Fidea","IsaacL",[206,17,36,164,10,30],"2004221",[117,208,36,154,118,36],4,[121,40,36,154,122,36],[211,134,30,212,213,36],"2002875","project\u002Fcritical\u002Fperformance","kurin",[215,134,17,216,213,36],"2002914","maker\u002Fneutral\u002Fexecution",[218,134,17,203,219,36],"2002978","jerf",[221,134,17,142,88,36],"2002989",[223,134,36,224,225,36],"2003101","commenter\u002Fneutral\u002Fexecution","abhikshah",[227,134,36,224,228,36],"2003119","tassl",[87,134,17,216,88,36],[231,134,36,216,10,30],"2004303",[233,134,30,144,213,36],"2003036",[235,134,17,142,155,36],"2003146",[],[238,243,248,252,257,262],{"id":239,"name":240,"points":241,"category":242},"2009352","Profile Collage",77,"consumer_social",{"id":244,"name":245,"points":246,"category":247},"1996558","Flattehn",61,"productivity",{"id":249,"name":250,"points":251,"category":247},"2004254","Proxlet",46,{"id":253,"name":254,"points":255,"category":256},"2003486","foxGopherClient",25,"other",{"id":258,"name":259,"points":260,"category":261},"1988016","Zuupy",19,"web_saas",{"id":263,"name":264,"points":32,"category":242},"1988202","Collapsible Comments",false,"v2",{"id":268,"name":5,"line":6,"ai":265,"cat":19,"year":12,"points":13,"comments":14,"rec":27,"s":269,"top":17,"kw":270,"maker":10,"domain":5,"tier":18,"attempts":36,"strip":271,"url":9,"mix":272,"praise":70,"objection":80,"sub":20},2002673,-0.09,[23,24,25,26],"53030300000300031000000030001333003013",[30,31,30,17],1793990869122]