Can D be Interpreted?

deadalnix deadalnix at gmail.com
Mon Jan 6 10:00:42 PST 2014


On Monday, 6 January 2014 at 15:20:32 UTC, Ola Fosheim Grøstad 
wrote:
> On Monday, 6 January 2014 at 14:58:58 UTC, deadalnix wrote:
>> Also JITing for trivial thing that could be constant folded is 
>> much slower.
>
> You don't need a powerful interpreter to fold trivial things 
> (+-*/?:). If it is a separate pass there is no reason for not 
> being able to building a dependency graph and use a JIT on 
> multiple expressions. It sounds trivial to me, if it isn't 
> simple in the DMD front-end then it is a structural issue.

This is done that way because it is simpler. At some point SDC 
will probably get a constant folder, but for now, supporting more 
D functionalities is more important.


More information about the Digitalmars-d mailing list