Incorporating D

Rob T alanb at ucora.com
Fri Jan 25 14:00:01 PST 2013


On Friday, 25 January 2013 at 21:39:58 UTC, Namespace wrote:
> On Friday, 25 January 2013 at 20:45:22 UTC, Szymon wrote:
>> Hi,
>>
>> I would really like to start using D in our small company as a
>> C++ replacement. With that in mind I do have few questions:
>>
>> 1) Is D2 really ready for production code?
>
> Not really. A big pain in the ass is the missing rvalue ref 
> that C++ has. So using structs is a big disaster. But there are 
> plenty of other missing features.

Yes, the ref issue can be a pain, but it's not even close to a 
show stopper for production use. C++ has by far worse 
limitations, such as an almost unusable template implementation, 
and that's just the start of it.

D does not really lack much at all in terms of language features, 
but one of the main features D lacks on the tool chain side is 
full shared library support. I really think this needs to be 
shored up because not only is shared library support is essential 
on it's own, it's also a safe means for people to start migrating 
from C++ to D by incorporating D libraries into their existing 
C++ code.

The other thing is the GC which is also tool chain related. We 
could use a better implementation, but existing one is definitely 
not a show stopper for production use, and there are ways to deal 
with any performance issues that may appear, you just need to be 
aware of potential slowness problems if you are doing a lot of 
memory allocations and/or real time programming.

Finally there are editors, and IDE's with decent D support. In 
fact I find that C++ IDE and editor support is no better, and 
fails often due to the near impossible nature of correctly 
parsing through C++ code.

--rt


More information about the Digitalmars-d mailing list