Hacker News new | ask | show | jobs
by adgjlsfhk1 267 days ago
I translated the jacobi example to julia, and it does seem to address every one of his gripes with Python.
1 comments

I think his main point is about strict typing in Fortran. You can add type annotations in Julia but it's almost an anti-pattern if you don't need them e.g. for dispatch. In any case the type annotations in these examples would be quite unnecessary, unlike in Fortran (where as I understand you can at best enable implicit typing but then must use variable names with specific patterns).
Numerical linear algebra is the exemplar killer app for multiple dispatch; not exploiting it would be a waste.
I would argue that the strict typing in Fortran is actually a significant hindrance. there's nothing about any of these algorithms that requires double precision (or even contiguous storage), so why should the algorithm randomly restrict it? Annotations of rank (e.g. AbstractMatrix in julia) help document what the code does, but the strict annotations of Fortran are restrictions without value.