Benchmarks - LDC vs GDC

bachmeier no at spam.net
Thu Jun 29 14:03:59 UTC 2023


On Thursday, 29 June 2023 at 05:23:29 UTC, Cecil Ward wrote:
> On Thursday, 29 June 2023 at 04:41:54 UTC, Walter Bright wrote:
>> On 6/28/2023 4:29 PM, Cecil Ward wrote:
>>> Isn’t the main thing ignoring infinities and NaNs? I don’t 
>>> think that’s all there is to it though. I would say, in my 
>>> extremely limited exposure to floating point, that
>> I forgot precisely what it did, but it takes shortcuts. I just 
>> concluded "nope" to that.
>>
>> > if you have debugged your code then infinities and NaNs
>> should not
>> > be encountered anyway
>>
>> Famous last words.
>
> I truly hear you. :-) It rather depends on the particular 
> situation, but then what do I know, seeing as floating point is 
> not my thing at all. I will educate myself if I ever go down 
> that particular road and take on board what you have said.

-ffast-math is a good idea until you think about it. This is [a 
good blog post on 
-ffast-math](https://kristerw.github.io/2021/10/19/fast-math/). 
There are probably valid use cases for it, but we have high-level 
languages for a reason.


More information about the Digitalmars-d mailing list