{"id":174,"date":"2012-10-31T13:05:04","date_gmt":"2012-10-31T13:05:04","guid":{"rendered":"http:\/\/www.millermattson.com\/dave\/?p=174"},"modified":"2020-01-13T20:32:28","modified_gmt":"2020-01-13T20:32:28","slug":"automated-source-code-evolution-using-genetic-algorithms-a-c11-tutorial","status":"publish","type":"post","link":"https:\/\/millermattson.com\/dave\/?p=174","title":{"rendered":"Genetic Algorithms for Automated Source Code Evolution: a C++11 tutorial"},"content":{"rendered":"<p><a href=\"http:\/\/www.millermattson.com\/dave\/wp-content\/uploads\/2012\/10\/thumbnail-362x204.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-181\" src=\"http:\/\/www.millermattson.com\/dave\/wp-content\/uploads\/2012\/10\/thumbnail-362x204.png\" alt=\"Genetic algorithms: a C++ tutorial\" width=\"362\" height=\"204\" srcset=\"https:\/\/millermattson.com\/dave\/wp-content\/uploads\/2012\/10\/thumbnail-362x204.png 362w, https:\/\/millermattson.com\/dave\/wp-content\/uploads\/2012\/10\/thumbnail-362x204-300x169.png 300w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/a><\/p>\n<p>Join me in some recreational C++ programming. Our project is to make a genetic algorithm that will evolve the source code for a program that, when run, will compute and output the solution to something. Our target source language is a tiny language called Iota, made specially for this purpose. We&#8217;ll also talk about how our simulated evolution compares with natural biology. All you need is a C++11-compliant compiler, and the iota-machine.h header file that you can download from link below. If that sounds at all interesting, then let&#8217;s hack up some code&#8230;<\/p>\n<p>Video link &#8211;&gt;&nbsp; <a title=\"Genetic algorithm for Iota source code evolution\" href=\"http:\/\/vimeo.com\/technotes\/iota-genome\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/vimeo.com\/technotes\/iota-genome<\/a><\/p>\n<p>Download materials for Windows (.zip format, DOS line endings):<\/p>\n<p><a href=\"http:\/\/www.millermattson.com\/dave\/?attachment_id=191\" rel=\"attachment wp-att-191\">iota-dev-1.0.zip<\/a><\/p>\n<p>Download materials for everybody else (.tar.gz format):<\/p>\n<p><a href=\"http:\/\/www.millermattson.com\/dave\/?attachment_id=190\" rel=\"attachment wp-att-190\">iota-dev-1.0.tar.gz<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Join me in some recreational C++ programming. Our project is to make a genetic algorithm that will evolve the source code for a program that, when run, will compute and output the solution to something. Our target source language is a tiny language called Iota, made specially for this purpose. We&#8217;ll also talk about how [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,12],"tags":[37,7,36,38,40,6,39,9],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-cpp","category-tutorials","tag-biology","tag-c","tag-evolution","tag-genetic-code","tag-iota-language","tag-programming","tag-ribosome","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/millermattson.com\/dave\/index.php?rest_route=\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/millermattson.com\/dave\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/millermattson.com\/dave\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/millermattson.com\/dave\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/millermattson.com\/dave\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=174"}],"version-history":[{"count":22,"href":"https:\/\/millermattson.com\/dave\/index.php?rest_route=\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":379,"href":"https:\/\/millermattson.com\/dave\/index.php?rest_route=\/wp\/v2\/posts\/174\/revisions\/379"}],"wp:attachment":[{"href":"https:\/\/millermattson.com\/dave\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/millermattson.com\/dave\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/millermattson.com\/dave\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}