I really wish I could get Rust with a Gc<type> container like the RefCell<type> container you've got now. (Or, even better: Rust, plus a Lua- or js-style integrated dynamic language, and the GC for the scripting language uses the same GC as Gc<type>)
-
-
-
@ManishEarth has been tinkering away with something like that for a while https://github.com/Manishearth/rust-gc … I was looking at shenanigans for a copying GC using a similar scheme too but gave up for reasons I've forgotten. - 7 more replies
New conversation -
-
-
If anything, rust makes me appreciate GC more
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Works in both directions - I'd also sometimes love to see Rust-like ownership semantics in JavaScript without losing GC for generic cases.
-
These are solid takes.
End of conversation
New conversation -
-
-
I never realized I liked GC so much until I started learning Rust.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This nice (2005) paper https://www.cs.virginia.edu/~cs415/reading/bacon-garbage.pdf … shows that tracing GC and refcount are dual. Languages seem very good at one or the other. I wonder if there exists a principled language-level approach for combining them. [edited]pic.twitter.com/9COsgIvQFe
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This is the mature comment I've seen about GC. Every tool has it's advantages and disadvantages, and you're right about GC being one tool in the toolbox of many.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Thinking in terms of garbage is useful. With my dev hat on, I want everything to be part of an obvious cycle-free tree. But when I get creative (like with a game) it can be liberating to toss up objects somewhat haphazardly w/o stopping to nail down ownership details right away.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I think GC is good at making Functional Programming high performance, and also GC may help a lot in any asynchronous world (because stack allocation is not possible there). Why not create GC containers in Rust, so that developer for example can create one for each thread?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.