Re: [GHC] #1291: Binary Solaris build fails on Solaris 9

2008-10-27 Thread GHC
#1291: Binary Solaris build fails on Solaris 9
--+-
 Reporter:  guest |  Owner:  
 Type:  bug   | Status:  reopened
 Priority:  normal|  Milestone:  _|_ 
Component:  Build System  |Version:  6.6.1   
 Severity:  normal| Resolution:  
 Keywords:| Difficulty:  Unknown 
 Testcase:|   Architecture:  sparc   
   Os:  Solaris   |  
--+-
Comment (by maeder):

 if someone tells me how to build ghc under Solaris 8 using libm.so.1 only,
 I could try it (for the next release). I used to get a mere link error for
 the stage2 compiler without libm.so.2.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1291#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] #2701: Cannot derive Data for structures containing unboxed values

2008-10-27 Thread GHC
#2701: Cannot derive Data for structures containing unboxed values
+---
 Reporter:  batterseapower  |  Owner:  igloo   
 Type:  merge   | Status:  new 
 Priority:  normal  |  Milestone:  
Component:  Compiler|Version:  6.10.1  
 Severity:  normal  | Resolution:  
 Keywords:  | Difficulty:  Unknown 
 Testcase:  deriving/should_fail/T2701  |   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple|  
+---
Changes (by simonpj):

  * testcase:  = deriving/should_fail/T2701
  * difficulty:  = Unknown
  * type:  bug = merge
  * owner:  = igloo

Comment:

 Good point.  Fixed by
 {{{
 Sat Oct 25 18:12:11 GMT Daylight Time 2008  [EMAIL PROTECTED]
   * Fix Trac #2701: make deriving check better for unlifted args
 }}}
 Please merge.

 Simon

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2701#comment:1
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] #2700: Template Haskell pretty printer arrow always associates right

2008-10-27 Thread GHC
#2700: Template Haskell pretty printer arrow always associates right
-+--
 Reporter:  aprocter |  Owner:  igloo   
 Type:  merge| Status:  new 
 Priority:  normal   |  Milestone:  
Component:  Template Haskell |Version:  6.8.3   
 Severity:  normal   | Resolution:  
 Keywords:  th pprint pretty print template  | Difficulty:  Unknown 
 Testcase:  th/T2700 |   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple |  
-+--
Changes (by simonpj):

  * testcase:  = th/T2700
  * difficulty:  = Unknown
  * type:  bug = merge
  * owner:  = igloo

Comment:

 Excellent point.  Fixed by this patch to the `template-haskell` library
 {{{
 Sat Oct 25 17:44:28 GMT Daylight Time 2008  [EMAIL PROTECTED]
   * Fix Trac #2700: pretty-printing of types
 }}}
 Please merge

 Simon

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2700#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] #1291: Binary Solaris build fails on Solaris 9

2008-10-27 Thread GHC
#1291: Binary Solaris build fails on Solaris 9
--+-
 Reporter:  guest |  Owner: 
 Type:  bug   | Status:  closed 
 Priority:  normal|  Milestone:  _|_
Component:  Build System  |Version:  6.6.1  
 Severity:  normal| Resolution:  fixed  
 Keywords:| Difficulty:  Unknown
 Testcase:|   Architecture:  sparc  
   Os:  Solaris   |  
--+-
Changes (by igloo):

  * status:  reopened = closed
  * resolution:  = fixed

Comment:

 I've added a link to this ticket from the 6.8.3 download blurb.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1291#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


[GHC] #2726: getAddrInfo and addrFamily not in scope on Windows GHC 6.8

2008-10-27 Thread GHC
#2726: getAddrInfo and addrFamily not in scope on Windows GHC 6.8
-+--
Reporter:  speaker2machines  |   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Component:  Compiler
 Version:  6.8.3 |Severity:  normal  
Keywords:  netowrk   |Testcase:  
Architecture:  x86   |  Os:  Windows 
-+--
 import Network.Socket

 ... getAddrInfo

 ... addrFamily

 --

 gives me not in scope on Windows.  The same code works on Unix.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2726
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] #2699: broken pipe errors are too noisy

2008-10-27 Thread GHC
#2699: broken pipe errors are too noisy
--+-
 Reporter:  int-e |  Owner:  
 Type:  bug   | Status:  new 
 Priority:  normal|  Milestone:  6.12 branch 
Component:  Runtime System|Version:  6.10.1  
 Severity:  normal| Resolution:  
 Keywords:| Difficulty:  Unknown 
 Testcase:|   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple  |  
--+-
Changes (by igloo):

  * difficulty:  = Unknown
  * milestone:  = 6.12 branch

Comment:

 Would it be best to just keep the errno in the value thrown?

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2699#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


Re: [GHC] #2700: Template Haskell pretty printer arrow always associates right

2008-10-27 Thread GHC
#2700: Template Haskell pretty printer arrow always associates right
-+--
 Reporter:  aprocter |  Owner:  igloo   
 Type:  merge| Status:  new 
 Priority:  normal   |  Milestone:  6.10.1  
Component:  Template Haskell |Version:  6.8.3   
 Severity:  normal   | Resolution:  
 Keywords:  th pprint pretty print template  | Difficulty:  Unknown 
 Testcase:  th/T2700 |   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple |  
-+--
Changes (by igloo):

  * milestone:  = 6.10.1

Old description:

 When I run a Template Haskell-generated tysig declaration through pprint,
 the associativity for - comes out incorrectly, e.g.:

 sigD (mkName foo) [t|(Int - Bool) - Bool|]

 renders as:

 foo :: GHC.Base.Int - GHC.Base.Bool - GHC.Base.Bool

 (note that it's dropping the parens, associating right instead of left)

New description:

 When I run a Template Haskell-generated tysig declaration through pprint,
 the associativity for - comes out incorrectly, e.g.:
 {{{
 sigD (mkName foo) [t|(Int - Bool) - Bool|]
 }}}
 renders as:
 {{{
 foo :: GHC.Base.Int - GHC.Base.Bool - GHC.Base.Bool
 }}}
 (note that it's dropping the parens, associating right instead of left)

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2700#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] #2701: Cannot derive Data for structures containing unboxed values

2008-10-27 Thread GHC
#2701: Cannot derive Data for structures containing unboxed values
+---
 Reporter:  batterseapower  |  Owner:  igloo   
 Type:  merge   | Status:  new 
 Priority:  normal  |  Milestone:  6.10.1  
Component:  Compiler|Version:  6.10.1  
 Severity:  normal  | Resolution:  
 Keywords:  | Difficulty:  Unknown 
 Testcase:  deriving/should_fail/T2701  |   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple|  
+---
Changes (by igloo):

  * milestone:  = 6.10.1

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2701#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


Re: [GHC] #2707: GHCi reports exitWith ExitSuccess as an exception

2008-10-27 Thread GHC
#2707: GHCi reports exitWith ExitSuccess as an exception
--+-
 Reporter:  guest |  Owner:  
 Type:  bug   | Status:  closed  
 Priority:  normal|  Milestone:  
Component:  Compiler  |Version:  6.8.3   
 Severity:  normal| Resolution:  invalid 
 Keywords:| Difficulty:  Unknown 
 Testcase:|   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple  |  
--+-
Changes (by igloo):

  * status:  new = closed
  * resolution:  = invalid

Comment:

 I agree. It might be useful to the user to know that the program
 explicitly exited rather than just finishing, so I think that we should
 leave the behaviour as it is. If anyone feels strongly that this is the
 wrong thing to do, then I suggest bringing it up on the glasgow-haskell-
 users mailing list where more people will see it.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2707#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] #2713: Fixities interact badly with TH under GHC 6.10.1 20081007

2008-10-27 Thread GHC
#2713: Fixities interact badly with TH under GHC 6.10.1 20081007
--+-
 Reporter:  BenMoseley|  Owner:  
 Type:  bug   | Status:  new 
 Priority:  normal|  Milestone:  6.10.1  
Component:  Template Haskell  |Version:  6.10.1  
 Severity:  normal| Resolution:  
 Keywords:| Difficulty:  Unknown 
 Testcase:|   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple  |  
--+-
Changes (by igloo):

  * milestone:  = 6.10.1

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2713#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] #2714: No match in record selector Var.tcTyVarDetails

2008-10-27 Thread GHC
#2714: No match in record selector Var.tcTyVarDetails
--+-
 Reporter:  morrow|  Owner:  merge  
 
 Type:  merge | Status:  new
 
 Priority:  normal|  Milestone:  6.10.1 
 
Component:  Compiler (Type checker)   |Version:  6.10.1 
 
 Severity:  normal| Resolution: 
 
 Keywords:  Var, tcTyVarDetails, record selector  | Difficulty:  Unknown
 
 Testcase:|   Architecture:  
Unknown/Multiple
   Os:  Unknown/Multiple  |  
--+-
Changes (by igloo):

  * milestone:  = 6.10.1

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2714#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] #2717: Add nubWith, nubOrd

2008-10-27 Thread GHC
#2717: Add nubWith, nubOrd
--+-
 Reporter:  Bart Massey   |  Owner:  
 Type:  proposal  | Status:  new 
 Priority:  normal|  Milestone:  Not GHC 
Component:  libraries/base|Version:  
 Severity:  normal| Resolution:  
 Keywords:| Difficulty:  Unknown 
 Testcase:|   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple  |  
--+-
Changes (by igloo):

  * difficulty:  = Unknown
  * milestone:  = Not GHC

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2717#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


Re: [GHC] #2718: Building ghc-6.8.3 with ghc-6.2.2 failed on Red Hat 7.3 machine

2008-10-27 Thread GHC
#2718: Building ghc-6.8.3 with ghc-6.2.2 failed on Red Hat 7.3 machine
--+-
 Reporter:  jputcu|  Owner: 
 Type:  bug   | Status:  closed 
 Priority:  normal|  Milestone: 
Component:  Build System  |Version:  6.8.3  
 Severity:  blocker   | Resolution:  invalid
 Keywords:| Difficulty:  Unknown
 Testcase:|   Architecture:  x86
   Os:  Linux |  
--+-
Changes (by igloo):

  * status:  new = closed
  * difficulty:  = Unknown
  * resolution:  = invalid

Comment:

 Only = 6.4.2 is supported for building 6.8.3, sorry. You should be able
 to build that with 6.2.2.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2718#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


Re: [GHC] #2720: eyeball/inline1 still isn't optimised with -fno-method-sharing

2008-10-27 Thread GHC
#2720: eyeball/inline1 still isn't optimised with -fno-method-sharing
--+-
 Reporter:  rl|  Owner:  
 Type:  run-time performance bug  | Status:  new 
 Priority:  normal|  Milestone:  6.10 branch 
Component:  Compiler  |Version:  6.10.1  
 Severity:  normal| Resolution:  
 Keywords:| Difficulty:  Unknown 
 Testcase:|   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple  |  
--+-
Changes (by igloo):

  * difficulty:  = Unknown
  * milestone:  = 6.10 branch

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2720#comment:1
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] #2721: Newtype deriving doesn't work with type families

2008-10-27 Thread GHC
#2721: Newtype deriving doesn't work with type families
--+-
 Reporter:  rl|  Owner:  
 Type:  bug   | Status:  new 
 Priority:  normal|  Milestone:  6.10.2  
Component:  Compiler  |Version:  6.10.1  
 Severity:  normal| Resolution:  
 Keywords:| Difficulty:  Unknown 
 Testcase:|   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple  |  
--+-
Changes (by igloo):

  * difficulty:  = Unknown
  * milestone:  = 6.10.2

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2721#comment:1
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] #2722: loop when compiling with -O option with ghc-6.10.0.20081019

2008-10-27 Thread GHC
#2722: loop when compiling with -O option with ghc-6.10.0.20081019
---+
 Reporter:  uwe|  Owner: 
 Type:  bug| Status:  new
 Priority:  high   |  Milestone:  6.10.1 
Component:  Compiler   |Version:  6.10.1 
 Severity:  normal | Resolution: 
 Keywords:  Optimization Loop  | Difficulty:  Unknown
 Testcase: |   Architecture:  x86
   Os:  Linux  |  
---+
Changes (by igloo):

  * priority:  normal = high
  * difficulty:  = Unknown
  * milestone:  = 6.10.1

Comment:

 A tar archive would be very useful, thanks!

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2722#comment:1
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] #2718: Building ghc-6.8.3 with ghc-6.2.2 failed on Red Hat 7.3 machine

2008-10-27 Thread GHC
#2718: Building ghc-6.8.3 with ghc-6.2.2 failed on Red Hat 7.3 machine
--+-
 Reporter:  jputcu|  Owner: 
 Type:  bug   | Status:  closed 
 Priority:  normal|  Milestone: 
Component:  Build System  |Version:  6.8.3  
 Severity:  blocker   | Resolution:  invalid
 Keywords:| Difficulty:  Unknown
 Testcase:|   Architecture:  x86
   Os:  Linux |  
--+-
Comment (by jputcu):

 Two notes on that:

 1) At the bottom of http://www.haskell.org/ghc/download_ghc_683.html,
 version 6.0 is mentioned as a requirement, this should then be corrected.

 2) Can't the configure script be used to check correct versions of ghc.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2718#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] #2713: Fixities interact badly with TH under GHC 6.10.1 20081007

2008-10-27 Thread GHC
#2713: Fixities interact badly with TH under GHC 6.10.1 20081007
--+-
 Reporter:  BenMoseley|  Owner:  igloo   
 Type:  merge | Status:  new 
 Priority:  normal|  Milestone:  6.10.1  
Component:  Template Haskell  |Version:  6.10.1  
 Severity:  normal| Resolution:  
 Keywords:| Difficulty:  Unknown 
 Testcase:  th/T2713  |   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple  |  
--+-
Changes (by simonpj):

  * testcase:  = th/T2713
  * owner:  = igloo
  * type:  bug = merge

Comment:

 OK.  Fixed by
 {{{
 Mon Oct 27 22:27:38 GMT Standard Time 2008  [EMAIL PROTECTED]
   * Fix Trac #2713: refactor and tidy up renaming of fixity decls
 }}}
 Pls merge

 Simon

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2713#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] #2725: Remove Hack in compiler/nativeGen/MachCodeGen.hs

2008-10-27 Thread GHC
#2725: Remove Hack in compiler/nativeGen/MachCodeGen.hs
--+-
 Reporter:  clemens   |  Owner:  clemens 
 Type:  bug   | Status:  new 
 Priority:  normal|  Milestone:  6.12 branch 
Component:  Compiler (NCG)|Version:  6.11
 Severity:  minor | Resolution:  
 Keywords:| Difficulty:  Unknown 
 Testcase:|   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple  |  
--+-
Changes (by igloo):

  * difficulty:  = Unknown
  * milestone:  = 6.12 branch

Old description:

 Remove the hack around Line 3914 labeled with:

 -- HACK: On x86_64 binutils2.17 is only able to generate PC32
 -- relocations, hence we only get 32-bit offsets in the jump
 -- table. As these offsets are always negative we need to properly
 -- sign extend them to 64-bit. This hack should be removed in
 -- conjunction with the hack in PprMach.hs/pprDataItem once
 -- binutils 2.17 is standard.

 This bug is intended for house keeping.

New description:

 Remove the hack around Line 3914 labeled with:
 {{{
 -- HACK: On x86_64 binutils2.17 is only able to generate PC32
 -- relocations, hence we only get 32-bit offsets in the jump
 -- table. As these offsets are always negative we need to properly
 -- sign extend them to 64-bit. This hack should be removed in
 -- conjunction with the hack in PprMach.hs/pprDataItem once
 -- binutils 2.17 is standard.
 }}}
 This bug is intended for house keeping.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2725#comment:1
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] #2723: Unnecessary warning for record wildcards

2008-10-27 Thread GHC
#2723: Unnecessary warning for record wildcards
--+-
 Reporter:  judah |  Owner:  
 Type:  bug   | Status:  new 
 Priority:  normal|  Milestone:  6.10 branch 
Component:  Compiler  |Version:  6.8.3   
 Severity:  normal| Resolution:  
 Keywords:| Difficulty:  Unknown 
 Testcase:|   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple  |  
--+-
Changes (by igloo):

  * difficulty:  = Unknown
  * milestone:  = 6.10 branch

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2723#comment:1
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] #2727: DiffArray performance unusable for advertized purpose

2008-10-27 Thread GHC
#2727: DiffArray performance unusable for advertized purpose
-+--
Reporter:  claus |   Owner:   
Type:  run-time performance bug  |  Status:  new  
Priority:  normal|   Component:  libraries (other)
 Version:  6.11  |Severity:  normal   
Keywords:|Testcase:   
Architecture:  Unknown/Multiple  |  Os:  Unknown/Multiple 
-+--
 (cf. this [http://www.haskell.org/pipermail/glasgow-haskell-
 users/2008-October/015851.html ghc-users thread])

 `Data.Array.Diff.DiffArray` is unusably slow. Sometimes even
 `Data.Array.Array` is faster in single-threaded use, defeating the
 purpose. The attached code tries to demonstrate the issue, if I got the
 single-threadedness via `$!` right (default compilation `ghc --make
 SlowDiffArray.hs` gives `Array`, build with `-DUseDiff` to get
 `DiffArray`).

 As I happened to have some older ghcs around, I tried those as well, and
 it seems the issue got worse around 6.8.3 (`SlowDiffArrayA-version`:
 Array; `SlowDiffArrayDA-version`: DiffArray):
 {{{
 $ for i in *.exe ; do  echo $i; time ./$i; done
 SlowDiffArrayA-61120081004.exe
 9990001

 real0m0.307s
 user0m0.015s
 sys 0m0.015s
 SlowDiffArrayA-641.exe
 9990001

 real0m0.261s
 user0m0.030s
 sys 0m0.000s
 SlowDiffArrayA-661.exe
 9990001

 real0m0.260s
 user0m0.015s
 sys 0m0.000s
 SlowDiffArrayA-683.exe
 9990001

 real0m0.232s
 user0m0.015s
 sys 0m0.000s
 SlowDiffArrayDA-61120081004.exe
 9990001

 real0m12.932s
 user0m0.031s
 sys 0m0.000s
 SlowDiffArrayDA-641.exe
 9990001

 real0m7.114s
 user0m0.015s
 sys 0m0.016s
 SlowDiffArrayDA-661.exe
 9990001

 real0m5.774s
 user0m0.015s
 sys 0m0.015s
 SlowDiffArrayDA-683.exe
 9990001

 real0m12.814s
 user0m0.015s
 sys 0m0.000s
 }}}
 (measured on Pentium M 760, 2GHz, Windows XP)

 [the majority of the issue probably lies in the `DiffArray`
 implementation, hence component `libraries`, but it seems that compiler
 and runtime system also play a role]

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2727
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] #2727: DiffArray performance unusable for advertized purpose

2008-10-27 Thread GHC
#2727: DiffArray performance unusable for advertized purpose
--+-
 Reporter:  claus |  Owner:  
 Type:  run-time performance bug  | Status:  new 
 Priority:  normal|  Milestone:  6.12 branch 
Component:  libraries (other) |Version:  6.11
 Severity:  normal| Resolution:  
 Keywords:| Difficulty:  Unknown 
 Testcase:|   Architecture:  Unknown/Multiple
   Os:  Unknown/Multiple  |  
--+-
Changes (by igloo):

  * difficulty:  = Unknown
  * milestone:  = 6.12 branch

Comment:

 Thanks for the report and testcase!

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2727#comment:1
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