arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.18170cs.PLphysics.data-an
收藏

桥接世界:在科学计算中实现Julia与Python的语言互操作性

Bridging Worlds: Achieving Language Interoperability between Julia and Python in Scientific Computing

Ianna Osborne, Jim Pivarski, Jerry Ling

AI总结:

本文探讨了在科学计算中实现Julia与Python互操作性的方法,通过解决数组数据结构和内存管理等关键问题,实现了从Python调用Julia的性能提升。

摘要:

在科学计算领域,,Julia和Python已成为强大的工具。在High Energy Physics (HEP) 数据分析背景下,虽然Python传统上备受青睐,但将遗留软件迁移至Julia具有充分的理由。本文重点关注语言互操作性,具体探讨笨拙的数组数据结构如何能弥合Julia与Python之间的鸿沟。文章深入探讨了内存管理、数据缓冲区拷贝和依赖处理等关键考量因素。本文详细介绍了通过从Python调用Julia及使用Julia的PyCall.jl所实现的性能提升,特别针对涉及大规模数组的密集型数组计算。文中还讨论了在实现互操作性的科学计算领域中固有的优势与挑战。

英文摘要:

In the realm of scientific computing, both Julia and Python have established themselves as powerful tools. Within the context of High Energy Physics (HEP) data analysis, Python has been traditionally favored, yet there exists a compelling case for migrating legacy software to Julia. This article focuses on language interoperability, specifically exploring how Awkward Array data structures can bridge the gap between Julia and Python. The talk offers insights into key considerations such as memory management, data buffer copies, and dependency handling. It delves into the performance enhancements achieved by invoking Julia from Python and vice versa, particularly for intensive array-oriented calculations involving large-scale, though not excessively dimensional, arrays of HEP data. The advantages and challenges inherent in achieving interoperability between Julia and Python in the domain of scientific computing are discussed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑