Logs: freenode/#haskell
| 2020-11-07 14:27:16 | × | ashnur quits (~rak@ashnur.com) (Changing host) |
| 2020-11-07 14:27:16 | → | ashnur joins (~rak@unaffiliated/ashnur) |
| 2020-11-07 14:27:31 | → | Ariakenom_ joins (~Ariakenom@h-82-196-111-76.NA.cust.bahnhof.se) |
| 2020-11-07 14:28:28 | × | texasmynsted quits (~texasmyns@64.44.55.84) (Ping timeout: 272 seconds) |
| 2020-11-07 14:28:39 | → | Hijiri joins (~Hijiri@104.236.61.10) |
| 2020-11-07 14:29:27 | × | phaul quits (~phaul@ruby/staff/phaul) (Ping timeout: 260 seconds) |
| 2020-11-07 14:30:38 | × | Ariakenom quits (~Ariakenom@h-82-196-111-76.NA.cust.bahnhof.se) (Ping timeout: 264 seconds) |
| 2020-11-07 14:31:31 | × | alp quits (~alp@2a01:e0a:58b:4920:2c9d:39b9:4980:b098) (Ping timeout: 272 seconds) |
| 2020-11-07 14:32:31 | → | StarBrilliant1 joins (~StarBrill@178.162.209.171) |
| 2020-11-07 14:34:05 | → | lawr3nce joins (~lawr3nce@gateway/tor-sasl/lawr3nce) |
| 2020-11-07 14:36:30 | × | avdb quits (~avdb@ip-83-134-26-133.dsl.scarlet.be) (Read error: Connection reset by peer) |
| 2020-11-07 14:36:59 | → | avdb joins (~avdb@ip-83-134-26-133.dsl.scarlet.be) |
| 2020-11-07 14:41:23 | × | avdb quits (~avdb@ip-83-134-26-133.dsl.scarlet.be) (Ping timeout: 260 seconds) |
| 2020-11-07 14:41:50 | → | avdb joins (~avdb@ip-83-134-26-133.dsl.scarlet.be) |
| 2020-11-07 14:43:06 | → | heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) |
| 2020-11-07 14:46:27 | → | urodna joins (~urodna@unaffiliated/urodna) |
| 2020-11-07 14:47:16 | → | nut joins (~user@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) |
| 2020-11-07 14:48:14 | × | heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 256 seconds) |
| 2020-11-07 14:48:57 | × | mirrorbird quits (~psutcliff@176.227.54.4) (Ping timeout: 256 seconds) |
| 2020-11-07 14:49:44 | → | nbloomf joins (~nbloomf@2600:1700:ad14:3020:2d48:c414:1e60:fe62) |
| 2020-11-07 14:51:02 | → | Tops2 joins (~Tobias@dyndsl-095-033-016-160.ewe-ip-backbone.de) |
| 2020-11-07 14:54:00 | hackage | haskell-formatter 2.0.3 - Haskell source code formatter https://hackage.haskell.org/package/haskell-formatter-2.0.3 (evolutics) |
| 2020-11-07 14:55:16 | → | raichoo joins (~raichoo@dslb-178-009-074-104.178.009.pools.vodafone-ip.de) |
| 2020-11-07 14:57:49 | × | niko quits (~niko@freenode/staff/ubuntu.member.niko) (Ping timeout: 624 seconds) |
| 2020-11-07 15:00:02 | × | StarBrilliant1 quits (~StarBrill@178.162.209.171) () |
| 2020-11-07 15:01:00 | → | Tario joins (~Tario@198.252.153.28) |
| 2020-11-07 15:02:30 | → | mat1 joins (~Thunderbi@dslb-084-058-211-084.084.058.pools.vodafone-ip.de) |
| 2020-11-07 15:02:39 | → | SupaYoshii joins (~supayoshi@213-10-140-13.fixed.kpn.net) |
| 2020-11-07 15:02:55 | × | avdb quits (~avdb@ip-83-134-26-133.dsl.scarlet.be) (Quit: WeeChat 2.9) |
| 2020-11-07 15:05:01 | → | texasmynsted joins (~texasmyns@64.44.55.84) |
| 2020-11-07 15:05:51 | → | texasmyn_ joins (~texasmyns@64.44.55.84) |
| 2020-11-07 15:05:52 | × | Tario quits (~Tario@198.252.153.28) (Read error: Connection reset by peer) |
| 2020-11-07 15:07:32 | → | avdb joins (~avdb@ip-83-134-26-133.dsl.scarlet.be) |
| 2020-11-07 15:08:39 | × | pfurla quits (~pfurla@ool-182ed2e2.dyn.optonline.net) (Ping timeout: 260 seconds) |
| 2020-11-07 15:09:10 | texasmyn_ | is now known as texasmynsted__ |
| 2020-11-07 15:09:13 | × | nut quits (~user@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) (Ping timeout: 264 seconds) |
| 2020-11-07 15:09:28 | × | texasmynsted__ quits (~texasmyns@64.44.55.84) (Client Quit) |
| 2020-11-07 15:09:38 | × | texasmynsted quits (~texasmyns@64.44.55.84) (Ping timeout: 272 seconds) |
| 2020-11-07 15:09:54 | → | ddellacosta joins (dd@gateway/vpn/mullvad/ddellacosta) |
| 2020-11-07 15:10:00 | → | texasmynsted joins (~texasmyns@64.44.55.84) |
| 2020-11-07 15:10:03 | → | Tario joins (~Tario@198.252.153.28) |
| 2020-11-07 15:10:33 | × | avdb quits (~avdb@ip-83-134-26-133.dsl.scarlet.be) (Client Quit) |
| 2020-11-07 15:10:55 | → | pfurla joins (~pfurla@ool-182ed2e2.dyn.optonline.net) |
| 2020-11-07 15:12:59 | × | TommyC quits (~TommyC@unaffiliated/sepulchralbloom) (Quit: TTFN, Ta Ta For Now!) |
| 2020-11-07 15:13:24 | → | TommyC joins (~TommyC@unaffiliated/sepulchralbloom) |
| 2020-11-07 15:15:32 | × | grimgnr quits (~user@94.19.246.43) (Read error: Connection reset by peer) |
| 2020-11-07 15:15:49 | → | grimgnr joins (~user@94.19.246.43) |
| 2020-11-07 15:16:25 | × | Tario quits (~Tario@198.252.153.28) (Read error: Connection reset by peer) |
| 2020-11-07 15:18:54 | → | eayus joins (c2991d13@194.153.29.19) |
| 2020-11-07 15:20:49 | <Franciman> | hi, what is the state of wxhaskell? It seems to be abandoned |
| 2020-11-07 15:21:50 | <merijn> | Yes, no, maybe? |
| 2020-11-07 15:21:56 | <[exa]> | Franciman: if you totally don't need precisely wxwidgets, I suggest you go with a more lively toolkit |
| 2020-11-07 15:22:06 | → | Eric-K joins (~Eric-K@s91904426.blix.com) |
| 2020-11-07 15:22:16 | <[exa]> | (if you need them, advice still applies) |
| 2020-11-07 15:22:31 | → | newbie joins (~kvirc@188.211.36.80) |
| 2020-11-07 15:22:51 | <eayus> | I'm trying to use the "cryptonite" package to generate random numbers, however I'm always getting the same result of all bytes=256. I'm using the "getEntropy" function from Crypto.Random.Entropy (https://hackage.haskell.org/package/cryptonite-0.27/docs/Crypto-Random-Entropy.html). It doesn't mention anything about seeding. Anyone have any ideas? |
| 2020-11-07 15:23:31 | <[exa]> | eayus: can you post a minimal (non)working example that does this? |
| 2020-11-07 15:23:41 | <[exa]> | (also, byte value 256 is fishy) |
| 2020-11-07 15:23:44 | <merijn> | That...does not like a function users should be using |
| 2020-11-07 15:24:04 | <Franciman> | [exa], apart from gi-gtk which more lively toolkit is there? |
| 2020-11-07 15:24:07 | <eayus> | I've tried various other functions in the library with the same result |
| 2020-11-07 15:24:09 | → | Tario joins (~Tario@201.192.165.173) |
| 2020-11-07 15:24:18 | <eayus> | I'll make a pastebin, one sec |
| 2020-11-07 15:25:04 | <[exa]> | Franciman: there's been some fuss about declarative gtk in haskell which I looked at briefly and found quite nice. Gtk is probably the sanest wxw alternative. |
| 2020-11-07 15:25:22 | <Franciman> | the problem with gtk is that I need a treeview with a custom model |
| 2020-11-07 15:25:33 | <Franciman> | but it seems to be really hard to create an instance of TreeModel |
| 2020-11-07 15:25:34 | <Franciman> | :< |
| 2020-11-07 15:25:39 | <[exa]> | here https://wickstrom.tech/programming/2018/09/04/declarative-gtk-programming-with-haskell.html |
| 2020-11-07 15:26:05 | <eayus> | Here is a minimal example of the problem https://pastebin.com/ifLkdiYW |
| 2020-11-07 15:26:19 | <eayus> | Using the bytestring and cryptonite libraries |
| 2020-11-07 15:26:23 | × | gawen quits (~gawen@movzbl.root.sx) (Quit: cya) |
| 2020-11-07 15:26:30 | <Franciman> | thanx [exa] |
| 2020-11-07 15:26:30 | → | cosimone joins (~cosimone@2001:b07:ae5:db26:d849:743b:370b:b3cd) |
| 2020-11-07 15:26:55 | <merijn> | eayus: What do you need said entropy for? (i.e. is there no simpler/more robust way to get what you need?) |
| 2020-11-07 15:27:05 | <[exa]> | Franciman: untested though |
| 2020-11-07 15:27:15 | <merijn> | oof |
| 2020-11-07 15:27:28 | <merijn> | cryptonite use /dev/random with higher priority than /dev/urandom |
| 2020-11-07 15:27:55 | <[exa]> | eayus: can you instead just read from /dev/urandom as recommended by ....just read merijn's message :D |
| 2020-11-07 15:28:11 | <merijn> | eayus: Basically: Isn't it just easier to read N bytes from /dev/urandom (depends on if you need Windows support, I guess) |
| 2020-11-07 15:28:22 | <eayus> | I just need to generate a cryptographically secure random number. I tried using other functions in the library (such as "seedNew"; etc) with same result |
| 2020-11-07 15:28:39 | <eayus> | I could do that, just seems a bit awkward |
| 2020-11-07 15:28:59 | <[exa]> | eayus: try `getEntropy` from System.Entropy |
| 2020-11-07 15:29:36 | × | SupaYoshi quits (~supayoshi@213-10-140-13.fixed.kpn.net) (Ping timeout: 256 seconds) |
| 2020-11-07 15:29:44 | → | laxask joins (~lax@unaffiliated/laxask) |
| 2020-11-07 15:30:00 | <eayus> | Ah now that works |
| 2020-11-07 15:30:15 | <merijn> | Crypto.Entropy seems more of an internal thing as the docs in Crypto.Tutorial don't mention any entropy relates thing at all |
| 2020-11-07 15:30:49 | <eayus> | Maybe, but I was tried to follow the method in Crypto.Tutorial and had the same problem |
| 2020-11-07 15:30:53 | × | mat1 quits (~Thunderbi@dslb-084-058-211-084.084.058.pools.vodafone-ip.de) (Quit: mat1) |
| 2020-11-07 15:30:55 | <[exa]> | Franciman: re the treeview model, anything specific? |
| 2020-11-07 15:31:23 | <Franciman> | I have my data structure (which is a bit more involved than a simple list, it's a finger tree that enables me to run interval queries) |
| 2020-11-07 15:31:36 | <Franciman> | I would like to use it as a model for the treeview |
| 2020-11-07 15:31:36 | × | SupaYoshii quits (~supayoshi@213-10-140-13.fixed.kpn.net) (Read error: Connection reset by peer) |
| 2020-11-07 15:31:40 | → | mat1 joins (~Thunderbi@dslb-084-058-211-084.084.058.pools.vodafone-ip.de) |
| 2020-11-07 15:31:47 | <merijn> | eayus: Anyway, I wouldn't necessarily trust my crypto to any of the "native Haskell" libraries due to lack of auditing. I like cryptonite's hashing stuff, but that's much less security sensitive (and trivial to test) |
| 2020-11-07 15:31:52 | <Franciman> | so that I don't have to duplicate data (and thus have problems with undo redo etc) |
| 2020-11-07 15:33:38 | → | SupaYoshi joins (~supayoshi@213-10-140-13.fixed.kpn.net) |
| 2020-11-07 15:33:40 | <eayus> | merijn: This is only for an assignment, so fortunately I don't have to really account for potential vulnerabilities in the libraries I'm using. |
| 2020-11-07 15:33:46 | × | SupaYoshi quits (~supayoshi@213-10-140-13.fixed.kpn.net) (Remote host closed the connection) |
| 2020-11-07 15:33:57 | <eayus> | However always returning the same random value crossed the line :P |
| 2020-11-07 15:34:31 | × | mat1 quits (~Thunderbi@dslb-084-058-211-084.084.058.pools.vodafone-ip.de) (Client Quit) |
All times are in UTC.