#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 12
Top Prev 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 Next
#haskell
<dons> the rest i'll add soon
<dons> (have to manually convert the makefiles)
<slowriot> hiding worked
<sorear> yay
<JohnMeacham> ah. yeah, some also needed some tweaks to make them H98 if I remember.
<dons> yeah
<chessguy> > 1000000 :: Double
<lambdabot> 1000000.0
<chessguy> > 10000000000000000000000 :: Double
<lambdabot> 1.0e22
<sorear> well ejthecnar doesn't to h98, only h' :P
<sorear> s/to/do
<chessguy> ?instances Bounded
<lambdabot> (), (a, b), (a, b, c), All, Any, Bool, Char, Int, Ordering, Product a, Sum a
<chessguy> ah
<sorear> haskell98 fails to compile because System.IO.Error doesn't exist
<chessguy> is Double arithmetic as slow as Integer arithmetic then?
<sorear> why?
<bd_> Double arithmetic is a machine type
<sorear> it uses double precision floating point
<chessguy> oh, so it's not arbitrary precision
<dons> chessguy: you need {-# OPTIONS -fexcess-precision #-} if you care about Double speed.
<JohnMeacham> sorear h' + SuperSecretUndocumentedJhcExtensions actually.
<sorear> nah!
<bd_> particularly with -fexcess-precision (note: due to a ghc bug, must be in an OPTIONS_GHC pragma) it should be faster
<xpika> does anyone know a language with dynamic datatypes?
<sorear> Haskell!
<sorear> Data.Dynamic
<dons> xpika: that phrase is ambiguous. coudl you clarify?
<JohnMeacham> I keep meaning to write a perl script to pull documentation out of the source files and arrange it into a manual nicely. sort of like what darcs does. but without doing lhs.
<sorear> > ((1.0e-20 + 1) - 1) :: Double --chessguy, look here
<lambdabot> 0.0
<JohnMeacham> a manual would certainly help jhc's adoption I would think.
<sorear> > (1.0e-20 + (1 - 1)) :: Double --chessguy, look here
<lambdabot> 1.0e-20
<lispy> JohnMeacham: just start a wikibook on it
<lispy> JohnMeacham: and let the users document it! ;)
<sm> do you all use unit tests, or do you consider them unnecessary with haskell ?
<chessguy> sorear, your point?
<lispy> sm: necessary
<sorear> JohnMeacham: so would it not failing every nontrivial compile with Grin.FromE.toType: ELit (Jhc.Order.Bool#::ESort #)
<lispy> sm: small check, quick check and hunit are all goood places to start
<chessguy> ?hoogle QuickCheck
<lambdabot> Test.QuickCheck :: module
<lambdabot> Test.QuickCheck.quickCheck :: Testable a => a -> IO ()
<chessguy> sm, ^^
<lispy> ?check 1 == 1
<lambdabot> OK, passed 500 tests.
<sorear> I do hope that's an error message... no 'error' prefix
<lispy> ?scheck 1 == 1
Previous Page Next Page