Optimized Python is as good as Julia

If somebody asks whether it is worth to learn another computer language, then usually practical reasons are not the only ones, and fun factor is an important one. For some fun, see seven lines of Julia

As for Python+Numpy vs. Julia for maths. Surely, one gets used to the ubiquitous np. suffix, still it is not good for readability. On the Julia side, the acceptance of unicode makes it possible to write concise readable math:

function i(i₀, ν, ϕ, t)
    ω = π*ν
    return i₀*sin(ω*t + ϕ)
end

– you know how the equivalent of it would look in Python.

2 Likes