Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
April 18, 2009 Stack allocator? | ||||
---|---|---|---|---|
| ||||
I remember a while back someone posted an easy dynamic stack allocator... anyone have the link? Thanks, Robert |
April 19, 2009 Re: Stack allocator? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Fraser | On Sat, 18 Apr 2009 16:42:28 -0700 Robert Fraser <fraserofthenight@gmail.com> wrote: > I remember a while back someone posted an easy dynamic stack allocator... anyone have the link? > > Thanks, > Robert Tango has this: http://dsource.org/projects/tango/docs/stable/tango.util.container.more.Stack.html |
April 19, 2009 Re: Stack allocator? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim Matthews | On Sun, 19 Apr 2009 10:15:41 +0400, Tim Matthews <tim.matthews7@gmail.com> wrote: > On Sat, 18 Apr 2009 16:42:28 -0700 > Robert Fraser <fraserofthenight@gmail.com> wrote: > >> I remember a while back someone posted an easy dynamic stack >> allocator... anyone have the link? >> >> Thanks, >> Robert > > Tango has this: > > http://dsource.org/projects/tango/docs/stable/tango.util.container.more.Stack.html I believe he means something like type-safe alloca(). In this case I would recommend you to take a look at TempAlloc: http://dsource.org/projects/scrapple/browser/trunk/tempAlloc/tempAlloc.d It is very fast and makes guaranties that you won't get stack overflow. |
April 20, 2009 Re: Stack allocator? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Koroskin | Denis Koroskin wrote:
> On Sun, 19 Apr 2009 10:15:41 +0400, Tim Matthews <tim.matthews7@gmail.com> wrote:
>
>> On Sat, 18 Apr 2009 16:42:28 -0700
>> Robert Fraser <fraserofthenight@gmail.com> wrote:
>>
>>> I remember a while back someone posted an easy dynamic stack
>>> allocator... anyone have the link?
>>>
>>> Thanks,
>>> Robert
>>
>> Tango has this:
>>
>> http://dsource.org/projects/tango/docs/stable/tango.util.container.more.Stack.html
>>
>
> I believe he means something like type-safe alloca(). In this case I would recommend you to take a look at TempAlloc:
> http://dsource.org/projects/scrapple/browser/trunk/tempAlloc/tempAlloc.d
>
> It is very fast and makes guaranties that you won't get stack overflow.
>
Yes; that's exactly what I was in the mood for. Thanks!
|
April 20, 2009 Re: Stack allocator? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Koroskin | Denis Koroskin wrote:
> On Sun, 19 Apr 2009 10:15:41 +0400, Tim Matthews <tim.matthews7@gmail.com> wrote:
>
>> On Sat, 18 Apr 2009 16:42:28 -0700
>> Robert Fraser <fraserofthenight@gmail.com> wrote:
>>
>>> I remember a while back someone posted an easy dynamic stack
>>> allocator... anyone have the link?
>>>
>>> Thanks,
>>> Robert
>>
>> Tango has this:
>>
>> http://dsource.org/projects/tango/docs/stable/tango.util.container.more.Stack.html
>>
>
> I believe he means something like type-safe alloca(). In this case I would recommend you to take a look at TempAlloc:
> http://dsource.org/projects/scrapple/browser/trunk/tempAlloc/tempAlloc.d
>
> It is very fast and makes guaranties that you won't get stack overflow.
>
Yes; that's exactly what I was in the mood for. Thanks! Any Tango + D1 versions (if not, I'll convert it & post it here)
|
Copyright © 1999-2021 by the D Language Foundation