Re: ARC in D
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 http://dlang.org/phobos/std_typecons.html#.RefCounted Further, note that `RefCounted` is not yet pure, but will soon be; https://github.com/dlang/phobos/pull/4832 ok, thank you!
Re: ARC in D
On Wednesday, 4 January 2017 at 13:32:23 UTC, Nordlöw wrote: Non-atomic RC wrapper type is here http://dlang.org/phobos/std_typecons.html#.RefCounted Further, note that `RefCounted` is not yet pure, but will soon be; https://github.com/dlang/phobos/pull/4832
Re: ARC in D
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 http://dlang.org/phobos/std_typecons.html#.RefCounted and instantiator for it here http://dlang.org/phobos/std_typecons.html#.refCounted 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!
Re: ARC in D
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!
Re: ARC in D
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 http://dlang.org/phobos/std_typecons.html#.RefCounted and instantiator for it here http://dlang.org/phobos/std_typecons.html#.refCounted 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.
Re: ARC in D
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).
Re: ARC in D
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!
Re: ARC in D
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
Re: ARC in D
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?
Re: ARC in D
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!
ARC in D
hello everyone, is there any kind of smart pointers or something in D instead of GC?