www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - D and C++

reply "develop32" <develop32 gmail.com> writes:
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.
Oct 19 2013
parent reply "qznc" <qznc web.de> writes:
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.
Oct 21 2013
parent reply "develop32" <develop32 gmail.com> writes:
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.
Oct 21 2013
parent "qznc" <qznc web.de> writes:
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. ;)
Oct 21 2013