Rust Memory Management: Ownership vs. Reference Counting

36 points - last Saturday at 9:20 AM

Source

Comments

baranul today at 10:18 AM
Rust 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.
smallstepforman today at 11:05 AM
This is all well and dandy for some usage scenarios but breaks in others, eg. scene graphs and GUI's.

A scene graph needs 2 mutable references, and has nothing to do with ownership. Same issue exists with GUI's. The pattern that Rust forces is to always request a reference, which incurs a performance penalty while retrieving the same reference again and again and again.

ellie_kim98 last Saturday at 9:46 AM
[dead]
jonathanstrange today at 8:52 AM
[flagged]