News for hackers. Stuff that matters.
Re:Rust and the Blub Paradox by pekk on Saturday January 23, 2016 @03:23PM (#10959902)
I have a vague question: how can you avoid putting emphasis on memory management, to the extent Rust does, without introducing mandatory garbage collection?
Re:Rust and the Blub Paradox by tormeh on Saturday January 23, 2016 @07:14PM (#10960796)
My understanding is that Rust is, to be wildly inaccurate, kind of like a language without a heap. Normal languages manage stack memory without GC. Rust kind of does the same: When deleting a stack frame, Rust deletes the objects created when on that stack frame, except when a reference is returned by the scope corresponding to the frame, in which case the "ownership" of the heap object is passed to the frame under the deleted-to-be frame.

Sort of. Don't cite me.

Re:Rust and the Blub Paradox by firebones on Sunday January 24, 2016 @10:15PM (#10965364)