{"action":"created","issue":{"url":"https://api.github.com/repos/FelipeRosa/clojure-gsgp/issues/6","repository_url":"https://api.github.com/repos/FelipeRosa/clojure-gsgp","labels_url":"https://api.github.com/repos/FelipeRosa/clojure-gsgp/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/FelipeRosa/clojure-gsgp/issues/6/comments","events_url":"https://api.github.com/repos/FelipeRosa/clojure-gsgp/issues/6/events","html_url":"https://github.com/FelipeRosa/clojure-gsgp/issues/6","id":176156339,"number":6,"title":"Add genetic operators to language definitions","user":{"login":"FelipeRosa","id":2042166,"avatar_url":"https://avatars.githubusercontent.com/u/2042166?v=3","gravatar_id":"","url":"https://api.github.com/users/FelipeRosa","html_url":"https://github.com/FelipeRosa","followers_url":"https://api.github.com/users/FelipeRosa/followers","following_url":"https://api.github.com/users/FelipeRosa/following{/other_user}","gists_url":"https://api.github.com/users/FelipeRosa/gists{/gist_id}","starred_url":"https://api.github.com/users/FelipeRosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelipeRosa/subscriptions","organizations_url":"https://api.github.com/users/FelipeRosa/orgs","repos_url":"https://api.github.com/users/FelipeRosa/repos","events_url":"https://api.github.com/users/FelipeRosa/events{/privacy}","received_events_url":"https://api.github.com/users/FelipeRosa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FelipeRosa/clojure-gsgp/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-10T04:25:35Z","updated_at":"2016-09-10T20:59:35Z","closed_at":null,"body":"Language definitions should also specify how its programs are transformed through crossover and mutation. These operators should take individuals (with pre-computed fitness and phenotype) and produce new individuals."},"comment":{"url":"https://api.github.com/repos/FelipeRosa/clojure-gsgp/issues/comments/246139998","html_url":"https://github.com/FelipeRosa/clojure-gsgp/issues/6#issuecomment-246139998","issue_url":"https://api.github.com/repos/FelipeRosa/clojure-gsgp/issues/6","id":246139998,"user":{"login":"FelipeRosa","id":2042166,"avatar_url":"https://avatars.githubusercontent.com/u/2042166?v=3","gravatar_id":"","url":"https://api.github.com/users/FelipeRosa","html_url":"https://github.com/FelipeRosa","followers_url":"https://api.github.com/users/FelipeRosa/followers","following_url":"https://api.github.com/users/FelipeRosa/following{/other_user}","gists_url":"https://api.github.com/users/FelipeRosa/gists{/gist_id}","starred_url":"https://api.github.com/users/FelipeRosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelipeRosa/subscriptions","organizations_url":"https://api.github.com/users/FelipeRosa/orgs","repos_url":"https://api.github.com/users/FelipeRosa/repos","events_url":"https://api.github.com/users/FelipeRosa/events{/privacy}","received_events_url":"https://api.github.com/users/FelipeRosa/received_events","type":"User","site_admin":false},"created_at":"2016-09-10T20:59:35Z","updated_at":"2016-09-10T20:59:35Z","body":"Yes, ideally it should be done like this:\r\n\r\n```clojure\r\n(deflang arith\r\n  ; language terminals list\r\n  [(const (constant (- (rand-int 10) 5)))\r\n   (var   (input (rand-int 2)))]\r\n  ; language functions list\r\n  [(plus  [e1 e2] (funcall + e1 e2))\r\n   (times [e1 e2] (funcall * e1 e2))])\r\n  ; language genetic operators\r\n  ([i]     (...))\r\n  ([i1 i2] (...))\r\n```\r\n\r\nNote that the mutation operator, for example, needs to be able to generate new random genetic code. Maybe a good solution is to include something like ```(rand-program max-depth full?)``` inside the operator's context so that the language argument is already implied as the language being defined.\r\n\r\n"}}
{"actor":{"display_login":"FelipeRosa"}}