Inherent code performance advantages of D over C?

Walter Bright newshound2 at digitalmars.com
Tue Dec 10 19:33:47 PST 2013


On 12/10/2013 4:10 PM, H. S. Teoh wrote:
> On Tue, Dec 10, 2013 at 03:48:51PM -0800, Walter Bright wrote:
>> On 12/10/2013 1:37 PM, H. S. Teoh wrote:
>>> That's not too bad. One of my template-heavy projects take almost 10
>>> seconds to compile just a single source file. And a single string
>>> import can add up to 3-4 seconds (well, probably due to CTFE since I
>>> call split() on the string).
>>
>> That isn't C-style code.
>>
>> The issue is convenience of writing C code in D vs C.
>
> So you're trying to say that it's easier to write C code in D, rather
> than in C?
>
> I thought this thread was about the inherent advantages of D over C.

I was referring specifically to Dicebot's post as ancestor:

-- I think it is better to rephrase it as "writing C code in D is possible but 
even less convenient than in C". --

> And I agree that D has a lot of advantages, but it would be a lie to say
> that there are no disadvantages.

I don't believe anyone made that claim.



More information about the Digitalmars-d mailing list