Re: [Haskell-cafe] OCaml list sees abysmal Language Shootout results

2004-10-06 Thread Ketil Malde
Greg Buchholz <[EMAIL PROTECTED]> writes: > I've been looking at the other shootout results (with the hope of > learning something about making haskell programs faster/less memory > hungry) and I couldn't quite figure out why the "Hashes, part II" test > comsumes so much memory ( http://shooto

Re: [Haskell-cafe] OCaml list sees abysmal Language Shootout results

2004-10-06 Thread Ketil Malde
Ketil Malde <[EMAIL PROTECTED]> writes: > To get memory consumption down, I tried a strict "update" function: >update k fm = let x = (get hash1 k + get fm k) > in x `seq` addToFM fm k x > which slowed the program down(!), I wonder if this isn't due to never evaluating the

[Haskell-cafe] Re: What Functions are Standard?

2004-10-06 Thread John Goerzen
On 2004-10-06, Glynn Clements <[EMAIL PROTECTED]> wrote: > I can't comment on nhc98, but the Haskell98 standard doesn't include > any mechanism for binary I/O. Ouch. That seems like a major oversight to me. Will there be any effort to fix that in the future? -- John __

[Haskell-cafe] Re: How do I get a long iteration to run in constant space

2004-10-06 Thread W M
I take it that the extra case always fails but forces the arguments to be evaluated? Nice trick. Thanks! --wgm --- [EMAIL PROTECTED] wrote: > > I added two lines to your code: > > iterate2 f x n | seq f $ seq x $ seq n $ False = > undefined > iterate2 f x n = --- as before > > rk4Next f h (

Re: [Haskell-cafe] Re: What Functions are Standard?

2004-10-06 Thread Malcolm Wallace
John Goerzen <[EMAIL PROTECTED]> writes: > On 2004-10-06, Glynn Clements <[EMAIL PROTECTED]> wrote: > > I can't comment on nhc98, but the Haskell98 standard doesn't include > > any mechanism for binary I/O. > > Ouch. That seems like a major oversight to me. Will there be any > effort to fix tha

Re: [Haskell-cafe] Re: What Functions are Standard?

2004-10-06 Thread Glynn Clements
Malcolm Wallace wrote: > > > I can't comment on nhc98, but the Haskell98 standard doesn't include > > > any mechanism for binary I/O. > > > > Ouch. That seems like a major oversight to me. Will there be any > > effort to fix that in the future? > > Note that, on Unix-like systems, there is no

[Haskell-cafe] Re: OCaml list sees abysmal Language Shootout results

2004-10-06 Thread Andre Pang
On 29/09/2004, at 8:41 AM, Graham Klyne wrote: I can see that this requires the original file to be kept for 3-time scanning, so enough memory for the entire file will be required. Is that *the* problem to which you allude? I can't see any other problem here. And why would this put Haskell a

Re: [Haskell-cafe] Re: OCaml list sees abysmal Language Shootout results

2004-10-06 Thread Tomasz Zielonka
On Wed, Oct 06, 2004 at 01:23:56PM -0400, Andre Pang wrote: > I've been watching this thread with interest, and posted my own > thoughts on this thread and Haskell's performance in general as a blog > entry. Rather than repeat it all here, I'll post a link to it: > > http://www.algorithm.com.

Re: [Haskell-cafe] OCaml list sees abysmal Language Shootout results

2004-10-06 Thread Greg Buchholz
Ketil Malde wrote: > Ketil Malde <[EMAIL PROTECTED]> writes: > > > To get memory consumption down, I tried a strict "update" function: > > >update k fm = let x = (get hash1 k + get fm k) > > in x `seq` addToFM fm k x > > > which slowed the program down(!), Yes that fi

Re: [Haskell-cafe] Integrating Haskell into a J2EE environment

2004-10-06 Thread Paul Hudak
I wouldn't write off Haskell so quickly. All of what Shoeb describes concerning DSL issues might be much more easily solved in Haskell, and will certainly be more flexible than a hard-wired approach. The J2EE interface might be ugly, but if the functionality needed is not too great it might n

Re: [Haskell-cafe] Integrating Haskell into a J2EE environment

2004-10-06 Thread Doug Kirk
Yes, I agree, and didn't mean to write off Haskell (at which, I'm completely a newbie, trying to learn, and thankful for your book!). However, I'm a Java pro, and there are many technical issues on the Java side that scream at me to keep out of the native arena, especially in a J2EE container e

Re: [Haskell-cafe] Integrating Haskell into a J2EE environment

2004-10-06 Thread Paul Hudak
Ok, I understand. I don't know much at all about J2EE, in fact! I would just hate to see an interesting project be abandoned if all that is needed is a simple way to invoke the Haskell code with a string argument, say. Perhaps Shoeb can tell us more about what he needs. -Paul Doug Kirk wro

Re: [Haskell-cafe] Integrating Haskell into a J2EE environment

2004-10-06 Thread Vincenzo Ciancia
On Tuesday 05 October 2004 23:33, Bhinderwala, Shoeb wrote: > I came across a few papers that talk about writing a DSL with Haskell > as the underlying support language. How is this done. Is it possible > to create a sort of domain specific business scripting language > easily. How does that then c

[Haskell-cafe] 500 great lines of Haskell code?

2004-10-06 Thread Isaac Jones
This might be an interesting way to highlight the beauty and brevity of Haskell. Has anyone written a great 500-line Haskell program they want to submit? peace, isaac http://developers.slashdot.org/article.pl?sid=04/10/06/1530218&tid=156&tid=8 "Be part of the Open Source Annual 2005 and ent

[Haskell-cafe] Asteroids game, (was Space leaks)

2004-10-06 Thread Ben Lippmeier
Andy, For the asteroids game, I just call GHC's System.Mem.performGC every frame and it seems to run ok. It's a very simple game, my 2.6Ghz P4 system walks all over it and the FPS counter seems to bounce around from about 150 to 300. I would imagine it's spending all it's time in the big XFillR