Battle-plan for CTFE

Andrei Alexandrescu via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon May 16 04:36:37 PDT 2016


On 5/16/16 7:20 AM, Martin Nowak wrote:
> On Monday, 16 May 2016 at 10:01:47 UTC, Kagamin wrote:
>> Wasn't it possible to enable GC for entire compiler? There can be
>> hybrid approach: 1) first allocate from bump heap 2) when it reaches,
>> say, 200MB, switch to GC.
>
> Well, I wouldn't use D's GC for that dedicated heap.
> Allocation of CTFE values are completely independent and call be freed
> once the evaluation is finished.

A reap would be great there! std.experimental.allocator offers that and 
a variety of others. -- Andrei


More information about the Digitalmars-d-announce mailing list