OT (partially): about promotion of integers

Timon Gehr timon.gehr at gmx.ch
Fri Dec 14 01:03:29 PST 2012


On 12/13/2012 10:28 PM, SomeDude wrote:
> On Thursday, 13 December 2012 at 01:51:27 UTC, Timon Gehr wrote:
>>
>> Certainly, you can argue that the faster version should be in a
>> prominent place in the standard library, but the fact that it is not
>> does not indicate a fundamental performance problem in the Haskell
>> language. Also, note that I am completely ignoring what kind of code
>> is idiomatic in both languages. Fast Haskell code often looks similar
>> to C code.
>>
> Well, you can write C code in D.
> You can compare top performance for both languages, but the fact is, if
> you write Haskell code extensively, you aren't going to write it like C,
> so comparing idiomatic Haskell vs idiomatic D does make sense.

Optimizing bottlenecks is idiomatic in every language.

> And comparing programs using the standard libraries also makes sense because
> that's how languages are used. It probably doesn't make much sense in a
> microbenchmark, but in a larger program it certainly does. ...

That is not what we are arguing.


More information about the Digitalmars-d mailing list