Ask HN: Why isn't D more popular?
What would be a reason to not use D and prefer for example on Rust for system programming? Is D slower due to garbage collection?
Or in other words, why D didn't "replace" C for system programming?
What would be a reason to not use D and prefer for example on Rust for system programming? Is D slower due to garbage collection?
Or in other words, why D didn't "replace" C for system programming?
* The benefits it offers over C++ are (or were) not significant enough to make people invest in the switch
* There were issues in the past with a poor initial standard library (Phobos 1), which led to an alternative standard library, Tango being developed - which was incompatible with Phobos, and resulted in a somewhat divided ecosystem where you had to prematurely pick one or the other. Eventually these issues were ironed out and an improved Phobos became the standard library, with Tango made compatible with it. (The damage was already done though.)
* Library availability lacked compared with C++ - although D could import C standard libraries it was not ABI compatible with C++, and its target audience - C++ programmers, were not going to throw away backward compatibility with all of the libraries they had already written.
* As you suggest, the word "Garbage Collection" scares some people away, despite it being optional.
* It's not backed by a big name - and our industry is obsessed with big names.
* Perhaps a lack of literature and interest by academic institutions to teach it.
None of these are issues for present-day D, but I think people's perception of the language is still affected by them.
Also, at the time I was using it, there were 3 main compiler implementations, which were not entirely compatible with each other, and the dynamic linking story was poor.
EDIT: Also at the time I was using it (about a year ago), the package manager was very buggy and inflexible. It assumed that each package would output exactly one library or one binary.
https://code.facebook.com/posts/729709347050548/under-the-ho...
It's probably not an alternative to C/C++ and perhaps what it's used for is not systems programming in a strict way. But most software today is related to the cloud in one way or another. And Golang is picking up traction here that might otherwise have gone to these other languages you all mentioned.
Source? D has more users[1] and is more Robust than Rust and beats Rust on many benchmarks[2]
[1]http://www.tiobe.com/index.php/content/paperinfo/tpci/index....
[2]http://attractivechaos.github.io/plb/
[2A]http://benchmarksgame.alioth.debian.org/u64/which-programs-a... (D is not included in this benchmark, but judging by how it compares to C++ and C, it most likely would beat Rust in the second category.
http://programmers.stackexchange.com/questions/97207/what-do...
And this is from two years ago, so I would expect the language to have come even farther since then.