{"id":41963189,"url":"https://github.com/trumae/tabuada","last_synced_at":"2026-01-25T23:00:03.243Z","repository":{"id":1012853,"uuid":"835906","full_name":"trumae/tabuada","owner":"trumae","description":"Genetic programming synthesize assembler programs","archived":false,"fork":false,"pushed_at":"2019-11-20T01:33:51.000Z","size":137,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-17T15:10:51.503Z","etag":null,"topics":["c","genetic-algorithm","genetic-programming","tournament-algorithm"],"latest_commit_sha":null,"homepage":"http://trumae.github.com/tabuada","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trumae.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-08-13T14:47:56.000Z","updated_at":"2024-04-17T15:10:51.504Z","dependencies_parsed_at":"2022-07-18T15:00:36.773Z","dependency_job_id":null,"html_url":"https://github.com/trumae/tabuada","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/trumae/tabuada","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumae%2Ftabuada","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumae%2Ftabuada/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumae%2Ftabuada/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumae%2Ftabuada/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trumae","download_url":"https://codeload.github.com/trumae/tabuada/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumae%2Ftabuada/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28761484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T20:56:06.009Z","status":"ssl_error","status_checked_at":"2026-01-25T20:54:48.203Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","genetic-algorithm","genetic-programming","tournament-algorithm"],"created_at":"2026-01-25T23:00:01.966Z","updated_at":"2026-01-25T23:00:03.231Z","avatar_url":"https://github.com/trumae.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project is a little toy  in genetic programming. Basically we built a system that uses genetic programming to synthesize code into a tiny virtual machine. \n\nTo play you need of:\n- gcc\n\n* Building\n\nIn the src directory, execute the command:\n    $ make\n\n* Testing\n\nRun without changes, the gp program try synthesize a program that does the multiplication of two integers. Note that the virtual machine has no instruction of multiplication. Use this command for see the program in action:\n \n  $./gp -n 20 -t 50000000 -i 10 -H 30\n\n* Instructions of Virtual Machine\n\n| instruction  | note                                                   |\n|--------------+--------------------------------------------------------|\n| MOVE   x y   | put the value of y in x                                |\n| MOVI   x num | put the value num in x                                 |\n| ADD    x y   | adds the value of y at x                               |\n| SUBI   x num | decreases the value num at x                           |\n| JUMPZ  x pc  | if x value is zero, jump to instruction in position pc |\n| JUMP   pc    | jump to instruction in position  pc                    |\n| RET          | stop the program                                       |\n\n* Examples of output\n\n#+BEGIN_SRC \nMOVE 2 0\nSUBI 1 1\nJUMPZ 1 8\nADD 2 0\nJUMP 1\nMOVE 0 1\nJUMPZ 2 1\nMOVE 0 2\nRET\n#+END_SRC\n\nAnother example (very strange/good):\n#+BEGIN_SRC \nMOVE  2 0\nADD   1 1\nMOVE  2 0\nJUMPZ 2 5\nSUBI  1 2\nJUMPZ 1 9\nSUBI  1 2\nADD   0 2\nJUMP  5\nSUBI  1 3\nSUBI  2 12\nJUMPZ 0 3\nMOVE  2 0\nRET\n#+END_SRC\n\n* Author\nTrumae \u003ctrumae@gmail.com\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrumae%2Ftabuada","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrumae%2Ftabuada","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrumae%2Ftabuada/lists"}