Can D be Interpreted?

deadalnix deadalnix at gmail.com
Mon Jan 6 06:58:56 PST 2014


On Wednesday, 1 January 2014 at 22:52:34 UTC, Ola Fosheim Grøstad 
wrote:
> On Wednesday, 1 January 2014 at 22:44:31 UTC, David Nadlinger 
> wrote:
>> Not really. You'd probably still need a powerful constant 
>> folder/interpreter to avoid firing up the LLVM JIT for every 
>> single trivial CTFE invocation.
>
> Why is that? You could just aggregate them and execute them in 
> a single run.

It is not possible as semantic analysis of a given piece of code 
can depend of the CTFE of another.

Also JITing for trivial thing that could be constant folded is 
much slower.


More information about the Digitalmars-d mailing list