dlang / project-ideas

Collection of impactful projects in the D ecosystem
36 stars 12 forks source link

ref counting #27

Open burner opened 5 years ago

burner commented 5 years ago

build a reference counting solution for D

9il commented 5 years ago

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

JinShil commented 5 years ago

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

wilzbach commented 5 years ago

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

burner commented 5 years ago

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.

CrazyPython commented 4 years ago

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

zoujiaqing commented 4 years ago

Can as ARC to default memory managerment?

burner commented 4 years ago

Can as ARC to default memory managerment?

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

zoujiaqing commented 4 years ago

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