arXiv · 2109.01950
Type Stability in Julia: Avoiding Performance Pathologies in JIT Compilation (Extended Version)
Abstract
As a scientific programming language, Julia strives for performance but also provides high-level productivity features. To avoid performance pathologies, Julia users are expected to adhere to a coding discipline that enables so-called type stability. Informally, a function is type stable if the type of the output depends only on the types of the inputs, not their values. This paper provides a formal definition of type stability as well as a stronger property of type groundedness, shows that groundedness enables compiler optimizations, and proves the compiler correct. We also perform a corpus analysis to uncover how these type-related properties manifest in practice.
Explore related subjects
Keep this discovery
Artem Pelenitsyn, Julia Belyakova, Benjamin Chung, Ross Tate, Jan Vitek. 2021-09-04. Type Stability in Julia: Avoiding Performance Pathologies in JIT Compilation (Extended Version). https://doi.org/10.1145/3485527
Cite the original work for its findings. Save a collection to share your selection of sources.