Re: [GHC] #2793: CLDouble is nothing like a long double
#2793: CLDouble is nothing like a long double -+-- Reporter: jedbrown |Owner: igloo Type: bug | Status: closed Priority: high |Milestone: 6.12.1 Component: libraries/base| Version: 6.11 Severity: normal| Resolution: fixed Keywords:| Difficulty: Unknown Testcase:| Os: Unknown/Multiple Architecture: Unknown/Multiple | -+-- Changes (by igloo): * status: new = closed * resolution: = fixed Comment: I've removed GHC's CLDouble pretense, and opened #3353 Add CLDouble support to add proper support. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2793#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2793: CLDouble is nothing like a long double
#2793: CLDouble is nothing like a long double -+-- Reporter: jedbrown |Owner: igloo Type: bug | Status: new Priority: high |Milestone: 6.12.1 Component: libraries/base| Version: 6.11 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Os: Unknown/Multiple Architecture: Unknown/Multiple | -+-- Comment (by simonmar): Wouldn't we have to implement long double as a new primitive type in GHC, provide support in all the code generators, including support for passing long double to C functions in all the native backends? It's a lot of work. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2793#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2793: CLDouble is nothing like a long double
#2793: CLDouble is nothing like a long double -+-- Reporter: jedbrown |Owner: igloo Type: bug | Status: new Priority: high |Milestone: 6.12.1 Component: libraries/base| Version: 6.11 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Os: Unknown/Multiple Architecture: Unknown/Multiple | -+-- Comment (by igloo): Well, currently it doesn't provide quad precision anyway, so nothing is lost by removing it. However, there are a couple of issues with removing it: * The FFI addendum says that we should provide it * The code is a CPP tangle with the GHC, hugs and nhc implementations of it. I don't know if anything ''really'' implements it. There's also more work involved in implementing it than I'd previously realised. I'll revisit it after removing decodeDoubleInteger. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2793#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2793: CLDouble is nothing like a long double
#2793: CLDouble is nothing like a long double -+-- Reporter: jedbrown |Owner: igloo Type: bug | Status: new Priority: high |Milestone: 6.12.1 Component: libraries/base| Version: 6.11 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Os: Unknown/Multiple Architecture: Unknown/Multiple | -+-- Changes (by simonmar): * owner: = igloo Comment: Let's just remove it. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2793#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2793: CLDouble is nothing like a long double
#2793: CLDouble is nothing like a long double -+-- Reporter: jedbrown |Owner: igloo Type: bug | Status: new Priority: high |Milestone: 6.12.1 Component: libraries/base| Version: 6.11 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Os: Unknown/Multiple Architecture: Unknown/Multiple | -+-- Comment (by jedbrown): I personally don't have a problem with that, but some people care a lot about quad precision, mostly for very ill-conditioned problems or in order to get away with a numerically unstable method. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2793#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2793: CLDouble is nothing like a long double
#2793: CLDouble is nothing like a long double -+-- Reporter: jedbrown |Owner: Type: bug | Status: new Priority: high |Milestone: 6.12.1 Component: libraries/base| Version: 6.11 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Os: Unknown/Multiple Architecture: Unknown/Multiple | -+-- Changes (by igloo): * priority: normal = high * milestone: 6.12 branch = 6.12.1 Comment: Sounds reasonable, and like it should be easy to fix. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2793#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #2793: CLDouble is nothing like a long double
#2793: CLDouble is nothing like a long double -+-- Reporter: jedbrown | Owner: Type: bug | Status: new Priority: normal| Component: Compiler Version: 6.11 |Severity: normal Keywords:|Testcase: Architecture: Unknown/Multiple | Os: Unknown/Multiple -+-- This affects all versions of GHC. Why does the type exist when it is just a synonym for CDouble? Either it should actually become a `long double' as the documentation says or it should just not exist. From Foreign/C/Types.hs: {{{ -- HACK: Currently no long double in the FFI, so we simply re-use double -- | Haskell type representing the C @long double@ type. FLOATING_TYPE(CLDouble,tyConCLDouble,CLDouble,HTYPE_DOUBLE) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2793 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs