Rust Memory Management: Ownership vs. Reference Counting
1–10 of 54 posts
Re: Rust Memory Management: Ownership vs. Reference Counting
#2Re: Rust Memory Management: Ownership vs. Reference Counting
#3Re: Rust Memory Management: Ownership vs. Reference Counting
#4[flagged]
Re: Rust Memory Management: Ownership vs. Reference Counting
#5Re: Rust Memory Management: Ownership vs. Reference Counting
#6[flagged]
Re: Rust Memory Management: Ownership vs. Reference Counting
#7[flagged]
I miss the clear distinction between exclusive access and shared access when I work in GC languages. Knowing clearly when you are allowed/expected to modify a value, and when you are expected to only read the value ends up being very useful and it has poisoned my brain when working in Python/JS/Go where some values are internally pointers and there's no standard to learn once for when a mutation is safe or if you sho…
Re: Rust Memory Management: Ownership vs. Reference Counting
#8Re: Rust Memory Management: Ownership vs. Reference Counting
#9Rust is becoming less special in this area. Languages such as Dlang, Vlang, and Julia have added optional ownership and borrowing. As these offerings are optional, many can see this as greater programmer freedom to decide what to use for their projects, with languages that are easier to use or read.
Re: Rust Memory Management: Ownership vs. Reference Counting
#10Rust is becoming less special in this area. Languages such as Dlang, Vlang, and Julia have added optional ownership and borrowing. As these offerings are optional, many can see this as greater programmer freedom to decide what to use for their projects, with languages that are easier to use or read.
Isn't the crux that Rust does those things without a garbage collector, that's the novel part? Someone correct me if I'm wrong (likely), but I think all those languages have garbage collectors, which Rust doesn't.