按年被提到
20242025 · 3 次2026
编程语言与编译器›编译器与运行时优化·arXiv:2410.19146 · physics.comp-ph

Rewrite it in Rust: A Computational Physics Case Study

Willow Veytsman, Shuang Zhai, Chen Ding, Adam B. Sefkow · 2024
开始阅读 ↗PDFalphaXiv 讨论
被提及 · 2 人首次 2025-01-11 · 最近 2025-03-01
2不同的人
2活跃月份
3讨论串
2被引(OpenAlex)
arXiv 摘要(候选层不写导读)

Surveys of computational science show that many scientists use languages like C and C++ in order to write code for scientific computing, especially in scenarios where performance is a key factor. In this paper, we seek to evaluate the use of Rust in such a scenario, through implementations of a physics simulation in both C++ and Rust. We also create a parallel version of our Rust code, in order to further explore performance as well as parallel code complexity. Measuring performance as program runtime, we find that Rust can offer better performance than C++, with some test cases showing as much as a 5.6$\times$ performance increase, and that parallel code in Rust can further improve performance while being easy to write safely. Finally, we provide some preliminary profiling to better understand the difference between the way our implementations perform.

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

HN 书评

没有评论直接链到它;下面是它被提交的讨论串里回复最多的评论(不计入统计)
讨论串评论aiono · 2025-01

“I am surprised that it didn't get any attention here. I have skimmed the paper, and it seems that they got 1.6x faster with Rust rewrite that is more or less the same code. Both versions are sequential code. And then changed Rust to be parallel and got 5.6x faster. They emphasize that converting to parallel was pretty straightforward because all they did …”

Rewrite It in Rust: A Computational Physics Case Study原评论 ↗
被提交为 story · 3 次