{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/19456","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/19456/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/19456/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/19456/events","html_url":"https://github.com/JuliaLang/julia/issues/19456","id":192476185,"number":19456,"title":"Serialization of nested anonymous functions.","user":{"login":"amitmurthy","id":117461,"avatar_url":"https://avatars.githubusercontent.com/u/117461?v=3","gravatar_id":"","url":"https://api.github.com/users/amitmurthy","html_url":"https://github.com/amitmurthy","followers_url":"https://api.github.com/users/amitmurthy/followers","following_url":"https://api.github.com/users/amitmurthy/following{/other_user}","gists_url":"https://api.github.com/users/amitmurthy/gists{/gist_id}","starred_url":"https://api.github.com/users/amitmurthy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitmurthy/subscriptions","organizations_url":"https://api.github.com/users/amitmurthy/orgs","repos_url":"https://api.github.com/users/amitmurthy/repos","events_url":"https://api.github.com/users/amitmurthy/events{/privacy}","received_events_url":"https://api.github.com/users/amitmurthy/received_events","type":"User","site_admin":false},"labels":[{"id":97636,"url":"https://api.github.com/repos/JuliaLang/julia/labels/bug","name":"bug","color":"e10c02","default":true},{"id":9159719,"url":"https://api.github.com/repos/JuliaLang/julia/labels/parallel","name":"parallel","color":"f7e102","default":false},{"id":47509082,"url":"https://api.github.com/repos/JuliaLang/julia/labels/regression","name":"regression","color":"ff2510","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-30T05:01:40Z","updated_at":"2017-01-13T19:37:35Z","closed_at":null,"body":"```\r\njulia> c = x->x\r\n(anonymous function)\r\n\r\njulia> d = x->c(x)\r\n(anonymous function)\r\n```\r\n\r\nOn 0.4:\r\n```\r\njulia> pmap(d, 1:2)\r\n2-element Array{Any,1}:\r\n 1\r\n 2\r\n```\r\n\r\nOn 0.5:\r\n```\r\njulia> pmap(d, 1:2)\r\nERROR: On worker 2:\r\nUndefVarError: c not defined\r\n in #3 at ./REPL[2]:1\r\n```\r\n\r\nNote that `pmap(c, 1:2)` works.\r\n\r\nMaking them local results in a different error:\r\n```\r\njulia> function wrapper()\r\n           c = x->x\r\n           d = x->c()\r\n           pmap(d, 1:2)\r\n       end\r\nwrapper (generic function with 1 method)\r\n\r\njulia> wrapper()\r\nERROR: On worker 2:\r\nMethodError: no method matching (::Base.Serializer.__deserialized_types__.##5#7)()\r\n```\r\n "},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/272527864","html_url":"https://github.com/JuliaLang/julia/issues/19456#issuecomment-272527864","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/19456","id":272527864,"user":{"login":"bdeonovic","id":805168,"avatar_url":"https://avatars.githubusercontent.com/u/805168?v=3","gravatar_id":"","url":"https://api.github.com/users/bdeonovic","html_url":"https://github.com/bdeonovic","followers_url":"https://api.github.com/users/bdeonovic/followers","following_url":"https://api.github.com/users/bdeonovic/following{/other_user}","gists_url":"https://api.github.com/users/bdeonovic/gists{/gist_id}","starred_url":"https://api.github.com/users/bdeonovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdeonovic/subscriptions","organizations_url":"https://api.github.com/users/bdeonovic/orgs","repos_url":"https://api.github.com/users/bdeonovic/repos","events_url":"https://api.github.com/users/bdeonovic/events{/privacy}","received_events_url":"https://api.github.com/users/bdeonovic/received_events","type":"User","site_admin":false},"created_at":"2017-01-13T19:37:35Z","updated_at":"2017-01-13T19:37:35Z","body":"I guess what I'm trying to get at here is how does this relate to the error we are having in Mamba (https://github.com/brian-j-smith/Mamba.jl/issues/109)"}}
{"actor":{"display_login":"bdeonovic"}}