this post was submitted on 15 Aug 2023
15 points (100.0% liked)

Rust

6005 readers
5 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

A comment from the author /u/ClayTownR on reddit:

The original reason I got into garbage collectors (a long time ago, and long forgotten now) was that I was implementing a runtime for a scripted language. When I originally wrote it, I had to do some manual finagling with weak references to ensure that I didn't leak any memory.

In general, the main uses for a GC in rust would be interpreters for other GC languages and working with graphs.

you are viewing a single comment's thread
view the rest of the comments

It turns out that graphs are really useful for UIs, so hopefully this makes stateful UIs nicer to work with.

I miss the early days of Rust that included GC'd types.