Thread overview
D and C++
Oct 19, 2013
develop32
Oct 21, 2013
qznc
Oct 21, 2013
develop32
Oct 22, 2013
qznc
October 19, 2013
Hi,
Are there any recent improvements in how D interfaces with C++? I got the impression that some work has been done on that, in order to make DMD a self-hosting compiler.
October 21, 2013
On Saturday, 19 October 2013 at 13:20:28 UTC, develop32 wrote:
> Hi,
> Are there any recent improvements in how D interfaces with C++? I got the impression that some work has been done on that, in order to make DMD a self-hosting compiler.

I do not know of any recent improvements.

The current plan to make DMD self-hosting seems to be a conversion tool. The transition would one step then. The challenge is mostly on LDC then to use the C++ LLVM bindings.
October 21, 2013
On Monday, 21 October 2013 at 11:08:15 UTC, qznc wrote:
> On Saturday, 19 October 2013 at 13:20:28 UTC, develop32 wrote:
>> Hi,
>> Are there any recent improvements in how D interfaces with C++? I got the impression that some work has been done on that, in order to make DMD a self-hosting compiler.
>
> I do not know of any recent improvements.
>
> The current plan to make DMD self-hosting seems to be a conversion tool. The transition would one step then. The challenge is mostly on LDC then to use the C++ LLVM bindings.

I'm aware of the conversion tool, but it seems it will only apply to the frontend? The DMD backend will be left as is.
October 22, 2013
On Monday, 21 October 2013 at 11:29:54 UTC, develop32 wrote:
> On Monday, 21 October 2013 at 11:08:15 UTC, qznc wrote:
>> On Saturday, 19 October 2013 at 13:20:28 UTC, develop32 wrote:
>>> Hi,
>>> Are there any recent improvements in how D interfaces with C++? I got the impression that some work has been done on that, in order to make DMD a self-hosting compiler.
>>
>> I do not know of any recent improvements.
>>
>> The current plan to make DMD self-hosting seems to be a conversion tool. The transition would one step then. The challenge is mostly on LDC then to use the C++ LLVM bindings.
>
> I'm aware of the conversion tool, but it seems it will only apply to the frontend? The DMD backend will be left as is.

The DM backend has some legal issues. Symantec owns part of it and does not relicence it. Converting it to D would not change that, since the D version is still derived work.

Writing a whole new backend in D is not feasible. There are so many more important tasks. However, in the Open Source world, nobody can stop you from doing it. ;)