arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1808.03370cs.PLcs.CLcs.MS
收藏

Julia中的快速灵活函数调度

Fast Flexible Function Dispatch in Julia

Massachusetts Institute of Technology(麻省理工学院);Julia Computing;TileDB;Capital One Financial(第一资本金融公司)

Jeff Bezanson, Jake Bolewski, Jiahao Chen

摘要:

对于程序设计语言来说,技术计算是一个具有挑战性的应用领域。这一点可以从该领域中异常大量的专用语言(例如MATLAB、R)以及常见软件栈的复杂性中得到证明,这些软件栈通常涉及多种语言和自定义代码生成器。我们认为这最终是由于该领域的关键特征:高度复杂的运算符,需要广泛的代码专业化以提高性能,以及对允许生产性实验的许可高级编程风格的需求。Julia语言试图为这种编程提供一种更有效的结构,允许程序员使用参数类型上的动态多分派来表达复杂的多态行为。这种范式所允许的扩展和重用形式已经证明对技术计算很有价值。我们报告这种方法如何使领域专家表达有用的抽象,同时提供了一个自然的路径,以更好的性能为高层次的技术代码。

英文摘要:

Technical computing is a challenging application area for programming languages to address. This is evinced by the unusually large number of specialized languages in the area (e.g. MATLAB, R), and the complexity of common software stacks, often involving multiple languages and custom code generators. We believe this is ultimately due to key characteristics of the domain: highly complex operators, a need for extensive code specialization for performance, and a desire for permissive high-level programming styles allowing productive experimentation. The Julia language attempts to provide a more effective structure for this kind of programming by allowing programmers to express complex polymorphic behaviors using dynamic multiple dispatch over parametric types. The forms of extension and reuse permitted by this paradigm have proven valuable for technical computing. We report on how this approach has allowed domain experts to express useful abstractions while simultaneously providing a natural path to better performance for high-level technical code.

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

↑