Garbage Collection Makes Rust Easier to Use: A Randomized Controlled Trial of the Bronze Garbage Collector

10/03/2021
by   Michael Coblenz, et al.
0

Rust is a general-purpose programming language that is both type- and memory-safe. Rust does not use a garbage collector, but rather achieves these properties through a sophisticated, but complex, type system. Doing so makes Rust very efficient, but makes Rust relatively hard to learn and use. We designed Bronze, an optional, library-based garbage collector for Rust. To see whether Bronze could make Rust more usable, we conducted a randomized controlled trial with volunteers from a 633-person class, collecting data from 428 students in total. We found that for a task that required managing complex aliasing, Bronze users were more likely to complete the task in the time available, and those who did so required only about a third as much time (4 hours vs. 12 hours). We found no significant difference in total time, even though Bronze users re-did the task without Bronze afterward. Surveys indicated that ownership, borrowing, and lifetimes were primary causes of the challenges that users faced when using Rust.

READ FULL TEXT

page 6

page 8

research
03/27/2018

Language-integrated provenance in Haskell

Scientific progress increasingly depends on data management, particularl...
research
06/19/2023

Cases of EFL Secondary Students' Prompt Engineering Pathways to Complete a Writing Task with ChatGPT

ChatGPT is a state-of-the-art (SOTA) chatbot. Although it has potential ...
research
06/21/2019

Design and analysis considerations for a sequentially randomized HIV prevention trial

TechStep is a randomized trial of a mobile health interventions targeted...
research
10/08/2019

Estimands and Inference in Cluster-Randomized Vaccine Trials

Cluster-randomized trials are often conducted to assess vaccine effects....
research
04/16/2021

A Gradual Type System for Elixir

Elixir is a functional programming language with dynamic typing. We prop...
research
10/09/2020

Large-scale randomized experiment reveals machine learning helps people learn and remember more effectively

Machine learning has typically focused on developing models and algorith...
research
06/10/2020

Objective Caml for Multicore Architectures

Objective Caml is a famous dialect of the ML family languages. It is wel...

Please sign up or login with your details

Forgot password? Click here to reset