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

2016-05-21 Thread Stefan Koch via Digitalmars-d-announce
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

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

2016-05-20 Thread Johan Engelen via Digitalmars-d-announce
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

Re: pl0stuff an optimizing pl0 > c transcompiler

2016-05-20 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 20 May 2016 at 18:04:55 UTC, Stefan Koch wrote: Therefore you can transcompile code at compileTime at call PL/0 functions as there were naively implemented in D. If you do want to call functions from D. You cannot use the optimizer. As it does _very_ aggressive inlineing and will

Re: pl0stuff an optimizing pl0 > c transcompiler

2016-05-20 Thread Stefan Koch via Digitalmars-d-announce
On Monday, 28 December 2015 at 16:41:30 UTC, Stefan Koch wrote: On Monday, 28 December 2015 at 10:45:59 UTC, Nick B wrote: what languages do you plan to support for input and output ? I just planned on PL/0 as input and C as output. It is a simple one-pass (okay 2 pass if you count the

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-30 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 29 December 2015 at 22:13:44 UTC, Nick B wrote: So the best approach, if I understand you correctly, would be to perform micro-benchmarks on new code that is either D code (with a variety of algorithms and/or vibe.d framework code) or HHVM 64 bit code, and compare (and publish)

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-29 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 29 December 2015 at 04:37:44 UTC, Nick B wrote: Would you know what is required to get good performance ? I can guess. However without actually implementing it my guess is as good as any. I would probably look at HHVM, and see what is easy to reimplement in D.

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-29 Thread Nick B via Digitalmars-d-announce
On Tuesday, 29 December 2015 at 17:59:15 UTC, Stefan Koch wrote: On Tuesday, 29 December 2015 at 04:37:44 UTC, Nick B wrote: Would you know what is required to get good performance ? I can guess. However without actually implementing it my guess is as good as any. I would probably look at

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-28 Thread Nick B via Digitalmars-d-announce
On Sunday, 27 December 2015 at 21:13:07 UTC, Stefan Koch wrote: Hello again. please feel free to comment or ask questions here. Hi. what languages do you plan to support for input and output ?

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-28 Thread Stefan Koch via Digitalmars-d-announce
On Monday, 28 December 2015 at 10:45:59 UTC, Nick B wrote: what languages do you plan to support for input and output ? I just planned on PL/0 as input and C as output. It is a simple one-pass (okay 2 pass if you count the optimizer) trans-compilation. There is no middle-end. And very

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-28 Thread Nick B via Digitalmars-d-announce
On Tuesday, 29 December 2015 at 00:50:49 UTC, Stefan Koch wrote: so could it be used to produce D output instead of C ? Could it be used to parse PHP as input ? That would probably require implementing a vm. fancyPars can certainly be used to create a php parser but a straightforward

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-28 Thread Nick B via Digitalmars-d-announce
On Monday, 28 December 2015 at 16:41:30 UTC, Stefan Koch wrote: On Monday, 28 December 2015 at 10:45:59 UTC, Nick B wrote: what languages do you plan to support for input and output ? I just planned on PL/0 as input and C as output. It is a simple one-pass (okay 2 pass if you count the

Re: pl0stuff an optimizing pl0 > c transcompiler

2015-12-28 Thread Stefan Koch via Digitalmars-d-announce
On Monday, 28 December 2015 at 23:40:31 UTC, Nick B wrote: On Monday, 28 December 2015 at 16:41:30 UTC, Stefan Koch wrote: On Monday, 28 December 2015 at 10:45:59 UTC, Nick B wrote: what languages do you plan to support for input and output ? I just planned on PL/0 as input and C as output.

pl0stuff an optimizing pl0 > c transcompiler

2015-12-27 Thread Stefan Koch via Digitalmars-d-announce
Hello again. I'd like to announce a simple pl0 trans-compiler. https://github.com/UplinkCoder/pl0stuff with my parser generator it took me about 3 hours to get the compiler running. The implemented optimizations are * function-call-inclining * nested-block-simplification, *