4 ms·
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
by kbart 9y ago
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.
- WalterBright 9y agoIf 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 :-(
- atilaneves 9y agoD uses the GC by default - it's not required. As for speed, it's the same as C++.
- EvenThisAcronym 9y ago>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.