DEV Community

Discussion on: D v C++

Collapse
 
adevore profile image
Aaron DeVore

I remember trying to learn D. While it's simpler than C++, I would not call it a simple language. It also doesn't have great learning resources to explain how the language fits together. There's a language reference, but it's not really that good as a learning resource.

D has just never managed to get a critical mass of growth. Every once in a while it will see a brief surge in one of the various language indices, but it never really goes beyond that. If it hasn't happened in the 20 years since D was first created, I really don't see it happening now.

I've heard various explanation for why this happened. The most compelling is that D is generally better than C++, but not better enough to convince people to make an arduous switch. From what I understand, it's also difficult to use in some applications of C/C++ because of its GC. Hypothetically it can be used without the GC, but the library support just isn't there. I think that's why Rust has been taking off recently. It provides a cleaner language without needing to go out of your way to avoid GC. The ecosystem also has better support for stripped down versions of the language via no_std, which is lacking in D.