www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - ARC in D

reply eugene <egordeev18 gmail.com> writes:
hello everyone,
is there any kind of smart pointers or something in D instead of 
GC?
Jan 02 2017
next sibling parent reply Stefan Koch <uplink.coder googlemail.com> writes:
On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote:
 hello everyone,
 is there any kind of smart pointers or something in D instead 
 of GC?
It's coming!
Jan 02 2017
parent reply eugene <egordeev18 gmail.com> writes:
On Monday, 2 January 2017 at 15:49:47 UTC, Stefan Koch wrote:
 On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote:
 hello everyone,
 is there any kind of smart pointers or something in D instead 
 of GC?
It's coming!
is it coming for real, or just for the record?
Jan 02 2017
parent reply Jonathan M Davis via Digitalmars-d <digitalmars-d puremagic.com> writes:
On Monday, January 02, 2017 16:07:26 eugene via Digitalmars-d wrote:
 On Monday, 2 January 2017 at 15:49:47 UTC, Stefan Koch wrote:
 On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote:
 hello everyone,
 is there any kind of smart pointers or something in D instead
 of GC?
It's coming!
is it coming for real, or just for the record?
Walter has been making improvements to safe so that he can implement some form of safe reference counting in the language. Exactly what that will look like or when it will be done is an open question (I don't even know how much Walter knows about that), but work _is_ being done specifically with language supported ref-counting in mind. So, is it coming? Yes. Is it coming soon? Maybe. I wouldn't bet on it, but Walter could surprise us. He could have something by dconf, or enough stuff may be required to get it working or enough other important stuff may take up his time that we don't see anything until next year. I really don't know. As it is, it's already effectively been delayed by the need to improve safe in order to make it work - though the safe work is pretty important in its own right. - Jonathan M Davis
Jan 02 2017
parent eugene <egordeev18 gmail.com> writes:
On Monday, 2 January 2017 at 16:32:12 UTC, Jonathan M Davis wrote:
 On Monday, January 02, 2017 16:07:26 eugene via Digitalmars-d 
 wrote:
 On Monday, 2 January 2017 at 15:49:47 UTC, Stefan Koch wrote:
 On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote:
 hello everyone,
 is there any kind of smart pointers or something in D 
 instead
 of GC?
It's coming!
is it coming for real, or just for the record?
Walter has been making improvements to safe so that he can implement some form of safe reference counting in the language. Exactly what that will look like or when it will be done is an open question (I don't even know how much Walter knows about that), but work _is_ being done specifically with language supported ref-counting in mind. So, is it coming? Yes. Is it coming soon? Maybe. I wouldn't bet on it, but Walter could surprise us. He could have something by dconf, or enough stuff may be required to get it working or enough other important stuff may take up his time that we don't see anything until next year. I really don't know. As it is, it's already effectively been delayed by the need to improve safe in order to make it work - though the safe work is pretty important in its own right. - Jonathan M Davis
thank you!
Jan 02 2017
prev sibling next sibling parent reply Eugene Wissner <belka caraus.de> writes:
On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote:
 hello everyone,
 is there any kind of smart pointers or something in D instead 
 of GC?
You may want to look into https://github.com/etcimon/memutils and https://github.com/caraus-ecms/tanya (source/tanya/memory/types).
Jan 03 2017
parent eugene <egordeev18 gmail.com> writes:
On Wednesday, 4 January 2017 at 04:26:19 UTC, Eugene Wissner 
wrote:
 On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote:
 hello everyone,
 is there any kind of smart pointers or something in D instead 
 of GC?
You may want to look into https://github.com/etcimon/memutils and https://github.com/caraus-ecms/tanya (source/tanya/memory/types).
thank you!
Jan 06 2017
prev sibling parent reply =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote:
 hello everyone,
 is there any kind of smart pointers or something in D instead 
 of GC?
Non-atomic RC wrapper type is here and instantiator for it here It can be combined with containers such as the ones in https://github.com/economicmodeling/containers Note that these containers have their copy constructors disabled to prevent implicit (C++ style) copying. Andrei probably knows more about _atomic_ RC.
Jan 04 2017
next sibling parent eugene <egordeev18 gmail.com> writes:
On Wednesday, 4 January 2017 at 13:32:23 UTC, Nordlöw wrote:
 On Monday, 2 January 2017 at 15:43:22 UTC, eugene wrote:
 hello everyone,
 is there any kind of smart pointers or something in D instead 
 of GC?
Non-atomic RC wrapper type is here and instantiator for it here It can be combined with containers such as the ones in https://github.com/economicmodeling/containers Note that these containers have their copy constructors disabled to prevent implicit (C++ style) copying. Andrei probably knows more about _atomic_ RC.
thank you!
Jan 06 2017
prev sibling parent reply =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
On Wednesday, 4 January 2017 at 13:32:23 UTC, Nordlöw wrote:
 Non-atomic RC wrapper type is here


Further, note that `RefCounted` is not yet pure, but will soon be; https://github.com/dlang/phobos/pull/4832
Jan 06 2017
parent eugene <egordeev18 gmail.com> writes:
On Friday, 6 January 2017 at 15:17:05 UTC, Nordlöw wrote:
 On Wednesday, 4 January 2017 at 13:32:23 UTC, Nordlöw wrote:
 Non-atomic RC wrapper type is here


Further, note that `RefCounted` is not yet pure, but will soon be; https://github.com/dlang/phobos/pull/4832
ok, thank you!
Jan 07 2017