Abstract
The Julia programming language has evolved into a modern alternative to fill existing gaps in scientific computing and data science applications. Julia leverages a unified and coordinated single-language and ecosystem paradigm and has a proven track record of achieving high performance without sacrificing user productivity. These aspects make Julia a viable alternative to high-performance computing's (HPC's) existing and increasingly costly many-body workflow composition strategy in which traditional HPC languages (e.g., Fortran, C, C++) are used for simulations, and higher-level languages (e.g., Python, R, MATLAB) are used for data analysis and interactive computing. Julia's rapid growth in language capabilities, package ecosystem, and community make it a promising universal language for HPC. This paper presents the views of a multidisciplinary group of researchers from academia, government, and industry that advocate for an HPC software development paradigm that emphasizes developer productivity, workflow portability, and low barriers for entry. Crucially, we believe that Julia can provide a feasible and less costly approach to programming scientific applications and workflows that target HPC facilities.
Introduction: The Two-Language Problem
For decades, High-Performance Computing (HPC) has been characterized by the "two-language problem." Researchers typically develop performance-critical simulation kernels in low-level languages like Fortran, C, or C++, while utilizing high-level languages such as Python or MATLAB for data analysis, visualization, and workflow orchestration. This dichotomy introduces significant development overhead, as code must often be rewritten or wrapped to bridge the gap between simulation and analysis. Furthermore, the boundary between these languages often becomes a performance bottleneck. As the community moves toward exascale computing and increasingly heterogeneous hardware (CPUs and GPUs from various vendors), managing these multi-language workflows becomes increasingly fragile and costly.
Technical Pillars of Julia in HPC
Julia is designed as a "universal language" to bridge this performance-productivity gap. Several architectural features enable its success in HPC environments:
- Just-In-Time (JIT) Compilation: Utilizing the LLVM compiler framework, Julia generates efficient native code at runtime, enabling optimizations that are often unavailable to purely static languages.
- Multiple Dispatch: This core design feature allows function behavior to be defined across different combinations of argument types. It facilitates extreme code reusability and "composability," allowing generic solvers to work with custom GPU array types without modification.
- The "JLL" Ecosystem: Tools like
BinaryBuilder.jlautomate the deployment of complex C/Fortran binary dependencies across diverse HPC architectures, significantly improving reproducibility. - Zero-Overhead Interoperability: Julia’s
ccallinterface allows direct calls to C and Fortran functions without the heavy wrapping required by other high-level languages. Benchmarks showccallis 42x to 100x faster than Python’spybind11for fine-grained tasks.
Performance and Scalability
Julia's ability to scale to massive supercomputing resources has been demonstrated in several high-profile projects. The Celeste project, an astronomical image analysis tool, achieved a milestone of 1.54 petaflops using 1.3 million threads on 9,300 nodes of the Cori supercomputer.
Beyond peak performance, Julia excels in parallel efficiency. A Julia-based 3D multiphysics solver demonstrated greater than 95% weak scaling efficiency on up to 1,024 NVIDIA P100 GPUs, maintaining a performance edge over traditional CUDA C implementations in large-scale tests.
Community Adoption and Ecosystem
The shift toward Julia is reflected in growing community interest. A survey conducted at the National Energy Research Scientific Computing Center (NERSC) revealed that 44% of respondents plan to use Julia in the future. This interest is driven by Julia's "all the way down" philosophy, where high-performance libraries are written in Julia itself, allowing researchers to optimize the entire software stack without switching languages. This approach is particularly suited for "cross-site" workflows where data moves between experimental facilities and supercomputing centers.
Challenges and Future Outlook
Despite its promise, several hurdles remain for widespread Julia adoption in HPC. "Startup latency" or "time-to-first-plot" is a known issue, as HPC filesystems can struggle with the many small files associated with Julia packages. Additionally, while support for ARM and major GPUs is maturing, historical gaps in vendor support have slowed adoption at specific sites.
Future work focuses on improving compiler stability, reducing startup times, and expanding educational resources to help researchers navigate the learning curve of performance engineering in Julia. As supercomputing centers prepare for the exascale era, diversifying investments into productive, high-performance languages like Julia is crucial for the next decade of scientific discovery.
Summary updated