Logs: liberachat/#haskell
| 2021-06-24 04:01:34 | → | blueonyx_ joins (~blueonyx@x59cc8bb0.dyn.telefonica.de) |
| 2021-06-24 04:02:17 | × | blueonyx quits (~Guest76@x59cc8bb0.dyn.telefonica.de) (Quit: blueonyx) |
| 2021-06-24 04:02:28 | × | blueonyx_ quits (~blueonyx@x59cc8bb0.dyn.telefonica.de) (Client Quit) |
| 2021-06-24 04:02:39 | × | turlando quits (~turlando@user/turlando) (Remote host closed the connection) |
| 2021-06-24 04:02:40 | → | turlando_ joins (~turlando@93-42-250-112.ip89.fastwebnet.it) |
| 2021-06-24 04:02:44 | → | blueonyx joins (~blueonyx@x59cc8bb0.dyn.telefonica.de) |
| 2021-06-24 04:03:00 | × | chaosite quits (~chaosite@user/chaosite) (Ping timeout: 250 seconds) |
| 2021-06-24 04:04:55 | × | Hafydd quits (~Hafydd@user/hafydd) (Quit: WeeChat 3.1) |
| 2021-06-24 04:05:07 | × | lambdap quits (~lambdap@static.167.190.119.168.clients.your-server.de) (Quit: lambdap) |
| 2021-06-24 04:05:10 | → | sagax joins (~sagax@213.138.71.146) |
| 2021-06-24 04:05:28 | → | michalz joins (~michalz@185.246.204.125) |
| 2021-06-24 04:05:50 | → | lambdap joins (~lambdap@static.167.190.119.168.clients.your-server.de) |
| 2021-06-24 04:07:47 | × | TranquilEcho quits (~grom@user/tranquilecho) (Quit: WeeChat 2.8) |
| 2021-06-24 04:09:34 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 258 seconds) |
| 2021-06-24 04:10:24 | × | blueonyx quits (~blueonyx@x59cc8bb0.dyn.telefonica.de) (Changing host) |
| 2021-06-24 04:10:24 | → | blueonyx joins (~blueonyx@user/blueonyx) |
| 2021-06-24 04:11:17 | × | slack1256 quits (~slack1256@191.126.146.101) (Remote host closed the connection) |
| 2021-06-24 04:13:34 | × | monochrom quits (trebla@216.138.220.146) (Quit: NO CARRIER) |
| 2021-06-24 04:15:11 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection) |
| 2021-06-24 04:21:07 | → | chaosite joins (~chaosite@user/chaosite) |
| 2021-06-24 04:21:18 | → | pagnol joins (~user@121.202.111.40) |
| 2021-06-24 04:21:41 | × | blueonyx quits (~blueonyx@user/blueonyx) (Quit: leaving) |
| 2021-06-24 04:21:56 | → | blueonyx joins (~blueonyx@user/blueonyx) |
| 2021-06-24 04:22:51 | → | geekosaur joins (~geekosaur@xmonad/geekosaur) |
| 2021-06-24 04:24:21 | → | Hafydd joins (~Hafydd@user/hafydd) |
| 2021-06-24 04:26:04 | × | chaosite quits (~chaosite@user/chaosite) (Ping timeout: 246 seconds) |
| 2021-06-24 04:28:38 | → | chaosite joins (~chaosite@user/chaosite) |
| 2021-06-24 04:29:06 | <Axman6> | so, I've been stuck for a few days trying to reimplement this (IMO bizarre) hashingn scheme in Haskell. anyone want to take a stab at it? https://github.com/microsoft/electionguard-python/blob/main/src/electionguard/hash.py I'm using https://hackage.haskell.org/package/cryptonite-0.28/docs/Crypto-Hash.html |
| 2021-06-24 04:29:25 | <Axman6> | I just can't seem to get my head around the bizarre recursion |
| 2021-06-24 04:29:45 | <Axman6> | and end up using too many or not enough |'s |
| 2021-06-24 04:30:44 | <Axman6> | I resorted to building S-expressions but still can't make it work |
| 2021-06-24 04:32:14 | <glguy> | Axman6, you're implemeting hash_elems? |
| 2021-06-24 04:32:33 | → | monochrom joins (trebla@216.138.220.146) |
| 2021-06-24 04:32:42 | <Axman6> | yeah |
| 2021-06-24 04:33:43 | × | chaosite quits (~chaosite@user/chaosite) (Ping timeout: 258 seconds) |
| 2021-06-24 04:35:28 | <c_wraith> | do you have any of the cases working? |
| 2021-06-24 04:38:30 | <Axman6> | I've written several implementations, which all do something, but since there's no useful unit tests it's hard to know if I have any of it right. the tests are all of the form hash [] == hash None, there aren't any that say hash [1,2,3] == "234ee8ui9o2fioklqwhekljaerh" |
| 2021-06-24 04:39:00 | <dibblego> | sounds like you need to poke the snake to get some cases |
| 2021-06-24 04:40:34 | <Axman6> | so as far as I can tell, the ElementModP/Q ones are working fine, they should be the hash of the hash of | <> toHex e <> | which I'm pretty sure I have working. but when it comes to what should be done for sequencey things and how to represent variadic functions I'm struggling |
| 2021-06-24 04:41:27 | <Axman6> | though, then there are tests like self.assertEqual(hash_elems(1), hash_elems("1")) |
| 2021-06-24 04:41:33 | → | chaosite joins (~chaosite@user/chaosite) |
| 2021-06-24 04:41:50 | <Axman6> | from what I can tell, that 1 should be turned into "01" so they shoulod not hash to the4 same thing |
| 2021-06-24 04:43:16 | <Axman6> | then there's self.assertNotEqual(hash_elems(0), hash_elems("0")) which should not be equal because the 0 becomes "null" becase truthiness |
| 2021-06-24 04:43:30 | → | arjun joins (~arjun@160.202.37.101) |
| 2021-06-24 04:43:30 | × | arjun quits (~arjun@160.202.37.101) (Changing host) |
| 2021-06-24 04:43:30 | → | arjun joins (~arjun@user/arjun) |
| 2021-06-24 04:47:30 | × | blueonyx quits (~blueonyx@user/blueonyx) (Quit: leaving) |
| 2021-06-24 04:48:26 | → | trent2 joins (~trent@2001:8003:340d:d00:b2de:b98:7a93:b0ea) |
| 2021-06-24 04:50:50 | × | nate1 quits (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 252 seconds) |
| 2021-06-24 04:53:13 | <Axman6> | Argh, got the small tests I have to pass >___< |
| 2021-06-24 04:53:22 | × | MQ-17J quits (~MQ-17J@d14-69-206-129.try.wideopenwest.com) (Ping timeout: 246 seconds) |
| 2021-06-24 04:53:39 | → | MQ-17J joins (~MQ-17J@d14-69-206-129.try.wideopenwest.com) |
| 2021-06-24 04:59:23 | → | zmt01 joins (~zmt00@user/zmt00) |
| 2021-06-24 05:00:44 | × | MQ-17J quits (~MQ-17J@d14-69-206-129.try.wideopenwest.com) (Ping timeout: 252 seconds) |
| 2021-06-24 05:01:35 | → | MQ-17J joins (~MQ-17J@d14-69-206-129.try.wideopenwest.com) |
| 2021-06-24 05:02:06 | → | lainon_ joins (lainon@gateway/vpn/protonvpn/lainon) |
| 2021-06-24 05:02:48 | × | trent2 quits (~trent@2001:8003:340d:d00:b2de:b98:7a93:b0ea) (Ping timeout: 250 seconds) |
| 2021-06-24 05:03:17 | × | zmt00 quits (~zmt00@user/zmt00) (Ping timeout: 252 seconds) |
| 2021-06-24 05:06:53 | → | wallymathieu joins (~wallymath@81-234-151-21-no94.tbcn.telia.com) |
| 2021-06-24 05:11:23 | → | teaSlurper joins (~chris@81.96.113.213) |
| 2021-06-24 05:13:12 | × | lainon_ quits (lainon@gateway/vpn/protonvpn/lainon) (Ping timeout: 252 seconds) |
| 2021-06-24 05:13:56 | × | falafel quits (~falafel@pool-96-255-70-50.washdc.fios.verizon.net) (Ping timeout: 252 seconds) |
| 2021-06-24 05:16:04 | × | AgentM quits (~agentm@pool-162-83-130-212.nycmny.fios.verizon.net) (Quit: Leaving.) |
| 2021-06-24 05:17:10 | → | takuan joins (~takuan@178-116-218-225.access.telenet.be) |
| 2021-06-24 05:18:41 | × | edwtjo quits (~edwtjo@user/edwtjo) (Ping timeout: 252 seconds) |
| 2021-06-24 05:18:49 | → | chomwitt joins (~Pitsikoko@2a02:587:dc0b:0:d8f7:cdfe:4658:bec4) |
| 2021-06-24 05:20:35 | → | jneira joins (~jneira@212.8.115.226) |
| 2021-06-24 05:25:39 | → | dunkeln_ joins (~dunkeln@188.71.193.140) |
| 2021-06-24 05:32:47 | → | vicentius joins (~vicentius@user/vicentius) |
| 2021-06-24 05:33:12 | → | eco joins (~ubuntu@ec2-54-201-230-197.us-west-2.compute.amazonaws.com) |
| 2021-06-24 05:35:29 | → | fizbin joins (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) |
| 2021-06-24 05:38:21 | <haskl> | I hope easy static binaries are coming down the pipe for Haskell. Anyone know about any plans? |
| 2021-06-24 05:38:41 | <haskl> | Feels weird that I have to launch a Docker container to build a static binary that works well. |
| 2021-06-24 05:39:55 | × | fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Ping timeout: 246 seconds) |
| 2021-06-24 05:40:31 | → | _ht joins (~quassel@82-169-194-8.biz.kpn.net) |
| 2021-06-24 05:41:47 | <eco> | haskl: are static binaries easy in any environment other than Go and maybe Zig? |
| 2021-06-24 05:44:10 | <haskl> | yeah i guess i was mainly thinking about how good golang devs have it |
| 2021-06-24 05:44:31 | → | v01d4lph4 joins (~v01d4lph4@122.160.65.250) |
| 2021-06-24 05:44:31 | × | v01d4lph4 quits (~v01d4lph4@122.160.65.250) (Changing host) |
| 2021-06-24 05:44:31 | → | v01d4lph4 joins (~v01d4lph4@user/v01d4lph4) |
| 2021-06-24 05:47:43 | → | lavaman joins (~lavaman@98.38.249.169) |
| 2021-06-24 05:48:31 | → | wei2912 joins (~wei2912@112.199.250.21) |
| 2021-06-24 05:52:18 | × | lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 258 seconds) |
| 2021-06-24 05:56:32 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 250 seconds) |
| 2021-06-24 06:06:03 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-06-24 06:06:31 | × | myShoggoth quits (~myShoggot@75.164.29.44) (Ping timeout: 246 seconds) |
| 2021-06-24 06:07:32 | <dminuoso> | haskl: Last I checked, building static binaries was not difficult. |
| 2021-06-24 06:08:45 | <dminuoso> | It's nothing that needs to "come down the pipe", its already there. |
| 2021-06-24 06:09:41 | × | MidAutumnMoon quits (~MidAutumn@user/midautumnmoon) (Quit: Leaving for a break - theLounge) |
| 2021-06-24 06:10:04 | <dminuoso> | Just keep in mind that using GMP this will require you to license the resulting binary as GPLv3 |
| 2021-06-24 06:10:17 | → | MidAutumnMoon joins (~MidAutumn@user/midautumnmoon) |
| 2021-06-24 06:11:09 | <haskl> | dminuoso, don't you need docker to make a good static build? |
| 2021-06-24 06:12:39 | <dolio> | I don't see how docker would even help. |
| 2021-06-24 06:12:46 | → | unyu joins (~pyon@user/pyon) |
| 2021-06-24 06:13:13 | <dminuoso> | haskl: Mmm, I dont think so. You just need to make sure you can resolve all the libraries for linking. |
| 2021-06-24 06:13:18 | <eco> | Its just a quick way to get an Alpine build environment |
| 2021-06-24 06:13:27 | <dminuoso> | I know some people do it with alpine docker because that guarantees everything is there by default |
| 2021-06-24 06:14:17 | → | trent2 joins (~trent@2001:8003:340d:d00:b2de:b98:7a93:b0ea) |
| 2021-06-24 06:14:58 | <haskl> | oh interesting |
| 2021-06-24 06:15:14 | <dminuoso> | The main inconvenience why this hasn't caught on, is because of the GMP licensing. |
All times are in UTC.