StaticArrays and allocations

I came from Fortran, and in Fortran (at least the one I knew) you don’t have any control over these things. Everything looks as if it was mutable, but the compilers will decide that without the user knowing about what is going on (and sometimes in a compiler-flag dependent way). Coming from Fortran, where every type is declared, one initially feels unsafe for not annotating types, then one makes mistakes and get type instabilities, and finally one gets the way around it and starts using Julia as one should. Not having to annotate every type becomes liberating at the end, not mentioning the fact that functions become generic, thus more useful. And we learn where to focus our attention to get performant code, and where all that obsessive control we had in the other language was counterproductive. At the end, not because of the possibilities of each language in general, but because the easiness of use, explore, test, benchmark, my codes are faster in Julia than what I achieved in Fortran.

10 Likes