November 01, 2013
> That makes me think probably Phobos should have a package.json so people
can install updates via code.dlang.org.

How would you imagine that? Not-yet-in-Phobos packages are expected to be submitted as standalone ones, not as whole Phobos repo.
November 01, 2013
On 11/1/13 2:12 PM, Dicebot wrote:
>> That makes me think probably Phobos should have a package.json so people
> can install updates via code.dlang.org.
>
> How would you imagine that? Not-yet-in-Phobos packages are expected to
> be submitted as standalone ones, not as whole Phobos repo.

I meant people who'd want to just install Phobos from master. Probably not a good idea because Phobos changes often are in sync with compiler changes.

Andrei

November 02, 2013
On 10/31/13 7:34 PM, Andrei Alexandrescu wrote:
> On 10/24/13 12:54 PM, Andrei Alexandrescu wrote:
>> Hello,
>>
>>
>> I know it's been a long wait. Hopefully it was worth it. The alpha
>> release of untyped allocators is ready for tire-kicking and a test drive.
>>
>> Code: https://github.com/andralex/phobos/blob/allocator/std/allocator.d
>>
>> Dox: http://erdani.com/d/phobos-prerelease/std_allocator.html
>
> Added SharedFreelist, a lock-free freelist.
>
> http://erdani.com/d/phobos-prerelease/std_allocator.html#.SharedFreelist

Added documentation clarifying the allocators' approach to shared memory. See section "Allocating memory for sharing across threads" near the top of

http://erdani.com/d/phobos-prerelease/std_allocator.html



Andrei

November 02, 2013
01-Nov-2013 06:34, Andrei Alexandrescu пишет:
> On 10/24/13 12:54 PM, Andrei Alexandrescu wrote:
>> Hello,
>>
>>
>> I know it's been a long wait. Hopefully it was worth it. The alpha
>> release of untyped allocators is ready for tire-kicking and a test drive.
>>
>> Code: https://github.com/andralex/phobos/blob/allocator/std/allocator.d
>>
>> Dox: http://erdani.com/d/phobos-prerelease/std_allocator.html
>
> Added SharedFreelist, a lock-free freelist.
>
> http://erdani.com/d/phobos-prerelease/std_allocator.html#.SharedFreelist

Neat. However it's missing from "Synopsis of predefined allocator building blocks" table.

-- 
Dmitry Olshansky
November 02, 2013
On 11/2/13 1:15 PM, Dmitry Olshansky wrote:
> 01-Nov-2013 06:34, Andrei Alexandrescu пишет:
>> On 10/24/13 12:54 PM, Andrei Alexandrescu wrote:
>>> Hello,
>>>
>>>
>>> I know it's been a long wait. Hopefully it was worth it. The alpha
>>> release of untyped allocators is ready for tire-kicking and a test
>>> drive.
>>>
>>> Code: https://github.com/andralex/phobos/blob/allocator/std/allocator.d
>>>
>>> Dox: http://erdani.com/d/phobos-prerelease/std_allocator.html
>>
>> Added SharedFreelist, a lock-free freelist.
>>
>> http://erdani.com/d/phobos-prerelease/std_allocator.html#.SharedFreelist
>
> Neat. However it's missing from "Synopsis of predefined allocator
> building blocks" table.

Thanks, fixed and pushed.

Andrei

November 02, 2013
From the "Allocating memory for sharing across threads" section, this paragraph:

"All allocators in this module accept and return void[] **(as opposed to )**. This is because at the time of allocation, deallocation, or reallocation, the memory is effectively not shared (**it** it were, it would be a bug at the application level)."

Starred items appear to be typos or missing a piece.
November 02, 2013
On 11/2/13 1:39 PM, Meta wrote:
>  From the "Allocating memory for sharing across threads" section, this
> paragraph:
>
> "All allocators in this module accept and return void[] **(as opposed to
> )**. This is because at the time of allocation, deallocation, or
> reallocation, the memory is effectively not shared (**it** it were, it
> would be a bug at the application level)."
>
> Starred items appear to be typos or missing a piece.

Ew. Thanks, fixed and pushed.

Andrei
November 03, 2013
Hi, Andrei.

I cannot compile the allocator.

allocator.d(799): Error: undefined identifier returned

At 499 line:
returned alignedReallocate(b, newSize, alignment);

Ur mistake?
November 03, 2013
On 11/3/13 4:14 AM, Temtaime wrote:
> Hi, Andrei.
>
> I cannot compile the allocator.
>
> allocator.d(799): Error: undefined identifier returned
>
> At 499 line:
> returned alignedReallocate(b, newSize, alignment);
>
> Ur mistake?

Yes, mine. I don't have access to Windows so I expect a bunch of typos in the Windows-specific code. Fixed and pushed this one.

Thanks,

Andrei
November 04, 2013
Andrei Alexandrescu <SeeWebsiteForEmail@erdani.org> writes:

> On 10/26/13 8:00 AM, Andrei Alexandrescu wrote:
>
> Just implemented AlignedMallocator and pushed.
>
> http://erdani.com/d/phobos-prerelease/std_allocator.html#.AlignedMallocator

I'm having a vision of a perverse version called MalignedAllocator...