Re: [Haskell-cafe] NumberTheory library

2005-05-09 Thread ajb
G'day all. Quoting Jan-Willem Maessen <[EMAIL PROTECTED]>: > How about one that's actually H98? The types here aren't *that* > fiddly... :-) Well, part of what I was doing was experimenting with what a library like this should look like, even more than what it should do. For some reason, I kin

Re: [Haskell-cafe] NumberTheory library

2005-05-09 Thread Jan-Willem Maessen
On May 9, 2005, at 8:34 PM, [EMAIL PROTECTED] wrote: G'day all. Quoting Bo Herlin <[EMAIL PROTECTED]>: Great, why not put these together in a first attempt of making a standard library? As promised, here's the first attempt: darcs get http://andrew.bromage.org/darcs/numbertheory/ How about

Re: [Haskell-cafe] NumberTheory library

2005-05-09 Thread ajb
G'day all. Quoting Bo Herlin <[EMAIL PROTECTED]>: > Great, why not put these together in a first attempt of making a > standard library? As promised, here's the first attempt: darcs get http://andrew.bromage.org/darcs/numbertheory/ Cheers, Andrew Bromage ___

[Haskell-cafe] FW: GHC.Prim.realWorld

2005-05-09 Thread Simon Peyton-Jones
| I'd like to know what the function GHC.Prim.realWorld does exactlly | in the STG code below: Think of it as a fixed value. We want the join point $w$j to be a function, with at least one argument, otherwise it'll be evaluated eagerly (since it has a primitive type), which is semantically wro

Re: [Haskell-cafe] Specify array or list size?

2005-05-09 Thread Benjamin Franksen
On Saturday 07 May 2005 18:22, Sebastian Sylvan wrote: > On 5/7/05, Daniel Carrera <[EMAIL PROTECTED]> wrote: > > Hamilton Richards wrote: > > > Well, for starters, lists and arrays are two entirely different topics. > > > I've noticed that Haskell newbies sometimes confuse them --possibly the > >

[Haskell-cafe] Haskell for non-mathematicians (was: Specify array or list size?)

2005-05-09 Thread Graham Klyne
At 13:08 07/05/05 -0400, David Roundy wrote: On Sat, May 07, 2005 at 12:40:55PM -0400, Daniel Carrera wrote: > In your opinion, do you think Haskell is appropriate for someone with > zero math background? I can't imagine how I'd explain something like > currying to someone who doesn't know math. I'

Re: [Haskell-cafe] Squashing space leaks

2005-05-09 Thread Jerzy Karczmarczuk
Daniel Fischer wrote: If the algorithm - including dt - is prescribed, fine, but I wonder what sort of deviation physicists would consider acceptable. For dt = 0.01, k = 2000 we have a relative error of about 2*10^(-5), is that within accepted bounds or not? (Any physicists hang about here?) I

Re: [Haskell-cafe] Squashing space leaks

2005-05-09 Thread Daniel Fischer
Am Montag, 9. Mai 2005 05:38 schrieb Greg Buchholz: > Daniel Fischer wrote: > > One question: the energy of the system should be constant - that little > > physics I know. What I don't know is whether the change in energy in this > > simulation is within usual, reasonable bounds or not. If not, is