Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2020-11-13 15:09:54 bifunc2 joins (bifunc2@gateway/vpn/protonvpn/bifunc2)
2020-11-13 15:10:02 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 260 seconds)
2020-11-13 15:11:02 <bifunc2> What's a good way to find a bytestring b between two bytestrings b1, b2? (b1 < b < b2)
2020-11-13 15:11:14 <bifunc2> is there any library for this?
2020-11-13 15:11:21 <bifunc2> (of course, Nothing, if none exists)
2020-11-13 15:11:55 kritzefitz joins (~kritzefit@212.86.56.80)
2020-11-13 15:13:12 <Uniaika> bifunc2: like, a substring?
2020-11-13 15:13:15 × alp quits (~alp@2a01:e0a:58b:4920:ed84:e1ea:bd3d:3a34) (Ping timeout: 272 seconds)
2020-11-13 15:13:33 <ski> find common prefix, then take middle point of next two bytes (assuming the first one has at least one more) ?
2020-11-13 15:13:47 × borne quits (~fritjof@200116b86489f5004fbf5cd6c83663b1.dip.versatel-1u1.de) (Ping timeout: 260 seconds)
2020-11-13 15:13:53 <hekkaidekapus> > traverse permutations [[1, 2], [4, 5]] -- motte: <== Not what you asked about but may come handy.
2020-11-13 15:13:55 <lambdabot> [[[1,2],[4,5]],[[1,2],[5,4]],[[2,1],[4,5]],[[2,1],[5,4]]]
2020-11-13 15:14:23 Sgeo joins (~Sgeo@ool-18b982ad.dyn.optonline.net)
2020-11-13 15:14:25 acarrico joins (~acarrico@dhcp-68-142-39-249.greenmountainaccess.net)
2020-11-13 15:14:27 xff0x joins (~fox@2001:1a81:53f2:4b00:f0ff:5175:9775:725d)
2020-11-13 15:17:02 × jakob_ quits (~textual@p200300f49f16220038ce51646f783e30.dip0.t-ipconnect.de) (Quit: My Laptop has gone to sleep. ZZZzzz…)
2020-11-13 15:18:07 cr3 joins (~cr3@192-222-143-195.qc.cable.ebox.net)
2020-11-13 15:18:12 <motte> hekkaidekapus: haha that's exactly what i was currently working on
2020-11-13 15:18:39 <hekkaidekapus> oh, sorry for the spoiler!
2020-11-13 15:19:26 <motte> hekkaidekapus: it's good, thanks
2020-11-13 15:19:49 polyphem joins (~p0lyph3m@2a02:810d:640:776c:76d7:55f6:f85b:c889)
2020-11-13 15:20:10 × berberman_ quits (~berberman@unaffiliated/berberman) (Quit: ZNC 1.7.5 - https://znc.in)
2020-11-13 15:20:32 revprez_anzio joins (~revprez_a@pool-108-49-213-40.bstnma.fios.verizon.net)
2020-11-13 15:20:41 berberman joins (~berberman@unaffiliated/berberman)
2020-11-13 15:22:33 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2020-11-13 15:26:55 elfets joins (~elfets@ip-37-201-23-96.hsi13.unitymediagroup.de)
2020-11-13 15:27:01 <motte> so now i'm trying to run length $ traverse permutations on [[a]], where the length of the outer list is 9 and the length of the inner list is 4 and this very quickly takes away all of my ram
2020-11-13 15:27:50 × LKoen quits (~LKoen@9.253.88.92.rev.sfr.net) (Remote host closed the connection)
2020-11-13 15:28:05 <pjb> motte: permutations is exponential…
2020-11-13 15:28:44 <motte> pjb: yes, i realize that, but couldn't haskell discard the already calculated part of the list?
2020-11-13 15:28:48 texasmyn_ joins (~texasmyns@185.229.59.75)
2020-11-13 15:29:31 texasmyn_ is now known as texasmynsted_
2020-11-13 15:29:52 <pjb> I don't know what prevents it to do that.
2020-11-13 15:30:03 × da39a3ee5e6b4b0d quits (~da39a3ee5@cm-171-98-91-208.revip7.asianet.co.th) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2020-11-13 15:30:20 × texasmynsted quits (~texasmyns@99.96.221.112) (Killed (cherryh.freenode.net (Nickname regained by services)))
2020-11-13 15:30:20 texasmynsted_ is now known as texasmynsted
2020-11-13 15:30:37 texasmynsted_ joins (~texasmyns@99.96.221.112)
2020-11-13 15:31:25 <pjb> motte: but you can compute it directly as the factorial of the length of the original lists.
2020-11-13 15:31:37 reallymemorable joins (~quassel@2601:180:8300:8fd0:c5df:6e57:bcff:c1bb)
2020-11-13 15:31:56 Gurkenglas joins (~Gurkengla@unaffiliated/gurkenglas)
2020-11-13 15:32:11 da39a3ee5e6b4b0d joins (~da39a3ee5@cm-171-98-91-208.revip7.asianet.co.th)
2020-11-13 15:32:52 <merijn> motte: Where are you running that? i.e. in ghci?
2020-11-13 15:33:10 × royal_screwup21 quits (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) (Quit: Connection closed)
2020-11-13 15:33:35 royal_screwup21 joins (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9)
2020-11-13 15:34:01 <bifunc2> ski thank you this is the key
2020-11-13 15:34:34 <motte> merijn: yes, ghci
2020-11-13 15:34:34 comerijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2020-11-13 15:35:31 <motte> merijn: seems to be the same when i compile it
2020-11-13 15:36:21 cole-h joins (~cole-h@c-73-48-197-220.hsd1.ca.comcast.net)
2020-11-13 15:36:37 <motte> although i'm very surprised to see that it uses all of my 8 threads..?
2020-11-13 15:36:45 × gproto023 quits (~gproto23@unaffiliated/gproto23) (Ping timeout: 240 seconds)
2020-11-13 15:36:54 dbmikus__ joins (~dbmikus@cpe-76-167-86-219.natsow.res.rr.com)
2020-11-13 15:37:19 nbloomf joins (~nbloomf@76.217.43.73)
2020-11-13 15:37:19 Tuplanolla joins (~Tuplanoll@91-159-68-239.elisa-laajakaista.fi)
2020-11-13 15:37:25 × nbloomf quits (~nbloomf@76.217.43.73) (Client Quit)
2020-11-13 15:37:29 × da39a3ee5e6b4b0d quits (~da39a3ee5@cm-171-98-91-208.revip7.asianet.co.th) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2020-11-13 15:37:39 <comerijn> Did you compile with -O2?
2020-11-13 15:37:50 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 264 seconds)
2020-11-13 15:39:20 × acarrico quits (~acarrico@dhcp-68-142-39-249.greenmountainaccess.net) (Ping timeout: 272 seconds)
2020-11-13 15:39:59 <motte> comerijn: yes
2020-11-13 15:40:29 × cfricke quits (~cfricke@unaffiliated/cfricke) (Ping timeout: 272 seconds)
2020-11-13 15:40:56 <comerijn> Ok, then no clue without seeing code :)
2020-11-13 15:40:58 × knupfer quits (~Thunderbi@200116b8249e5f0010c5e6f6682b8ccf.dip.versatel-1u1.de) (Quit: knupfer)
2020-11-13 15:41:32 × dbmikus__ quits (~dbmikus@cpe-76-167-86-219.natsow.res.rr.com) (Ping timeout: 260 seconds)
2020-11-13 15:41:37 × veverak quits (~squirrel@ip-89-102-98-161.net.upcbroadband.cz) (Quit: WeeChat 2.3)
2020-11-13 15:41:37 × neiluj quits (~jco@43.245.204.77.rev.sfr.net) (Ping timeout: 256 seconds)
2020-11-13 15:41:44 wtw joins (~wtw@unaffiliated/wtw)
2020-11-13 15:42:03 × ech quits (~user@gateway/tor-sasl/ech) (Ping timeout: 240 seconds)
2020-11-13 15:42:42 <hekkaidekapus> motte, comerijn: with `print $ length $ traverse permutations [[(1 :: Int) .. 4], [5 .. 13]]`
2020-11-13 15:42:56 <hekkaidekapus> I get:
2020-11-13 15:42:59 <hekkaidekapus> 8709120
2020-11-13 15:43:09 <hekkaidekapus> 0.81user 0.04system 0:00.86elapsed 99%CPU (0avgtext+0avgdata 155892maxresident)k
2020-11-13 15:43:24 neiluj joins (~jco@91-167-203-101.subs.proxad.net)
2020-11-13 15:43:31 Whome parts (0c986a83@12.152.106.131) ()
2020-11-13 15:45:08 <dsal> dminuoso: re: big data: http://dustin.sallings.org/2014/02/04/bigdata.html
2020-11-13 15:45:45 bidabong joins (uid272474@gateway/web/irccloud.com/x-plghuymdrvvlqwlm)
2020-11-13 15:49:53 baidobz joins (2d56c95b@45.86.201.91)
2020-11-13 15:50:42 × neiluj quits (~jco@91-167-203-101.subs.proxad.net) (Quit: leaving)
2020-11-13 15:52:42 dbmikus__ joins (~dbmikus@cpe-76-167-86-219.natsow.res.rr.com)
2020-11-13 15:54:09 texasmyn_ joins (~texasmyns@185.229.59.3)
2020-11-13 15:54:10 ech joins (~user@gateway/tor-sasl/ech)
2020-11-13 15:55:09 texasmy__ joins (~texasmyns@2600:6c40:700:5fb3:e17e:7475:52b9:a754)
2020-11-13 15:55:54 fendor__ joins (~fendor@178.115.130.14.wireless.dyn.drei.com)
2020-11-13 15:56:23 × royal_screwup21 quits (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) (Quit: Connection closed)
2020-11-13 15:56:26 texasmy__ is now known as texasmynsted__
2020-11-13 15:56:29 squirrel1 joins (~squirrel@ip-89-102-98-161.net.upcbroadband.cz)
2020-11-13 15:56:49 royal_screwup21 joins (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9)
2020-11-13 15:56:58 × texasmynsted quits (~texasmyns@185.229.59.75) (Killed (moon.freenode.net (Nickname regained by services)))
2020-11-13 15:56:58 texasmynsted__ is now known as texasmynsted
2020-11-13 15:57:01 squirrel1 is now known as veverak
2020-11-13 15:57:16 × dbmikus__ quits (~dbmikus@cpe-76-167-86-219.natsow.res.rr.com) (Ping timeout: 256 seconds)
2020-11-13 15:58:41 liaar0402 joins (258f376a@37.143.55.106)
2020-11-13 15:58:58 × texasmyn_ quits (~texasmyns@185.229.59.3) (Ping timeout: 272 seconds)
2020-11-13 15:58:58 × fendor_ quits (~fendor@178.165.131.115.wireless.dyn.drei.com) (Ping timeout: 272 seconds)
2020-11-13 15:59:17 × liaar0402 quits (258f376a@37.143.55.106) (Remote host closed the connection)
2020-11-13 15:59:43 <baidobz> Hi everybody, I'm trying to run an IO action, that returns Either, for each element in a list and would like to stop evaluation as soon as one is Left. I tried using fmap and sequence but the later actions are still evaluated and the calculation does not short-circuit. Is the issue that bind in IO is strict?
2020-11-13 16:00:08 benjamingr__ joins (uid23465@gateway/web/irccloud.com/x-dkapzzdvbagqfebh)
2020-11-13 16:04:52 <tomsmeding> baidobz: can you share the relevant piece of code? It may indeed be that your issue is that bind in IO is strict
2020-11-13 16:05:28 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-11-13 16:07:05 × xerox_ quits (~xerox@unaffiliated/xerox) (Ping timeout: 240 seconds)

All times are in UTC.