Re:Julia: Performance Tips
by leephillips on Friday February 27, 2026 @09:14AM
(#47180680)
“All other languages” such as Fortran, etc.?
Why are you recalculating indices?
I don’t think that any Julia program I’ve ever written would need to change if Julia adopted 0-based tomorrow. You don’t typically write C-style loops in Julia; you use array functions and operators, and if you need to iterate you write `for i in array ...`.
“ergonomics matter”
Definitely. Ergonomics is the main reason I enjoy Julia. Performance is a bonus.
Why are you recalculating indices?
I don’t think that any Julia program I’ve ever written would need to change if Julia adopted 0-based tomorrow. You don’t typically write C-style loops in Julia; you use array functions and operators, and if you need to iterate you write `for i in array ...`.
“ergonomics matter”
Definitely. Ergonomics is the main reason I enjoy Julia. Performance is a bonus.