•
•
•
•
•
•
•
2
•
•
•
•
•
•
•
•
•
4
•
•
•
•
•
5
•
•
•
•
•
•
•
x = 10
function foo(x)
return x^2 + 2x + 1
end
for i=1:100
a = foo(i)
println(a)
end
•
•
•
11
•
•
•
https://juliacomputing.com/case-studies/thomas-sargent.html 12
•
https://juliacomputing.com/case-studies/ny-fed.html 13
•
•
•
•
https://juliacomputing.com/case-studies/nature.html 14
•
•
https://juliacomputing.com/case-studies/ibm.html 15
•
•
https://juliacomputing.com/case-studies/intel-astro.html 16
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
50
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
https://github.com/svaksha/Julia.jl/blob/master/AI.md
•
•
•
•
•
•
•
•
•
•
•
•
•
76
•
•
@parallel for i in 1:10000
# do something
end
result = @parallel (+) for i in 1:10000
y = f(i)
y
end
results = @parallel (vcat) for i in 1:10000
y = f(i)
[y]
end
•
args = [i for i in 1:1000]
result = pmap(heavy_work, args)
•
•
future = remotecall(rand, 2, 1000, 1000)
result = fetch(future)
future = @spawnat 2 rand(1000, 1000)
result = fetch(future)
future = @spawn rand(1000, 1000)
result = fetch(future)
future = remotecall(rand, 2, 1000, 1000)
result = fetch(future)
•
https://juliacomputing.com/press/2017/05/25/github-top-ten.html
https://juliohm.github.io/science/where-are-the-julians/
•
•
•
•
•
•
•
•

20170807 julia的簡單而高效資料處理