arXiv · 2412.18885
Aspect-oriented Programming with Julia
Abstract
This paper proposes integrating Aspect-oriented Programming (AOP) into Julia, a language widely used in scientific and High-Performance Computing (HPC). AOP enhances software modularity by encapsulating cross-cutting concerns, such as logging, caching, and parallelizing, into separate, reusable aspects. Leveraging Julia's powerful metaprogramming and abstract syntax tree (AST) manipulation capabilities, we introduce AspectJulia, an AOP framework designed to operate within Julia's runtime environment as a package. AspectJulia enables developers to define and apply aspects seamlessly, leading to more modular, maintainable, and adaptable code. We detail the implementation of AspectJulia and present diverse use cases, ranging from HPC and scientific computing to business applications, demonstrating its effectiveness in managing cross-cutting concerns. This integration simplifies application development and improves the adaptability of existing Julia modules and packages, paving the way for more efficient and maintainable software systems.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Osamu Ishimura, Yoshihide Yoshimoto. 2024-12-25. Aspect-oriented Programming with Julia. https://arxiv.org/abs/2412.18885
Cite the original work for its findings. Save a collection to share your selection of sources.