arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.06640cs.SE
收藏

REVIS:一个用于Rust的错误可视化工具

REVIS: An Error Visualization Tool for Rust

Ruochen Wang, Molly Maclaren, Michael Coblenz

AI总结:

本文开发了VSCode扩展REVIS,用于可视化Rust中与生命周期相关的编译器错误,并初步评估了其对学生学习者的辅助效果。

摘要:

Rust是一种编程语言,它使用所有权的概念来保证内存安全,而无需使用垃圾收集器。然而,一些与所有权相关的错误信息可能难以理解和修复,特别是那些依赖于值生命周期的错误。为了帮助开发者修复与生命周期相关的错误,我们开发了REVIS,这是一个VSCode扩展,用于可视化与生命周期相关的Rust编译器错误。我们描述了该VSCode扩展的设计和实现,以及对其在Rust学生学习者中有效性的初步评估。尽管参与者人数太少,无法评估REVIS的有效性,但我们收集了有关参与者遇到的编译器错误的发生率和修复时间的数据。

英文摘要:

Rust is a programming language that uses a concept of ownership to guarantee memory safety without the use of a garbage collector. However, some error messages related to ownership can be difficult to understand and fix, particularly those that depend on value lifetimes. To help developers fix lifetime-related errors, we developed REVIS, a VSCode extension that visualizes lifetime-related Rust compiler errors. We describe the design and implementation of the VSCode extension, along with a preliminary evaluation of its efficacy for student learners of Rust. Although the number of participants was too low to enable evaluation of the efficacy of REVIS, we gathered data regarding the prevalence and time to fix the compiler errors that the participants encountered.

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

↑