RustViz: Visualización interactiva de la propiedad y el préstamo
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.
Resumen
Rust es un lenguaje de programación de sistemas que garantiza la seguridad de la memoria sin necesidad de un recolector de basura mediante el seguimiento estático de eventos de propiedad y préstamo. Las reglas asociadas son sutiles y únicas entre los lenguajes de programación de la industria, lo que puede hacer que aprender Rust sea más desafiante. Motivados por los desafíos que enfrentan los aprendices de Rust, estamos desarrollando RustViz, una herramienta que permite a los docentes generar una línea de tiempo interactiva que representa los eventos de propiedad y préstamo para cada variable en un ejemplo de código Rust. Estas visualizaciones están destinadas a ayudar a los aprendices de Rust a desarrollar una comprensión de la propiedad y el préstamo mediante ejemplos. Este documento presenta RustViz mediante ejemplos, muestra cómo los docentes pueden utilizarlo para generar visualizaciones, describe los objetivos de aprendizaje y propone un estudio diseñado para evaluar RustViz basándose en estos objetivos de aprendizaje.
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.