The basic number types in Julia are designed to closely follow the hardware on which it runs. Integers and floats, therefore, have the same behavior as that which is defined in the CPU hardware, and operations on them run at hardware speeds. The decision to have default numeric types that are as close to the metal as possible is something that contributes to the C-like speed of Julia.
Numbers in Julia, their layout, and storage
Integers
Integers in Julia are stored as system integers, which means that they are values that the CPU considers to be integers. The internal representation is what you would expect in C. Their default size, as in C, depends on the size of the CPU/OS on which Julia runs. On a 32-bit OS, the integers...