-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Many ocean.math unittests fail when built with LDC #730
Comments
Some of these tests seems extremely reasonable, and shouldn't be failing. |
TBH I wonder if we shouldn't just import/alias from phobos try to drop as much as possible of |
At the moment |
Honestly I'm horrified at some of the changes that were made to this module in Phobos. There's some good fixes which we want, that's all. |
Could we have a chat about that some time so that I get a good list of what those horror changes are? I remember |
I've given a go to building ocean v5.0.x tests with
ldmd2
instead ofdmd
(v5.0.x because it includes thegetIeeeFlags
fix that was a blocker to using compilers other than DMD). The command used was:... with LDC 1.16.0 being used to test (matching DMD 2.086.1).
My suspicion (not yet confirmed) is that all of these reflect LDC using different core math routines to DMD (e.g. implementation of cos, sin, sqrt, etc.). I suspect that similar results might be obtained for GDC, for similar reasons.
No worries if this is a WONTFIX (or at least very low priority) from the maintainers' side, but since I went through this all systematically today I thought I'd share the results.
The following unittests all fail when LDC is used:
ocean.math.Elliptic
:ocean/src/ocean/math/Elliptic.d
Line 349 in 63ef0e8
ocean.math.Probability
:ocean/src/ocean/math/Probability.d
Lines 261 to 271 in 63ef0e8
ocean/src/ocean/math/Probability.d
Line 368 in 63ef0e8
ocean.math.Math
:ocean/src/ocean/math/Math.d
Line 422 in 63ef0e8
ocean/src/ocean/math/Math.d
Lines 428 to 429 in 63ef0e8
ocean/src/ocean/math/Math.d
Line 435 in 63ef0e8
ocean/src/ocean/math/Math.d
Line 490 in 63ef0e8
ocean/src/ocean/math/Math.d
Lines 513 to 514 in 63ef0e8
ocean/src/ocean/math/Math.d
Line 632 in 63ef0e8
ocean/src/ocean/math/Math.d
Line 740 in 63ef0e8
ocean/src/ocean/math/Math.d
Line 762 in 63ef0e8
ocean/src/ocean/math/Math.d
Line 976 in 63ef0e8
ocean/src/ocean/math/Math.d
Line 1504 in 63ef0e8
ocean/src/ocean/math/Math.d
Line 1506 in 63ef0e8
The text was updated successfully, but these errors were encountered: