Is there anything so radically different in D than these other languages, that prevents the implementation of a run-of-the-mill VM to eval D code? It just seems strange to me that it's such a problem when this is basically solved by all scripting languages. And I'm really not trying to downplay the difficulty in implementing CTFE in D, but rather just figure out why it's so hard to implement in comparison.
I'm not well acquainted with how the compiler works internally,
or how CTFE is implemented. But it seems like a full-blown D
interpreter with eval functionality is needed. Lots of scripting
language interpreters exist out there, and they all get
relatively decent performance and memory footprints (or at least
much better than what DMD can get when performing CTFE).
- Re: Ref counting f... deadalnix via Digitalmars-d
- Re: Ref count... Dicebot via Digitalmars-d
- Re: Ref counting for CTFE? Ary Borenszweig via Digitalmars-d
- Re: Ref counting for CTFE? H. S. Teoh via Digitalmars-d
- Re: Ref counting for CTFE? safety0ff via Digitalmars-d
- Re: Ref counting for CTFE? Steven Schveighoffer via Digitalmars-d
- Re: Ref counting for C... safety0ff via Digitalmars-d
- Re: Ref counting for C... Timon Gehr via Digitalmars-d
- Re: Ref counting f... Steven Schveighoffer via Digitalmars-d
- Re: Ref counting f... Remo via Digitalmars-d
- Re: Ref counting for CTFE? Dylan Knutson via Digitalmars-d
- Re: Ref counting for CTFE? Steven Schveighoffer via Digitalmars-d
- Re: Ref counting for CTFE? Timon Gehr via Digitalmars-d
- Re: Ref counting for CTFE? Don via Digitalmars-d
- Re: Ref counting for CTFE? Dicebot via Digitalmars-d
- Re: Ref counting for CTFE? Puming via Digitalmars-d
- Re: Ref counting for CTFE? Steven Schveighoffer via Digitalmars-d
- Re: Ref counting for CTFE? w0rp via Digitalmars-d
- Re: Ref counting for CTFE? Jonathan M Davis via Digitalmars-d
- Re: Ref counting for CTFE? Jonathan M Davis via Digitalmars-d
