Jump to page: 1 218  
Page
Thread overview
Quora: Why hasn't D started to replace C++?
Jan 30, 2018
H. S. Teoh
Jan 30, 2018
H. S. Teoh
Jan 30, 2018
Daniel Kozak
Jan 30, 2018
H. S. Teoh
Jan 31, 2018
Paulo Pinto
Jan 30, 2018
Daniel Kozak
Jan 31, 2018
thedeemon
Jan 31, 2018
mate
Jan 31, 2018
Russel Winder
Jan 31, 2018
Walter Bright
Jan 31, 2018
Andrew Benton
Jan 31, 2018
Benny
Jan 31, 2018
Benny
Jan 31, 2018
rjframe
Jan 31, 2018
Seb
Feb 01, 2018
rjframe
Feb 01, 2018
Seb
Feb 02, 2018
Seb
Feb 02, 2018
rjframe
Feb 01, 2018
bachmeier
Feb 01, 2018
Mike Parker
Feb 01, 2018
Walter Bright
Feb 02, 2018
Paolo Invernizzi
Jan 31, 2018
Jack Stouffer
Jan 31, 2018
jmh530
Jan 31, 2018
Jack Stouffer
Jan 31, 2018
Adam D. Ruppe
Jan 31, 2018
Seb
Jan 31, 2018
Adam D. Ruppe
Jan 31, 2018
H. S. Teoh
Feb 01, 2018
Walter Bright
Feb 01, 2018
H. S. Teoh
Feb 01, 2018
Walter Bright
Feb 01, 2018
John Gabriele
Feb 02, 2018
Russel Winder
Feb 07, 2018
John Gabriele
Feb 01, 2018
Jonathan M Davis
Feb 01, 2018
Walter Bright
Feb 01, 2018
Jonathan M Davis
Feb 06, 2018
Jan Knepper
Feb 01, 2018
H. S. Teoh
Feb 01, 2018
Adam D. Ruppe
Feb 01, 2018
Jonathan M Davis
Feb 01, 2018
Seb
Feb 01, 2018
Walter Bright
Jan 31, 2018
Seb
Jan 31, 2018
Paolo Invernizzi
Jan 31, 2018
drug
Jan 31, 2018
John Gabriele
Jan 31, 2018
David Gileadi
Jan 31, 2018
bachmeier
Jan 31, 2018
Seb
Jan 31, 2018
H. S. Teoh
Jan 31, 2018
Seb
Jan 31, 2018
John Gabriele
Jan 31, 2018
jmh530
Jan 31, 2018
Seb
Feb 01, 2018
Russel Winder
Feb 01, 2018
John Gabriele
Feb 02, 2018
Russel Winder
Feb 07, 2018
John Gabriele
Jan 31, 2018
kinke
Jan 31, 2018
Benny
Feb 02, 2018
Meta
Feb 02, 2018
rjframe
Feb 02, 2018
Seb
Apr 03, 2018
Joakim
Apr 03, 2018
12345swordy
Jan 31, 2018
Adam D. Ruppe
Jan 31, 2018
John Gabriele
Jan 31, 2018
H. S. Teoh
Feb 01, 2018
Walter Bright
Feb 02, 2018
Mark
Feb 02, 2018
H. S. Teoh
Feb 02, 2018
Paolo Invernizzi
Feb 02, 2018
Russel Winder
Feb 02, 2018
Walter Bright
Feb 02, 2018
12345swordy
Feb 04, 2018
Russel Winder
Feb 05, 2018
psychoticRabbit
Feb 03, 2018
Russel Winder
Feb 04, 2018
psychoticRabbit
Feb 04, 2018
Russel Winder
Jan 31, 2018
Michael
Feb 01, 2018
Russel Winder
Feb 01, 2018
Nicholas Wilson
Feb 01, 2018
Russel Winder
Feb 01, 2018
Nicholas Wilson
Feb 01, 2018
Russel Winder
Feb 01, 2018
Nicholas Wilson
Feb 01, 2018
Russel Winder
Jan 31, 2018
Jack Stouffer
Jan 31, 2018
Walter Bright
Feb 01, 2018
Russel Winder
Feb 01, 2018
Benny
Feb 01, 2018
Russel Winder
Feb 01, 2018
Benny
Feb 02, 2018
Russel Winder
Feb 01, 2018
H. S. Teoh
Feb 01, 2018
Seb
Feb 02, 2018
psychoticRabbit
Feb 02, 2018
Seb
Feb 02, 2018
psychoticRabbit
Feb 02, 2018
Nerve
Feb 02, 2018
Russel Winder
Jan 31, 2018
Russel Winder
Jan 31, 2018
12345swordy
Jan 31, 2018
Ali
Feb 07, 2018
data pulverizer
Feb 07, 2018
John Gabriele
Feb 08, 2018
Ralph Doncaster
Feb 09, 2018
Bo
Feb 09, 2018
Mark
Feb 09, 2018
Mengu
Feb 08, 2018
Laeeth Isharc
Feb 09, 2018
Paulo Pinto
Feb 09, 2018
Bo
Feb 09, 2018
Atila Neves
Feb 09, 2018
Jonathan M Davis
Feb 09, 2018
Atila Neves
Feb 09, 2018
Walter Bright
Feb 09, 2018
Mark
Feb 09, 2018
Walter Bright
Feb 09, 2018
Jonathan M Davis
Feb 10, 2018
Walter Bright
Feb 10, 2018
Jonathan M Davis
Feb 09, 2018
H. S. Teoh
Feb 10, 2018
Nick Sabalausky
Feb 11, 2018
Russel Winder
Feb 11, 2018
Walter Bright
Feb 12, 2018
psychoticRabbit
Feb 12, 2018
Ali
Feb 12, 2018
psychoticRabbit
Feb 08, 2018
Ali
Feb 08, 2018
Laeeth Isharc
Feb 11, 2018
psychoticRabbit
Feb 11, 2018
psychoticRabbit
Feb 11, 2018
psychoticRabbit
Feb 11, 2018
psychoticRabbit
Feb 11, 2018
German Diago
January 30, 2018
https://www.quora.com/Why-hasnt-D-started-to-replace-C++

Andrei
January 30, 2018
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

-- 
What is Matter, what is Mind? Never Mind, it doesn't Matter.
January 30, 2018
On Tuesday, 30 January 2018 at 21:02:13 UTC, H. S. Teoh 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?

Well, I understand what you mean, but there are more performance related options for C++ than for any other language at the moment. I don't use them, most people don't, but they exist. So for people that care a lot about throughput there basically is no other "complete" alternative...

January 30, 2018
On Tue, Jan 30, 2018 at 09:26:30PM +0000, Ola Fosheim Grøstad via Digitalmars-d wrote:
> On Tuesday, 30 January 2018 at 21:02:13 UTC, H. S. Teoh 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?
> 
> Well, I understand what you mean, but there are more performance related options for C++ than for any other language at the moment. I don't use them, most people don't, but they exist. So for people that care a lot about throughput there basically is no other "complete" alternative...

Specific examples, please. What are some examples of these "performance related options"?


T

-- 
If it's green, it's biology, If it stinks, it's chemistry, If it has numbers it's math, If it doesn't work, it's technology.
January 30, 2018
Thats not completly true, last time I tried some of best c++ version from http://benchmarksgame.alioth.debian.org/. I was able to write much idiomatic D code which was faster than c++ witch use some specific libraries and so on. So my experience is that D is same or faster than C++

On Tue, Jan 30, 2018 at 10:26 PM, Ola Fosheim Grøstad via Digitalmars-d < digitalmars-d@puremagic.com> wrote:

> On Tuesday, 30 January 2018 at 21:02:13 UTC, H. S. Teoh 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?
>>
>
> Well, I understand what you mean, but there are more performance related options for C++ than for any other language at the moment. I don't use them, most people don't, but they exist. So for people that care a lot about throughput there basically is no other "complete" alternative...
>
>


January 30, 2018
On Tuesday, 30 January 2018 at 21:30:06 UTC, H. S. Teoh wrote:
> On Tue, Jan 30, 2018 at 09:26:30PM +0000, Ola Fosheim Grøstad via Digitalmars-d wrote:
> Specific examples, please. What are some examples of these "performance related options"?

Supported concurrency options and tuning etc.



January 30, 2018
On Tue, Jan 30, 2018 at 09:49:46PM +0000, Ola Fosheim Grøstad via Digitalmars-d wrote:
> On Tuesday, 30 January 2018 at 21:43:45 UTC, Daniel Kozak wrote:
> > Thats not completly true, last time I tried some of best c++ version from http://benchmarksgame.alioth.debian.org/. I was able to write much idiomatic D code which was faster than c++ witch use some specific libraries and so on. So my experience is that D is same or faster than C++
> 
> I'm not thinking about those. I'm thinking about supported tooling that makes you more productive when writing code with high throughput.

That's not what the article says. The article says, and I quote:

	C++’s enormous performance advantage (extremely efficient native
	code)

Meaning, the "enormous performance advantage" is because of "extremely eefficient native code".  I don't argue that C++ has extremely efficient native code. But so has D. So the claim that C++ has an "enormous performance advantage" over D is specious.


T

-- 
Nearly all men can stand adversity, but if you want to test a man's character, give him power. -- Abraham Lincoln
January 30, 2018
On Tuesday, 30 January 2018 at 21:43:45 UTC, Daniel Kozak wrote:
> Thats not completly true, last time I tried some of best c++ version from http://benchmarksgame.alioth.debian.org/. I was able to write much idiomatic D code which was faster than c++ witch use some specific libraries and so on. So my experience is that D is same or faster than C++

I'm not thinking about those. I'm thinking about supported tooling that makes you more productive when writing code with high throughput.

January 30, 2018
Yes, than you are right

On Tue, Jan 30, 2018 at 10:49 PM, Ola Fosheim Grøstad via Digitalmars-d < digitalmars-d@puremagic.com> wrote:

> On Tuesday, 30 January 2018 at 21:43:45 UTC, Daniel Kozak wrote:
>
>> Thats not completly true, last time I tried some of best c++ version from http://benchmarksgame.alioth.debian.org/. I was able to write much idiomatic D code which was faster than c++ witch use some specific libraries and so on. So my experience is that D is same or faster than C++
>>
>
> I'm not thinking about those. I'm thinking about supported tooling that makes you more productive when writing code with high throughput.
>
>


January 30, 2018
On Tuesday, 30 January 2018 at 21:49:39 UTC, H. S. Teoh wrote:
> Meaning, the "enormous performance advantage" is because of "extremely eefficient native code".  I don't argue that C++ has extremely efficient native code. But so has D. So the claim that C++ has an "enormous performance advantage" over D is specious.

Well, it isn't relevant for those people who would adopt D anyway.

Of course, C++ and Java have some advantages by being so large that there is a market for commercial specialty solutions and services... Although most C++ and Java programmers use tooling that is essentially free (well except perhaps the IDE), so for most of them it won't matter.

Even when smaller languages try to implement such tooling/features there isn't a large enough user base to harness the implementation (since even for big languages the actual user base for those features are low), so it is very hard for smaller languages to branch into those special niches unless the whole language feature set is geared towards a specific niche... but that harms adoption too...

« First   ‹ Prev
1 2 3 4 5 6 7 8 9 10 11