{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaParallel/DistributedArrays.jl/issues/159","repository_url":"https://api.github.com/repos/JuliaParallel/DistributedArrays.jl","labels_url":"https://api.github.com/repos/JuliaParallel/DistributedArrays.jl/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/JuliaParallel/DistributedArrays.jl/issues/159/comments","events_url":"https://api.github.com/repos/JuliaParallel/DistributedArrays.jl/issues/159/events","html_url":"https://github.com/JuliaParallel/DistributedArrays.jl/issues/159","id":347197073,"node_id":"MDU6SXNzdWUzNDcxOTcwNzM=","number":159,"title":"broadcasting change after redesign","user":{"login":"raminammour","id":20540368,"node_id":"MDQ6VXNlcjIwNTQwMzY4","avatar_url":"https://avatars2.githubusercontent.com/u/20540368?v=4","gravatar_id":"","url":"https://api.github.com/users/raminammour","html_url":"https://github.com/raminammour","followers_url":"https://api.github.com/users/raminammour/followers","following_url":"https://api.github.com/users/raminammour/following{/other_user}","gists_url":"https://api.github.com/users/raminammour/gists{/gist_id}","starred_url":"https://api.github.com/users/raminammour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raminammour/subscriptions","organizations_url":"https://api.github.com/users/raminammour/orgs","repos_url":"https://api.github.com/users/raminammour/repos","events_url":"https://api.github.com/users/raminammour/events{/privacy}","received_events_url":"https://api.github.com/users/raminammour/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-02T22:30:24Z","updated_at":"2018-08-03T08:41:26Z","closed_at":null,"author_association":"NONE","body":"Hello, the following used to work:\r\n```\r\njulia> dd=@DArray [ones(10) for i=1:4];\r\njulia> @everywhere f(x)=2x\r\njulia> f.(dd)\r\n4-element DistributedArrays.DArray{Array{Float64,1},1,Array{Array{Float64,1},1}}:\r\n [2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0]\r\n [2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0]\r\n [2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0]\r\n [2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0]\r\n```\r\nOn `master`:\r\n```\r\njulia> f.(dd)\r\nERROR: BoundsError: attempt to access ()\r\n  at index [1]\r\nStacktrace:\r\n [1] getindex(::Tuple{}, ::Int64) at ./tuple.jl:24\r\n [2] find_darray(::Tuple{}) at /data/gpfs/Users/j0280401/JULIA/.julia/packages/DistributedArrays/oz7Z/src/mapreduce.jl:30\r\n [3] find_darray(::Base.Broadcast.Extruded{DArray{Array{Float64,1},1,Array{Array{Float64,1},1}},Tuple{Bool},Tuple{Int64}}, ::Tuple{}) at /data/gpfs/Users/j0280401/JULIA/.julia/packages/DistributedArrays/oz7Z/src/mapreduce.jl:33\r\n [4] find_darray(::Tuple{Base.Broadcast.Extruded{DArray{Array{Float64,1},1,Array{Array{Float64,1},1}},Tuple{Bool},Tuple{Int64}}}) at /data/gpfs/Users/j0280401/JULIA/.julia/packages/DistributedArrays/oz7Z/src/mapreduce.jl:30\r\n [5] find_darray(::Base.Broadcast.Broadcasted{Base.Broadcast.ArrayStyle{DArray},Tuple{Base.OneTo{Int64}},typeof(f),Tuple{Base.Broadcast.Extruded{DArray{Array{Float64,1},1,Array{Array{Float64,1},1}},Tuple{Bool},Tuple{Int64}}}}) at /data/gpfs/Users/j0280401/JULIA/.julia/packages/DistributedArrays/oz7Z/src/mapreduce.jl:29\r\n [6] similar(::Base.Broadcast.Broadcasted{Base.Broadcast.ArrayStyle{DArray},Tuple{Base.OneTo{Int64}},typeof(f),Tuple{Base.Broadcast.Extruded{DArray{Array{Float64,1},1,Array{Array{Float64,1},1}},Tuple{Bool},Tuple{Int64}}}}, ::Type{Array{Float64,1}}) at /data/gpfs/Users/j0280401/JULIA/.julia/packages/DistributedArrays/oz7Z/src/mapreduce.jl:24\r\n [7] copy at ./broadcast.jl:764 [inlined]\r\n [8] materialize(::Base.Broadcast.Broadcasted{Base.Broadcast.ArrayStyle{DArray},Nothing,typeof(f),Tuple{DArray{Array{Float64,1},1,Array{Array{Float64,1},1}}}}) at ./broadcast.jl:729\r\n [9] top-level scope at none:0\r\n```\r\nI suspect this is the redesign of the broadcast function, is this intended?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/JuliaParallel/DistributedArrays.jl/issues/comments/410187053","html_url":"https://github.com/JuliaParallel/DistributedArrays.jl/issues/159#issuecomment-410187053","issue_url":"https://api.github.com/repos/JuliaParallel/DistributedArrays.jl/issues/159","id":410187053,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDE4NzA1Mw==","user":{"login":"andreasnoack","id":505001,"node_id":"MDQ6VXNlcjUwNTAwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/505001?v=4","gravatar_id":"","url":"https://api.github.com/users/andreasnoack","html_url":"https://github.com/andreasnoack","followers_url":"https://api.github.com/users/andreasnoack/followers","following_url":"https://api.github.com/users/andreasnoack/following{/other_user}","gists_url":"https://api.github.com/users/andreasnoack/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasnoack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasnoack/subscriptions","organizations_url":"https://api.github.com/users/andreasnoack/orgs","repos_url":"https://api.github.com/users/andreasnoack/repos","events_url":"https://api.github.com/users/andreasnoack/events{/privacy}","received_events_url":"https://api.github.com/users/andreasnoack/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T08:41:26Z","updated_at":"2018-08-03T08:41:26Z","author_association":"MEMBER","body":"No. I'm pretty sure this is a bug. The broadcasting code in Base has changed a lot from 0.6 to 0.7. Will try to look into this next week."}}
{"actor":{"display_login":"andreasnoack"}}