Ref counting for CTFE?

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 1 17:12:06 PDT 2014


On Sunday, 1 June 2014 at 10:46:52 UTC, Peter Alexander wrote:
> On Saturday, 31 May 2014 at 02:40:29 UTC, Martin Nowak wrote:
>> On Thursday, 29 May 2014 at 15:28:28 UTC, safety0ff wrote:
>>> If would be nice if Don could elaborate on his comment in bug 
>>> #6498 (https://issues.dlang.org/show_bug.cgi?id=6498#c1)
>>>
>> What is really needed is the ability to update variables in 
>> place.
>> Currently every mutation allocates a new value.
>> IMO the underlying problem is that CTFE operates on full AST
>> nodes.
>> To solve this, we either need a separate data representation 
>> for
>> CTFE or even better work on JITing.
>
> JITing can wait. Just an abstract interpreter would be a huge 
> improvement on what we have currently. As long as it is 
> designed to allow JITing in the future.

JITing don't need to wait. In fact it is already there !

Now come help implement the rest of the language in SDC :D


More information about the Digitalmars-d mailing list