Quora: Why hasn't D started to replace C++?

Russel Winder russel at winder.org.uk
Wed Jan 31 08:46:07 UTC 2018


T,

Arguing things on this list serves no purpose other than to rehearse
arguments. The place to say things about stuff on Quora is on Quora as
Walter, Laeeth, and I have done in this case.

On Tue, 2018-01-30 at 13:02 -0800, H. S. Teoh via Digitalmars-d wrote:
> On Tue, Jan 30, 2018 at 03:45:44PM -0500, Andrei Alexandrescu via
> Digitalmars-d wrote:
> > https://www.quora.com/Why-hasnt-D-started-to-replace-C++
> 
> [...]
> 
> I actually agree with all of his points, except one: C++'s "enormous
> performance advantage"?!  Is he being serious?  Or is his view biased
> by
> dmd's, erm, shall we say, "suboptimal" optimizer?
> 
> Just yesterday I was experimenting with ldc while reviewing a Phobos
> PR,
> and it showed that LDC was well able to reduce iteration over a range
> down to a native asm loop of the same order of efficiency as an
> equivalent C++ loop.  So, the cost of D (arguably better)
> abstractions
> simply *isn't there*.  Both languages compile to the *same* native
> code.
> Where's C++'s "enormous performance advantage?"  I'm not seeing it,
> except in this article, and, presumably, in the author's imagination.
> 
> And of course, in the comments section there's the obligatory
> reference
> to the Tango/Phobos split in D1.  Eye-roll.  That one never gets old,
> it
> seems, even though it's already ancient history that the modern D
> community has mostly forgotten about.  The internet is good for
> disseminating information, and also great for prolonging ignorance.
> 
> Enough of this nonsense.  Let me get back to coding... in D. :-D
> 
> 
> T
> 
-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20180131/5bc5883b/attachment.sig>


More information about the Digitalmars-d mailing list