|
|
|
|
|
by brrrrrm
1878 days ago
|
|
yes! Julia does compile this way. Julia emphasizes JIT compilation based on runtime types rather than runtime values. I couldn't get runtime captures to work, e.g. a = 2
function f(n)
return n * a
end
println(f(4))
@code_llvm f(4)
@code_native f(4)
|
|