Inherent code performance advantages of D over C?

Araq rumpf_a at web.de
Mon Dec 9 11:45:33 PST 2013


On Monday, 9 December 2013 at 19:19:46 UTC, Walter Bright wrote:
> On 12/9/2013 6:24 AM, Araq wrote:
>> ("When in doubt, assume it modifies this location.")
>
> And it's usually in doubt, often enough to make that 
> optimization a pipe dream.
>

I disagree.

>
>>> (2) is impractical because there's no way for the programmer 
>>> to detect if his
>>> call stack is pure or not, so he can't reasonably fix it to 
>>> make it pure.
>>
>> Well look at the subject: "inherent" vs "practical".
>
> When you're dealing with real code, it might as well be 
> inherent.

*shrug* so go ahead and redefine the meaning of words as you 
please.

That language X is faster than C in "practice" because X is much 
more developer friendly and thus you can tweak your code much 
easier etc. is an argument of every language out there.


More information about the Digitalmars-d mailing list