Re: More on randoms

2000-02-07 Thread Matt Harden
> So this is really an appeal for code contributions from people who know > the subject intimately. nhc98 has the same primitive FFI as Hugs/ghc, > so in theory, one good implementation in a mixture of C + Haskell > should work for all systems. If you have written one, please make it > available

Re: rounding in haskell

2000-02-07 Thread Julian Assange
Lennart Augustsson <[EMAIL PROTECTED]> writes: > Haskell performs no worse or better than C. Your comment about how math > libraries round might be accurate for some languages, but for C it's pure nonsense. It seems that you are right in this instance. However I recall seeing comments about err

Re: overlapping instances

2000-02-07 Thread Carl R. Witty
"Jeffrey R. Lewis" <[EMAIL PROTECTED]> writes: > Marcin 'Qrczak' Kowalczyk wrote: > > Parts of context reduction must be deferred, contexts must be left > > more complex, which as I understand leads to worse code - only to > > make overlapping instances behave consistently, even where they are >

rounding in haskell

2000-02-07 Thread Julian Assange
The precission and or rounding used by hugs/ghc seems strange, to wit: Prelude> sin(pi) -8.74228e-08 Prelude> pi 3.14159 sin(3.14159265358979323846) -8.74228e-08 ghc: module Main where main = do print pi print (sin pi) ./a.out 3.141592653589793 1.2246467991473532e-16 While th

Re: random number seeds

2000-02-07 Thread Michael Hobbs
I believe that there is a nanosecond value in one of the data types specified in the Time module. (One of the Haskell 98 libraries) I don't know if Hugs supports that module, though. I know GHC does. Nick Eby wrote: > > Is there a straightforward way to access the current system time in > haskel

random number seeds

2000-02-07 Thread Nick Eby
Is there a straightforward way to access the current system time in haskell, in order to give a seed to a random number generator without explicitly asking the user for one? --- nick eby [EMAIL PROTECTED]

Re: rounding in haskell

2000-02-07 Thread Lennart Augustsson
Julian Assange wrote: > The precission and or rounding used by hugs/ghc seems strange, to wit: > > Prelude> sin(pi) > -8.74228e-08 > Prelude> pi > 3.14159 > sin(3.14159265358979323846) > -8.74228e-08 > > ghc: > > module Main where > main = do > print pi > print (sin pi) > > ./a.ou

Re: overlapping instances

2000-02-07 Thread Jeffrey R. Lewis
Marcin 'Qrczak' Kowalczyk wrote: > Sun, 06 Feb 2000 23:21:38 -0800, Jeffrey R. Lewis <[EMAIL PROTECTED]> pisze: > > > If context reduction choses a more generic instance when a more > > specific one exists, then I consider that a bug. > >

Re: overlapping instances

2000-02-07 Thread Marcin 'Qrczak' Kowalczyk
Sun, 06 Feb 2000 23:21:38 -0800, Jeffrey R. Lewis <[EMAIL PROTECTED]> pisze: > If context reduction choses a more generic instance when a more > specific one exists, then I consider that a bug. Section 4.4 Parts of context reducti

New PhD positions at Chalmers

2000-02-07 Thread K. V. S. Prasad
Please pass on to interested students. Apologies for multiple copies. New PhD Positions(DEADLINE 1 March 2000! See "How to apply" below.) Department of Computing Science, Chalmers University of Technology and Göteborgs Uni

Invitation to IFL2000

2000-02-07 Thread Olaf Chitil
This is the first invitation and call for contributions to the 12th INTERNATIONAL WORKSHOP on the IMPLEMENTATION of FUNCTIONAL LANGUAGES (IFL2000) ==

Re: interfacing to .sgf files

2000-02-07 Thread reig
> > i'm looking for Haskell code to read/handle/write .sgf files/game trees > (= smart game format, http://www.red-bean.com/sgf/user_guide/index.html) > -- > -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- > -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/209 -- >

interfacing to .sgf files

2000-02-07 Thread Johannes Waldmann
i'm looking for Haskell code to read/handle/write .sgf files/game trees (= smart game format, http://www.red-bean.com/sgf/user_guide/index.html) -- -- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ -- -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/209 --

Re: More on randoms

2000-02-07 Thread Malcolm Wallace
> What about the other Haskell implementations? > Do any of them implement the Haskell 98 Random module yet? nhc98 does not yet implement Random, for the following reasons: * substantial changes were made to the specification at a very late stage; * from the discussions then (when H'98 w