Re:Why hasn't D started to replace C++
by EvenThisAcronym on Thursday February 01, 2018 @07:42PM
(#16287352)
>and till fairly recently it wasn't a community project, but a one-man work
All of D except the backend was open-sourced in 2011, I'm pretty sure. Even before that, Walter Bright accepted patch submissions.
Re:Why hasn't D started to replace C++
by soulbadguy on Wednesday January 31, 2018 @03:26AM
(#16272377)
> Rust is much better suited to be a serious competition
why ?
Performance and memory control -- these are the main reasons why people choose C/C++ nowadays and Rust tries to fit in as well. D, as stated in article, is more of Java competitor than C++, because it's slow and use GC.
Re:Why hasn't D started to replace C++
by WalterBright on Wednesday January 31, 2018 @06:22PM
(#16278480)
If you use LDC or GDC, the code generation for D is the same as for C and C++, if the code is written the same way.
The code generation for DMD has fallen a bit behind, mostly because I spend my time on other issues these days :-(
Re:Why hasn't D started to replace C++
by EvenThisAcronym on Thursday February 01, 2018 @07:45PM
(#16287376)
>because it's slow
Where do people get this from? D compiles down to the same machine code that every other compiled language does and it has similar language semantics to C++. In some cases D is _faster_ because its richer type and effect systems allow for more opportunities for optimization.
Re:Why hasn't D started to replace C++
by atilaneves on Thursday February 01, 2018 @11:27AM
(#16283086)
D uses the GC by default - it's not required. As for speed, it's the same as C++.
Re:Why hasn't D started to replace C++
by majewsky on Wednesday January 31, 2018 @07:50AM
(#16273429)
Better marketing.
Better marketing... which requires financial resources that D doesn't have.
D is generally a much better Go (especially if you add fibres to it), but it doesn't have Google-brand behind it, so Go ate it's lunch in distributed systems space, while Rust is much better suited to be a serious competition to C++.