www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Current state of Allocator design

reply "Rene Zwanenburg" <renezwanenburg gmail.com> writes:
A few months ago, I remember reading in a thread in this group 
that Andrei is working on an Allocator design for the standard 
library. I'd like to know if this is still actively being worked 
on, and if so, if there's a (rough) ETA.

The reason I'm asking is that I'm working on a piece of code 
where I really need to have control over both object lifetime and 
memory layout. I could come up with some allocator design which 
will suit my needs for now, but if there's a standard design 
coming out soon I'd prefer to use that instead.
Mar 15 2012
next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 3/15/12 8:19 AM, Rene Zwanenburg wrote:
 A few months ago, I remember reading in a thread in this group that
 Andrei is working on an Allocator design for the standard library. I'd
 like to know if this is still actively being worked on, and if so, if
 there's a (rough) ETA.

Yes. I plan to work on it at the end of the month when I'll be on a brief vacation.
 The reason I'm asking is that I'm working on a piece of code where I
 really need to have control over both object lifetime and memory layout.
 I could come up with some allocator design which will suit my needs for
 now, but if there's a standard design coming out soon I'd prefer to use
 that instead.

I understand. Not sure what to advise here. One possibility is to wait until I send a draft out and see whether it fits your needs. Andrei
Mar 15 2012
prev sibling next sibling parent Manu <turkeyman gmail.com> writes:
--20cf3074afc203e44404bb49d4ba
Content-Type: text/plain; charset=UTF-8

I'm also particularly interested to know anything about this.

On 15 March 2012 15:19, Rene Zwanenburg <renezwanenburg gmail.com> wrote:

 A few months ago, I remember reading in a thread in this group that Andrei
 is working on an Allocator design for the standard library. I'd like to
 know if this is still actively being worked on, and if so, if there's a
 (rough) ETA.

 The reason I'm asking is that I'm working on a piece of code where I
 really need to have control over both object lifetime and memory layout. I
 could come up with some allocator design which will suit my needs for now,
 but if there's a standard design coming out soon I'd prefer to use that
 instead.

--20cf3074afc203e44404bb49d4ba Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I&#39;m also particularly interested to know anything about this.<br><br><d= iv class=3D"gmail_quote">On 15 March 2012 15:19, Rene Zwanenburg <span dir= =3D"ltr">&lt;<a href=3D"mailto:renezwanenburg gmail.com">renezwanenburg gma= il.com</a>&gt;</span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex">A few months ago, I remember reading in a th= read in this group that Andrei is working on an Allocator design for the st= andard library. I&#39;d like to know if this is still actively being worked= on, and if so, if there&#39;s a (rough) ETA.<br> <br> The reason I&#39;m asking is that I&#39;m working on a piece of code where = I really need to have control over both object lifetime and memory layout. = I could come up with some allocator design which will suit my needs for now= , but if there&#39;s a standard design coming out soon I&#39;d prefer to us= e that instead.<br> </blockquote></div><br> --20cf3074afc203e44404bb49d4ba--
Mar 15 2012
prev sibling parent "Rene Zwanenburg" <renezwanenburg gmail.com> writes:
On Thursday, 15 March 2012 at 15:34:18 UTC, Andrei Alexandrescu 
wrote:
 On 3/15/12 8:19 AM, Rene Zwanenburg wrote:
 A few months ago, I remember reading in a thread in this group 
 that
 Andrei is working on an Allocator design for the standard 
 library. I'd
 like to know if this is still actively being worked on, and if 
 so, if
 there's a (rough) ETA.

Yes. I plan to work on it at the end of the month when I'll be on a brief vacation.
 The reason I'm asking is that I'm working on a piece of code 
 where I
 really need to have control over both object lifetime and 
 memory layout.
 I could come up with some allocator design which will suit my 
 needs for
 now, but if there's a standard design coming out soon I'd 
 prefer to use
 that instead.

I understand. Not sure what to advise here. One possibility is to wait until I send a draft out and see whether it fits your needs. Andrei

That's great, thanks. I'm not on a tight schedule with this, so I'll wait for the draft.
Mar 15 2012