RustViz: Visualização Interativa de Propriedade e Empréstimo
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.
Resumo
O Rust é uma linguagem de programação de sistemas que garante a segurança da memória sem a necessidade de um coletor de lixo, rastreando estaticamente eventos de propriedade e empréstimo. As regras associadas são sutis e únicas entre as linguagens de programação da indústria, o que pode tornar o aprendizado do Rust mais desafiador. Motivados pelos desafios enfrentados por aprendizes do Rust, estamos desenvolvendo o RustViz, uma ferramenta que permite aos professores gerar uma linha do tempo interativa representando eventos de propriedade e empréstimo para cada variável em um exemplo de código Rust. Essas visualizações têm como objetivo ajudar aprendizes do Rust a desenvolver uma compreensão da propriedade e do empréstimo por meio de exemplos. Este artigo apresenta o RustViz por meio de exemplos, mostra como os professores podem utilizá-lo para gerar visualizações, descreve objetivos de aprendizado e propõe um estudo projetado para avaliar o RustViz com base nesses objetivos de aprendizado.
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.