Re: DMD front-end can be used as a library with Dub

2016-09-19 Thread Mathias Lang via Digitalmars-d
On Monday, 29 August 2016 at 10:42:23 UTC, Alexander Breckel wrote: Please note: This is "only" the dmd frontend (lexer, parser, semantic passes, CTFE). Code generation will be more complicated. Interesting. Did you have inline ASM in your code ? From my experience it required the backend

Re: DMD front-end can be used as a library with Dub

2016-09-01 Thread Chris Wright via Digitalmars-d
On Thu, 01 Sep 2016 18:42:13 +0200, Rory McGuire via Digitalmars-d wrote: > Thanks, for the GC stub, that will be great for playing with whether or > not a little dmd app crashes after gc_annihilate(true). > > Did I understand that right? It sounds like this there's a special function

Re: DMD front-end can be used as a library with Dub

2016-09-01 Thread Rory McGuire via Digitalmars-d
Thanks, for the GC stub, that will be great for playing with whether or not a little dmd app crashes after gc_annihilate(true). Did I understand that right? R On Thu, Sep 1, 2016 at 6:16 PM, Cauterite via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Monday, 29 August 2016 at

Re: DMD front-end can be used as a library with Dub

2016-09-01 Thread Cauterite via Digitalmars-d
On Monday, 29 August 2016 at 10:42:23 UTC, Alexander Breckel wrote: Because of the poor memory management in the compiler, I included a modified GC-stub when I compiled the frontend as a library, so that it can be used in long-running processes:

Re: DMD front-end can be used as a library with Dub

2016-09-01 Thread Rory McGuire via Digitalmars-d
I didn't see your announcement, but... AWESOME!! This could be the basis for some really good tutorials on making compiler backends etc... We need more little teaser examples like the one you posted in the beginning of this thread. PS: I did already check the code out on github because I watch

Re: DMD front-end can be used as a library with Dub

2016-08-29 Thread rikki cattermole via Digitalmars-d
On 29/08/2016 11:54 PM, Alexander Breckel wrote: On Monday, 29 August 2016 at 11:31:58 UTC, Seb wrote: On Monday, 29 August 2016 at 10:42:23 UTC, Alexander Breckel wrote: I just tried to use the DMD frontend as a Dub package in my own project to parse and analyze D files and it ... just

Re: DMD front-end can be used as a library with Dub

2016-08-29 Thread Alexander Breckel via Digitalmars-d
On Monday, 29 August 2016 at 11:31:58 UTC, Seb wrote: On Monday, 29 August 2016 at 10:42:23 UTC, Alexander Breckel wrote: I just tried to use the DMD frontend as a Dub package in my own project to parse and analyze D files and it ... just worked. The dub.json for dmd is fairly small and

Re: DMD front-end can be used as a library with Dub

2016-08-29 Thread Alexander Breckel via Digitalmars-d
On Monday, 29 August 2016 at 11:27:44 UTC, Basile B. wrote: On Monday, 29 August 2016 at 10:42:23 UTC, Alexander Breckel wrote: I just tried to use the DMD frontend as a Dub package in my own project to parse and analyze D files and it ... just worked. The dub.json for dmd is fairly small and

Re: DMD front-end can be used as a library with Dub

2016-08-29 Thread Seb via Digitalmars-d
On Monday, 29 August 2016 at 10:42:23 UTC, Alexander Breckel wrote: I just tried to use the DMD frontend as a Dub package in my own project to parse and analyze D files and it ... just worked. The dub.json for dmd is fairly small and doesn't require any changes to the code. This might be

Re: DMD front-end can be used as a library with Dub

2016-08-29 Thread Basile B. via Digitalmars-d
On Monday, 29 August 2016 at 10:42:23 UTC, Alexander Breckel wrote: I just tried to use the DMD frontend as a Dub package in my own project to parse and analyze D files and it ... just worked. The dub.json for dmd is fairly small and doesn't require any changes to the code. This might be

DMD front-end can be used as a library with Dub

2016-08-29 Thread Alexander Breckel via Digitalmars-d
I just tried to use the DMD frontend as a Dub package in my own project to parse and analyze D files and it ... just worked. The dub.json for dmd is fairly small and doesn't require any changes to the code. This might be common knowledge, but I was completely unprepared for this :) Please