RustViz:交互式可视化所有权和借款
RustViz: Interactively Visualizing Ownership and Borrowing
摘要:
Rust是一种系统程序设计语言,它通过静态跟踪所有权和借用事件来保证内存安全,而不需要垃圾收集器。相关的规则在行业程序设计语言中是微妙和独特的,这可能使学习Rust更具挑战性。受到Rust学习者面临的挑战的激励,我们正在开发RustViz,这是一个允许教师生成交互式时间轴的工具,它描述了Rust代码示例中每个变量的所有权和借用事件。这些可视化旨在帮助Rust学习者通过示例来理解所有权和借用。本文通过示例介绍了RustViz,展示了教师如何使用它来生成可视化,描述了学习目标,并提出了一项旨在根据这些学习目标评估RustViz的研究。
英文摘要:
Rust is a systems programming language that guarantees memory safety without the need for a garbage collector by statically tracking ownership and borrowing events. The associated rules are subtle and unique among industry programming languages, which can make learning Rust more challenging. Motivated by the challenges that Rust learners face, we are developing RustViz, a tool that allows teachers to generate an interactive timeline depicting ownership and borrowing events for each variable in a Rust code example. These visualizations are intended to help Rust learners develop an understanding of ownership and borrowing by example. This paper introduces RustViz by example, shows how teachers can use it to generate visualizations, describes learning goals, and proposes a study designed to evaluate RustViz based on these learning goals.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。