Investigation: downsides of being generic and correct

John Colvin john.loughran.colvin at gmail.com
Fri May 17 04:43:42 PDT 2013


On Friday, 17 May 2013 at 11:26:27 UTC, deadalnix wrote:
> On Friday, 17 May 2013 at 10:09:11 UTC, John Colvin wrote:
>> If naive D code has to be significantly faster than optimised 
>> C for people to not go "D sucks, it's only as fast as python" 
>> then we're pretty much doomed by peoples stupidity.
>
> No. The whole benefit of D is lost if you have to tweak 
> everything in complex way to get it run fast.

Define fast.

In some cases, if a naive call to a generic phobos function is as 
fast as an equivalent python library function then i'd say that's 
pretty good. Those python library functions are often 
impressively fast.


More information about the Digitalmars-d mailing list