The flexibility of Julia's type system, along with multiple dispatches, makes it easy to write code that is specialized for particular domains or situations. We've seen earlier how Julia's compiler will compile separate methods for different input types. So, for example, different methods may be compiled for adding integers or floats. But the real power comes in using the same principles in third-party libraries, or indeed, your own code.Â
Specialized array types
Static arrays
Julia's arrays are very powerful and can be used in a whole range of use cases. They can be used as mathematical constructs or containers of arbitrary objects. Operations on arrays are usually highly optimized. However, in situations...