Jump to page: 1 2
Thread overview
ARC in D
Jan 02, 2017
eugene
Jan 02, 2017
Stefan Koch
Jan 02, 2017
eugene
Jan 02, 2017
Jonathan M Davis
Jan 02, 2017
eugene
Jan 04, 2017
Eugene Wissner
Jan 06, 2017
eugene
Jan 04, 2017
Nordlöw
Jan 06, 2017
eugene
Jan 06, 2017
Nordlöw
Jan 07, 2017
eugene
January 02, 2017
hello everyone,
is there any kind of smart pointers or something in D instead of GC?
January 02, 2017
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!
January 02, 2017
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?
January 02, 2017
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

January 02, 2017
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!
January 04, 2017
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).
January 04, 2017
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.
January 06, 2017
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!
January 06, 2017
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!
January 06, 2017
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
« First   ‹ Prev
1 2