4 ms·
To me julia is the perfect mathematical toy language with great fundamentals and prospects of becoming a serious language once the compile time issues are fixed
by singularity2001 4y ago
To me julia is the perfect mathematical toy language with great fundamentals and prospects of becoming a serious language once the compile time issues are fixed.
It does so many things very right and always from first principles, not ad hoc (ad hacks).
some random examples that I love
sum(xs...) = reduce(+, xs)
julia > (6ft + 1km) * 1km/s
1002 m s⁻¹
julia> 'a' in "abc"
true
180° + π == 2π
map(x -> 2x, [2,4,6,8]) == [2,4,6,8].*2
julia> ⊕(x, y) = x+y
julia> 1⊕2
3
∑(xs...)=fold(xs,+)
julia> ∑(2,4,6,8)
20
∑(xs)=fold(xs,+)
julia> ∑([2 4 6 8])
20