[OT] Re: pl0stuff an optimizing pl0 > c transcompiler

Stefan Koch via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat May 21 05:51:48 PDT 2016


On Friday, 20 May 2016 at 19:20:34 UTC, Johan Engelen wrote:
> On Friday, 20 May 2016 at 18:04:55 UTC, Stefan Koch wrote:
>>
>> Update I have implemented D codegen.
>> The CodeGenerator as well as the optimizer work at CTFE.
>> Therefore you can transcompile code at compileTime at call 
>> PL/0 functions as there were naively implemented in D.
>
> This is pretty cool :D
>
> Now I understand why you want to improve CTFE. You actually 
> want better C++ interop. And to do that, you are going to CTFE 
> compile the C++ code to D code, which is then mixed in, and all 
> is good. Excellent idea! ;-)
>
> cheers,
>   Johan

Actually I think compiling c++ is a bit out of my league at the 
moment.
It would only work for self-contained subset of c++. Not for the 
whole c++ language.
Especially preprocessor tricks make this approach unfeasible.



More information about the Digitalmars-d-announce mailing list