Search Haskell Channel Logs

Saturday, January 28, 2017

#haskell channel featuring johndcl, systadmin, hpc, piyush-kurur, gpampara, SrPx,

JSharp 2017-01-28 01:46:07
piyush-kurur: hmm, you mean tests like those provided by `dieharder-ng`?
piyush-kurur 2017-01-28 01:47:33
JSharp: yes something like that
JSharp 2017-01-28 01:51:38
piyush-kurur: I'm not aware of a pure haskell implementation of the likes of `dieharder-ng`. Many of the projects that I've seen that have to test sources of randomness (encryption algorithms, CSPRNGs et al) implement a harness using `dieharder` or `dieharder-ng`.
JSharp 2017-01-28 01:52:59
It's a tricky thing and that tester and its algos have been field tested fairly well
JSharp 2017-01-28 01:53:08
afaik
Axman6 2017-01-28 01:53:09
wow, Code Chef only has GHC 7.6? o.O
piyush-kurur 2017-01-28 01:56:01
JSharp: dieharder looks good to me. I have been coding up a chacha20 based prg and surprise surprise it started giving the same number :-(
piyush-kurur 2017-01-28 01:56:34
JSharp: I found the bug (forgot to update the pointer) but one wants to make sure that such silly bugs do not re-occur
JSharp 2017-01-28 01:57:05
well, that tester will help you find out if it's subtly broken but, sadly, it won't help you fix it.
piyush-kurur 2017-01-28 01:57:43
JSharp: that is at least good. Together with unittests on the underlying chacha20 implementation should work fine
JSharp 2017-01-28 01:58:10
oh, good then -- it should help you find out if it's broken (well, to 0.0001% of a chance anyway)
JSharp 2017-01-28 01:58:33
it does take quite a while to do a full run
piyush-kurur 2017-01-28 02:00:33
JSharp: thanks for reminding me about dieharder. I had heard that name some where and forgotten it.
piyush-kurur 2017-01-28 02:01:09
will try it out
JSharp 2017-01-28 02:01:30
no worries
johndcl 2017-01-28 02:16:33
Hello. How is the expression "-25 `mod` 26" evalueated and how does it differ from "(-25) `mod` 26" ?
johndcl 2017-01-28 02:17:30
What does the '-' mean when it stands at the beginning?
hpc 2017-01-28 02:18:31
> -(25 `mod` 26)
lambdabot 2017-01-28 02:18:34
-25
hpc 2017-01-28 02:19:08
(-) has awkward parsing rules because it can be a prefix operator negating a number, or an infix operator subtracting two numbers
johndcl 2017-01-28 02:20:30
ok, thank you
systadmin 2017-01-28 02:22:04
> ->
lambdabot 2017-01-28 02:22:06
:1:1: error: parse error on input '->'
systadmin 2017-01-28 02:22:54
How does one negate using `-`?
gpampara 2017-01-28 02:24:13
with parens
gpampara 2017-01-28 02:24:16
(-1)
SrPx 2017-01-28 02:28:24
Is there any library that allows me to connect my process to a p2p network and broadcast messages?