按年被提到
20212021 · 2 次2026
编程语言与编译器›类型系统与函数式语言·arXiv:2109.01950 · cs.PL

Type Stability in Julia: Avoiding Performance Pathologies in JIT Compilation (Extended Version)

Artem Pelenitsyn, Julia Belyakova, Benjamin Chung, Ross Tate, Jan Vitek · 2021
开始阅读 ↗PDFalphaXiv 讨论
被提及 · 2 人首次 2021-12-08 · 最近 2022-04-27
2不同的人
2活跃月份
3讨论串
13被引(OpenAlex)
arXiv 摘要(候选层不写导读)

As a scientific programming language, Julia strives for performance but also provides high-level productivity features. To avoid performance pathologies, Julia users are expected to adhere to a coding discipline that enables so-called type stability. Informally, a function is type stable if the type of the output depends only on the types of the inputs, not their values. This paper provides a formal definition of type stability as well as a stronger property of type groundedness, shows that groundedness enables compiler optimizations, and proves the compiler correct. We also perform a corpus analysis to uncover how these type-related properties manifest in practice.

候选层:至少 2 个不同的人、在 2 个不同月份提到过,还没到主书架的 3 人 3 个月。没有做立场标注,所以只写“被提及”。

HN 书评

推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及
评论ChrisRackauckas · 2021-12

“That is not a very charitable characterization of the position of multiple dispatch in Julia. It's not something that's optional: multiple dispatch is essential for the performance that Julia is looking to achieve. If you notice where acceleration DSLs tend to have trouble, you'll notice that it's always at the point where you get beyond built-in float pr…”

Trade-Offs in Automatic Differentiation: TensorFlow, PyTorch, Jax, and Julia原评论 ↗
评论ChrisRackauckas · 2022-04

“Or more directly, the property of type groundedness + multiple dispatch allows for devirtualization of dispatches to get static-like performance in a dynamic language. That was the main design principle, which was a conjecture from Jeff's thesis later proven in a type-theoretic way by Jan Vitek's group. https://arxiv.org/pdf/2109.01950.pdf”

Type-Based Optimizations in the JIT原评论 ↗
被提交为 story · 1 次