多语言 Jet 寻找
Polyglot Jet Finding
AI总结:
本文以 HEP 的 \akt\\ jet finding 聚类算法为基准,比较 Python、numpy/numba、Julia 与 Fastjet 的 C++ 实现在性能、编码易用性及代码可持续性上的差异。
摘要:
对于像 HEP 这样的大型社区而言,评估新的计算语言需要比较语言行为、生态系统以及与其他语言交互的许多方面。在本文中,我们使用一种常见但并不简单的 HEP 算法——用于 jet finding 的 \akt\\ 聚类算法,对若干语言进行比较。我们具体比较了以 Python(纯 Python 以及使用 numpy 和 numba 加速的版本)和 Julia 实现的算法,并以 Fastjet 中 C++ 的参考实现为基准。除了实现速度之外,我们还描述了语言对编码者的易用性,以及达到最佳性能所需付出的努力,这些因素会直接影响代码的可读性和可持续性。
英文摘要:
The evaluation of new computing languages for a large community, like HEP, involves comparison of many aspects of the languages' behaviour, ecosystem and interactions with other languages. In this paper we compare a number of languages using a common, yet non-trivial, HEP algorithm: the \akt\ clustering algorithm used for jet finding. We compare specifically the algorithm implemented in Python (pure Python and accelerated with numpy and numba), and Julia, with respect to the reference implementation in C++, from Fastjet. As well as the speed of the implementation we describe the ergonomics of the language for the coder, as well as the efforts required to achieve the best performance, which can directly impact on code readability and sustainability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。