RustViz: Interactively Visualizing Ownership and Borrowing

Gongming, Luo, Vishnu Reddy, Marcelo Almeida, Yingying Zhu +2 more
11/18/2020
cs.PL

Official code: rustviz/rustviz (2,853 stars, Rust, MIT, Rust, last commit 2026-11-18).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

rustviz/rustvizOfficial100%
RustMIT

Interactively Visualizing Ownership and Borrowing for Rust

2,85375Rust, HTMLOct 5, 20202 weeks agoMIT

Similar Papers

Cite this paper

@article{gongming2020rustviz,
  title  = {RustViz: Interactively Visualizing Ownership and Borrowing},
  author = {Gongming and Luo and Vishnu Reddy and Marcelo Almeida and Yingying Zhu and Ke Du and Cyrus Omar},
  year   = {2020},
  eprint = {2011.09012},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.09012}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.09012.svg)](https://codeofpaper.com/paper/2011.09012)

Discussion