maybe a floating point issue?

Sergey kornburn at yandex.ru
Fri Sep 19 20:46:27 UTC 2025


On Friday, 19 September 2025 at 20:33:31 UTC, czylabsonasa wrote:
>>
>> Not sure why this happens with GDC on -O2, I think LDC would 
>> refrain from changing results by default.
>
> Timon, good finding! Then, with D, on the kattis site we should 
> begin with the second step :-) I'm not happy about it, bcos 
> there are plenty of interesting geometry/probability tasks on 
> that site, where floating point numbers and (naturally) higher 
> dim. arrays involved,
> instead of focusing the problem, we must fight with 
> language/compiler.

Maybe we should submit a ticket with request to change the 
compiler to ldc?
I saw they are using many GNU languages (C,C++,Fortran,Modula-2).

But they also have LLVM langs (Rust, Crystal).
So it should not be a huge problem to install LDC instead of GDC 
in their environment.


More information about the Digitalmars-d mailing list