Battle-plan for CTFE

Daniel Murphy via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun May 15 05:54:33 PDT 2016


On 15/05/2016 9:57 PM, Martin Nowak wrote:
> On 05/15/2016 01:58 PM, Daniel Murphy wrote:
>> The biggest advantage of bytecode is not the interpreter speed, it's
>> that by lowering you can substitute VarExps etc with actual references
>> to memory without modifying the AST.
>>
>> By working with something lower level than the AST, you should end up
>> with something much less complex and with fewer special cases.
>
> Which is a bad assessment, you can stick variable indexes into
> VarDeclaration (we already do that) and thereby access them in O(1).
> Converting control flow and references into byte code is far from
> trivial, we're talking about another s2ir and e2ir here.
>
> -Martin
>

We really should have discussed this last week!


More information about the Digitalmars-d-announce mailing list