Re[2]: readArray is faster than unsafeRead

2007-05-29 Thread Bulat Ziganshin
Hello Scott, Wednesday, May 30, 2007, 1:42:22 AM, you wrote: > I've included your implementation for comparison, as well as a simple > pure matrix multiplication function, but I'm having trouble tracking > them down in the profiling. I think all of their cycles are being > counted under main, but

Re: GHC.Prim problem

2007-05-29 Thread Stefan O'Rear
On Tue, May 29, 2007 at 09:58:38PM -0400, Alec Berryman wrote: > Simon Marlow on 2007-05-29 16:05:49 +0100: > > > Ben Sinclair wrote: > > >Hello, I've had a problem with GHC.Prim when compiling the darcs HEAD > > >lately. When I compile it in the normal way with no special options > > > > > >>sh b

Re: GHC.Prim problem

2007-05-29 Thread Alec Berryman
Simon Marlow on 2007-05-29 16:05:49 +0100: > Ben Sinclair wrote: > >Hello, I've had a problem with GHC.Prim when compiling the darcs HEAD > >lately. When I compile it in the normal way with no special options > > > >>sh boot && ./configure && make && make install > > > > It works for me, with last

Re: How to create a GHC binary bundle?

2007-05-29 Thread Ian Lynagh
Hi Maxime, On Sun, May 27, 2007 at 03:58:47AM +0200, Maxime Henrion wrote: > > To be more precise, I want to know how to create the > ghc-$version-$arch-boot.tar.bz2 file to redistribute to users so > that they can build GHC easily, and that on a platform that already > has a working (but older)

Re: readArray is faster than unsafeRead

2007-05-29 Thread Scott Dillard
You're right. I broke them when experimenting to see where the cycles were going. I've fixed them, but the other pair of functions, named gaussElim2, were correct and the issue remains that unsafeRead appears slower than readArray. I've included your implementation for comparison, as well as a si

Re: [slightly OT] ghc-6.6.1 on OpenBSD/i386: internal error (Storage.c)

2007-05-29 Thread Simon Marlow
Matthias Kilian wrote: I'm currently working on updating the GHC port to 6.6.1 for OpenBSD, and when I run the testsuite (ghc-regress), all test cases for the way "threaded1", i.e. debug + threaded bail out with an assertion failure: Blocks: 132 live + 123 free = 255 total (508 around) conc010

Re: GHC.Prim problem

2007-05-29 Thread Simon Marlow
Ben Sinclair wrote: Hello, I've had a problem with GHC.Prim when compiling the darcs HEAD lately. When I compile it in the normal way with no special options sh boot && ./configure && make && make install it compiles correctly, but if I attempt to compile module Main where import GHC.Prim

Re: readArray is faster than unsafeRead

2007-05-29 Thread Mirko Rahn
instead of (!) (or readArray in stateful code) helped a lot. So then I went to optimize my gaussian elimination function and found just the opposite. unsafeRead is slower than readArray. This struck me as very The functions gaussElimSafe and gaussElimUnsafe are different in their outputs (*).

RE: readArray is faster than unsafeRead

2007-05-29 Thread Simon Peyton-Jones
That is indeed odd. As I recall unsafeRead doesn't do array-bound checking, and that ought to be faster, always. I don't have time to look into this myself (soon, anyway), but a) if someone does (look at Core!) I'd be interested to know the outcome b) unless it turns out to be a red herring, wo