Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
January 12, 2015 Good post about out-of-the-box experience with D | ||||
---|---|---|---|---|
| ||||
http://www.reddit.com/r/programming/comments/2s67en/evaluating_d_for_games/ I encourage you to comment on reddit instead of here. Andrei |
January 12, 2015 Re: Good post about out-of-the-box experience with D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Monday, 12 January 2015 at 16:16:30 UTC, Andrei Alexandrescu wrote:
> http://www.reddit.com/r/programming/comments/2s67en/evaluating_d_for_games/
>Array!int(RefCounted!(Payload, cast(RefCountedAutoInitialize)0)(RefCountedStore(20D9590)))
Why does std.container.array use refcounted? Seems like serious overhead compared to std::vector in C++.
|
January 12, 2015 Re: Good post about out-of-the-box experience with D | ||||
---|---|---|---|---|
| ||||
Posted in reply to weaselcat | On Monday, 12 January 2015 at 20:35:13 UTC, weaselcat wrote:
> On Monday, 12 January 2015 at 16:16:30 UTC, Andrei Alexandrescu wrote:
>> http://www.reddit.com/r/programming/comments/2s67en/evaluating_d_for_games/
>>Array!int(RefCounted!(Payload, cast(RefCountedAutoInitialize)0)(RefCountedStore(20D9590)))
>
> Why does std.container.array use refcounted? Seems like serious overhead compared to std::vector in C++.
Because std.container have reference semantics.
|
January 12, 2015 Re: Good post about out-of-the-box experience with D | ||||
---|---|---|---|---|
| ||||
Posted in reply to weaselcat | On 1/12/15 12:35 PM, weaselcat wrote:
> On Monday, 12 January 2015 at 16:16:30 UTC, Andrei Alexandrescu wrote:
>> http://www.reddit.com/r/programming/comments/2s67en/evaluating_d_for_games/
>>
>> Array!int(RefCounted!(Payload,
>> cast(RefCountedAutoInitialize)0)(RefCountedStore(20D9590)))
>
> Why does std.container.array use refcounted? Seems like serious overhead
> compared to std::vector in C++.
Safety. -- Andrei
|
January 13, 2015 Re: Good post about out-of-the-box experience with D | ||||
---|---|---|---|---|
| ||||
Posted in reply to weaselcat | On Monday, 12 January 2015 at 20:35:13 UTC, weaselcat wrote:
> On Monday, 12 January 2015 at 16:16:30 UTC, Andrei Alexandrescu wrote:
>> http://www.reddit.com/r/programming/comments/2s67en/evaluating_d_for_games/
>>Array!int(RefCounted!(Payload, cast(RefCountedAutoInitialize)0)(RefCountedStore(20D9590)))
>
> Why does std.container.array use refcounted? Seems like serious overhead compared to std::vector in C++.
Apologies, wrote this inbetween classes and didn't bother to check array's implementation. I thought it was implying each item was individually wrapped by a refcounted i.e, not in a continuous block of memory and was confused.
|
Copyright © 1999-2021 by the D Language Foundation