Time for #AskTwitter, round ++n: (topics: #Haskell #musl #floats)
So if I build GHC w/musl vs w/glibc, I'm seeing:
`echo exp 1 | ghci`
* glibc: 2.718281828459045
* musl: 2.7182818284590455 <-- additional '5' at end
Lots going on, any hunches/insights what'd cause this?
-
Show this thread
-
1 reply 0 retweets 0 likesShow this thread
-
Here's some related bit from GHC, but would explain general SNAFU not musl vs glibc AFAICT? https://github.com/ghc/ghc/blob/1c3536239cb5e83ff1427ac410d8fa2549e7d9c0/compiler/nativeGen/X86/Instr.hs#L135 …
2 replies 0 retweets 0 likesShow this thread
Replying to @wdtz
If GHC is setting the fpucw to something invalid (Intel's fake 64-bit precision) then everything is a steaming pile of UB.
5:54 PM - 11 Jul 2018
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.