Does the Bronze Garbage Collector Make Rust Easier to Use? A Controlled Experiment

Does the Bronze Garbage Collector Make Rust Easier to Use? A Controlled Experiment.
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 in full here:

This thread was posted by one of our members via one of our news source trackers.

2 Likes

Corresponding tweet for this thread:

Share link for this tweet.

2 Likes

In short, no. A terribly unsafe GC (in rust terms) that allows you to bypass most of the safety of rust does not help you learn rust.

2 Likes

Why would someone use Rust if they’re using it with a library based garbage collector?

2 Likes

Because apparently “managing aliasing correctly” is a hard thing for newbie…

It may not be the easiest thing sure, but it’s an absolutely necessary skill, in every language, GC or not, and screwing it up is how you get, say ConcurrentModificationExceptions all over in java, or random data corruption in… well… anything with threads, etc… Getting aliasing and ownership correct, especially by a compiler that can actually check it for you so you can learn how to do it right from the beginning, is a much larger boon than just learning the syntax but not the concepts.

2 Likes