RustViz: 所有とバローイングのインタラクティブな可視化
RustViz: Interactively Visualizing Ownership and Borrowing
RustViz: Interactively Visualizing Ownership and Borrowing
@misc{luo2020rustviz,
title = {RustViz: Interactively Visualizing Ownership and Borrowing},
author = {Gongming (Gabriel) Luo and Vishnu Reddy and Marcelo Almeida and Yingying Zhu and Ke Du and Cyrus Omar},
year = {2020},
eprint = {2011.09012},
archivePrefix = {arXiv},
primaryClass = {cs.PL},
url = {https://arxiv.org/abs/2011.09012}
}
Luo, G. (., Reddy, V., Almeida, M., Zhu, Y., Du, K., & Omar, C. (2020). RustViz: Interactively Visualizing Ownership and Borrowing [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.09012
LUO G(, REDDY V, ALMEIDA M, et al. RustViz: Interactively Visualizing Ownership and Borrowing[EB/OL]. (2020-11-18)[2026-11-29]. https://arxiv.org/abs/2011.09012.
要旨
メモリ管理のガベージコレクションを必要とせず、静的に所有権とバインディングイベントを追跡することでメモリ安全性を保証するシステムプログラミング言語である 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.