Threads/Parallel

. broadcasting is very new. In fact, . fusion of old operators like .+ only started fusing on Julia’s v0.6 master yesterday. Threading is still experimental. However, with threading becoming more stable, and with . broadcasting now very solid, I am pretty sure this is coming soon.

Until then, the easiest way is just to loop and add Threads.@threads, i.e. instead of y.=f.(x), do

Threads.@threads for i in eachindex(x)
  y[i] = f(x[i])
end

Or you can use a multiprocessing construct like pmap.