Re: [Haskell-cafe] Known Unknowns

2006-02-02 Thread Joel Koerwer
Hey this is great. Chris your improvements are awesome. I mean the speed is nice, but you really cleaned up the code. There's an extraneous call to energy in the second runST block, but it should be insignificant. Also, -fglasgow-exts is necessary for the left-hand-side type declarations of size a

Re: [Haskell-cafe] Known Unknowns

2006-02-02 Thread Donald Bruce Stewart
haskell: > Joel Koerwer wrote: > > Don, that's a great little mini tutorial, exactly what I was hoping for. > > I'm looking forward to learning more tricks. > > > > On an unrelated note, I have an STUArray nbody. I haven't really looked > > closely at the chris+dons version, but I suspect they amo

Re: [Haskell-cafe] Known Unknowns

2006-02-02 Thread Chris Kuklewicz
Joel Koerwer wrote: > Don, that's a great little mini tutorial, exactly what I was hoping for. > I'm looking forward to learning more tricks. > > On an unrelated note, I have an STUArray nbody. I haven't really looked > closely at the chris+dons version, but I suspect they amount to doing > the sa

Re: [Haskell-cafe] Known Unknowns

2006-02-02 Thread Isaac Gouy
--- Ketil Malde <[EMAIL PROTECTED]> wrote: > Isaac Gouy <[EMAIL PROTECTED]> writes: > > > Programmer skill and effort really does matter ;-) > > Yes, more so, than any inherent language > disadvantage, perhaps, which > happens to be the general lesson from the ICFP > contests as well. Any > i

Re: [Haskell-cafe] Known Unknowns

2006-02-02 Thread Ketil Malde
Isaac Gouy <[EMAIL PROTECTED]> writes: > Programmer skill and effort really does matter ;-) Yes, more so, than any inherent language disadvantage, perhaps, which happens to be the general lesson from the ICFP contests as well. Any idea if other languages have seen similar efforts? -k -- If I h

Re: [Haskell-cafe] Known Unknowns

2006-02-01 Thread Isaac Gouy
--- Chris Kuklewicz <[EMAIL PROTECTED]> wrote: -snip,snip- > It is 3rd fastest. > Looking at Just Memory Use, Haskell is 8th > Looking at Just Lines Of Code, Haskell is 1st > Lookat at the 1:1:1 even balance Haskell is 1st Programmer skill and effort really does matter ;-) Congratulations.

Re: [Haskell-cafe] Known Unknowns

2006-02-01 Thread Chris Kuklewicz
Bulat Ziganshin wrote: > Hello Donald, > > Wednesday, February 01, 2006, 8:00:04 AM, you wrote: > DBS> Here's a brief introduction. I intend to write up (on the performance > page on > DBS> the wiki) a list of things we've done to improve the shootout entries. > N.B > DBS> we're now the 3rd *fas

Re[2]: [Haskell-cafe] Known Unknowns

2006-02-01 Thread Bulat Ziganshin
Hello Donald, Wednesday, February 01, 2006, 8:00:04 AM, you wrote: DBS> Here's a brief introduction. I intend to write up (on the performance page on DBS> the wiki) a list of things we've done to improve the shootout entries. N.B DBS> we're now the 3rd *fastest* language, behind C and only a litt

Re: [Haskell-cafe] Known Unknowns

2006-02-01 Thread Joel Koerwer
Don, that's a great little mini tutorial, exactly what I was hoping for. I'm looking forward to learning more tricks.On an unrelated note, I have an STUArray nbody. I haven't really looked closely at the chris+dons version, but I suspect they amount to doing the same thing. I get commensurate runti

Re: [Haskell-cafe] Known Unknowns

2006-02-01 Thread Chris Kuklewicz
Donald Bruce Stewart wrote: > This entry in fact runs faster than the original (though not the new > vectorised > entry) optimised C entry (and faster than all other languages): > > http://shootout.alioth.debian.org/gp4/benchmark.php?test=partialsums&lang=all > > So, by carefully tweaking t

RE: [Haskell-cafe] Known Unknowns

2006-02-01 Thread Simon Peyton-Jones
| Here's a brief introduction. I intend to write up (on the performance page on | the wiki) a list of things we've done to improve the shootout entries. Yes, do put what you wrote before on the Wiki. (The performance-advice page seems to have vanished but it should be on the user-documentation wi

Re: [Haskell-cafe] Known Unknowns

2006-01-31 Thread Donald Bruce Stewart
joelkoerwer: > >Thanks Chris. I was actually asking about analyzing Core >output in general. I'm well aware of the problems we're >having with the nbody entry. >I'm convinced my list based version can go faster than it is >now. That's why I was asking if Don could put together

Re: [Haskell-cafe] Known Unknowns

2006-01-28 Thread Joel Koerwer
Thanks Chris. I was actually asking about analyzing Core output in general. I'm well aware of the problems we're having with the nbody entry.I'm convinced my list based version can go faster than it is now. That's why I was asking if Don could put together a few notes on how to optimize inner loops

Re: [Haskell-cafe] Known Unknowns

2006-01-27 Thread Chris Kuklewicz
Joel Koerwer wrote: > On 1/26/06, *Donald Bruce Stewart* <[EMAIL PROTECTED] > > wrote: > > Ah, i just do: ghc A.hs -O2 -ddump-simpl | less > and then read the Core, keeping an eye on the functions I'm interested > in, and checking they're compiling to the kin

Re: [Haskell-cafe] Known Unknowns

2006-01-26 Thread Joel Koerwer
On 1/26/06, Donald Bruce Stewart <[EMAIL PROTECTED]> wrote:  Ah, i just do: ghc A.hs -O2 -ddump-simpl | lessand then read the Core, keeping an eye on the functions I'm interestedin, and checking they're compiling to the kind of loops I'd write byhand. This is particularly useful for the kinds of ti

Re: [Haskell-cafe] Known Unknowns

2006-01-26 Thread Donald Bruce Stewart
haskell: > Donald Bruce Stewart wrote: > > haskell: > >> There is a new combined benchmark, "partial sums" that subsumes several > >> earlier > >> benchmarks and runs 9 different numerical calculations: > >> > >> http://haskell.org/hawiki/PartialSumsEntry > > > > Ah! I had an entry too. I've post

Re: [Haskell-cafe] Known Unknowns

2006-01-26 Thread Chris Kuklewicz
Donald Bruce Stewart wrote: > haskell: >> There is a new combined benchmark, "partial sums" that subsumes several >> earlier >> benchmarks and runs 9 different numerical calculations: >> >> http://haskell.org/hawiki/PartialSumsEntry > > Ah! I had an entry too. I've posted it on the wiki. I was c

Re: [Haskell-cafe] Known Unknowns

2006-01-25 Thread Donald Bruce Stewart
haskell: > There is a new combined benchmark, "partial sums" that subsumes several > earlier > benchmarks and runs 9 different numerical calculations: > > http://haskell.org/hawiki/PartialSumsEntry Ah! I had an entry too. I've posted it on the wiki. I was careful to watch that all loops are com

[Haskell-cafe] Known Unknowns

2006-01-25 Thread Chris Kuklewicz
There is a new combined benchmark, "partial sums" that subsumes several earlier benchmarks and runs 9 different numerical calculations: http://haskell.org/hawiki/PartialSumsEntry I took the Clean entry and, since there were so many recursive computations, I made compute and altCompute higher orde