project-ideas icon indicating copy to clipboard operation
project-ideas copied to clipboard

ref counting

Open burner opened this issue 6 years ago • 8 comments

build a reference counting solution for D

burner avatar May 11 '19 13:05 burner

http://mir-algorithm.libmir.org/mir_rc_array.html http://mir-algorithm.libmir.org/mir_rc_ptr.html (with polymorphism) the types will get allocators support

9il avatar May 11 '19 13:05 9il

Related: https://github.com/atilaneves/automem

JinShil avatar May 12 '19 08:05 JinShil

CC @RazvanN7. Maybe you could give a brief summary of the current status and problems?

wilzbach avatar May 12 '19 11:05 wilzbach

I think we don't need the vision label. This issue is connected to the @nogc milestone. IMO this is better to keep track of how "visions" are associated with issues.

burner avatar May 12 '19 13:05 burner

Exactly what would this entail? A -refcount mode that adds RefCounted! to every heap-allocated object?

CrazyPython avatar Sep 06 '19 15:09 CrazyPython

Can as ARC to default memory managerment?

zoujiaqing avatar Feb 22 '20 23:02 zoujiaqing

Can as ARC to default memory managerment?

Can you be a bit more specific, I have a hard time following you.

burner avatar Feb 24 '20 10:02 burner

I think swift using ARC and has more specific :) https://docs.swift.org/swift-book/LanguageGuide/AutomaticReferenceCounting.html

zoujiaqing avatar Mar 02 '20 14:03 zoujiaqing