#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11
Top Prev 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 Next
#haskell
<lambdabot> Title: Create your own Overall Scores | Debian : AMD™ Sempron™ The Sandbox, http://tinyurl.com/ycoslq
<nmessenger> you could also use an explicit RNG instead of the global one in IO
<sorear> every time you look at it it produces a different answer
<dons> :t randomRs
<lambdabot> forall a g. (Random a, RandomGen g) => (a, a) -> g -> [a]
<sorear> bo: what do you mean "jump"?
<thorat> I'm trying to build lambdabot and get "Setup.hs: cannot satisfy dependency plugins>=1.0",
<dons> bo, we ported the old entries to use ghc 6.6 (i.e. fixed broken entries)
<thorat> and can't find the package in debian
<dons> so it climbed back up to where it wsa this time ast year
<chessguy> thorat, you can remove that dependency
<bo> I remember that haskell was not as high as now
<bo> I remember clean is better than haskell before
<sorear> bo: ghc is much faster (though still much slower than the unmaintained-since-<95 hbc on some nobench tests)
<dons> yeah, for the last couple of months its been falling, since the entries weren't maintained, and some broke with ghc 6.6
<dons> we just fixed those entries (remembe rthis time last year ghc 6.4.2 was ranked first overall...)
<bo> ah I see. interesting
<dons> sorear's advocating hbc now ;)
<thorat> chessguy: sorry, how? <- newbie
<iron32> d10 :: IO Int
<iron32> d10 = getStdRandom ( randomR(1, 10)) how do I do a stream of random ints
<chessguy> thorat, edit the .cabal file and remove the part about plugins
<bo> is there any apt source for ghc6.6 on ubuntu?
<thorat> chessguy: oh, and fps as well?
<thorat> chessguy: apt-cache search haskell fps, returned nothing
<chessguy> if you have GHC 6.6 you can remove that, yes
<iron32> sorear does Hbc conform to Haskell 98 It seems to say Haskell 1.4
<thorat> chessguy: thanks, I did
<nmessenger> > randomRs (1,10) (mkStdGen 42) -- iron32, use some flavor of 'randoms'
<lambdabot> [2,2,8,5,7,2,9,2,9,6,6,10,7,9,5,6,8,2,4,7,7,5,3,5,7,5,1,9,4,5,5,6,3,3,7,4,5,...
<thorat> chessguy: and I have
<sorear> > let lagfib = drop 100000 $ fix (([(0::Int)..607] ++) . liftM2 (zipWith (+)) (drop 607) (drop 273)) in map ((+5) . (`div` 214748364)) lagfib -- muahahaha
<lambdabot> [3,3,6,1,3,0,-5,1,-3,7,-5,-2,-4,3,2,1,-1,12,8,14,1,-1,6,6,8,-1,3,12,1,-4,-3,...
<thorat> $ ./build; spits out "scripts/BotPP.hs:41:25: Not in scope: `B.breakChar'"
<sorear> > let lagfib = drop 100000 $ fix (([(0::Int)..607] ++) . liftM2 (zipWith (+)) (drop 607) (drop 273)) in map ((+10) . (`div` 214748364)) lagfib -- muahahaha
<lambdabot> [8,8,11,6,8,5,0,6,2,12,0,3,1,8,7,6,4,17,13,19,6,4,11,11,13,4,8,17,6,1,2,16,1...
<thorat> ... when building lambdabot on debian etch ghc 6.6
<iron32> how do you send code to lambdabot ?
<sorear> darcs send
<sorear> or did you mean > foo ?
<sorear> > 2 + 2
<lambdabot> 4
<iron32> > 2 + 2
<lambdabot> 4
<iron32> thats what I meant
<nmessenger> the '>' command is short for @run
<nmessenger> @list
<lambdabot> http://www.cse.unsw.edu.au/~dons/lambdabot/COMMANDS
<iron32> > randomRs(1,10)
<lambdabot> Add a type signature
Previous Page Next Page