Home liberachat/#haskell: Logs Calendar

Logs on 2023-12-01 (liberachat/#haskell)

00:01:43 × srk quits (~sorki@user/srk) (Ping timeout: 255 seconds)
00:01:43 srk- is now known as srk
00:14:45 zetef joins (~quassel@2a02:2f00:5201:4b00:19c:1be6:f517:649f)
00:16:46 srk- joins (~sorki@user/srk)
00:20:28 <dostoyevsky2> how accurate is it to state `UNIX pipes (treated semantically as writing to temporary files) are quite similar to monads' https://www.okmij.org/ftp/Computation/monadic-shell.html
00:20:38 × srk quits (~sorki@user/srk) (Ping timeout: 260 seconds)
00:20:38 srk- is now known as srk
00:21:42 × CiaoSen quits (~Jura@2a05:5800:2c5:7900:2a3a:4dff:fe84:dbd5) (Ping timeout: 268 seconds)
00:25:21 <EvanR> not
00:26:27 peterbecich joins (~Thunderbi@047-229-123-186.res.spectrum.com)
00:27:05 <c_wraith> can you send a pipe through a pipe?
00:27:54 <EvanR> coaxial pipe
00:28:02 <EvanR> burrito pipe
00:28:27 <c_wraith> I still don't really understand burritos, even after that paper explaining them in terms of monads.
00:29:07 <dostoyevsky2> c_wraith: https://www.emuplumbing.com.au/wp-content/uploads/brawoliner_0.jpg
00:32:26 srk- joins (~sorki@user/srk)
00:32:37 <geekosaur> but you can send a pipe through a local socket 😛
00:34:29 <dostoyevsky2> > echo "echo 'pipe for you' | cat" | sh # -> pipe for you
00:34:30 <lambdabot> <hint>:1:34: error: parse error on input ‘|’
00:35:20 × srk quits (~sorki@user/srk) (Ping timeout: 252 seconds)
00:35:21 srk- is now known as srk
00:36:49 × misterfish quits (~misterfis@87.215.131.102) (Ping timeout: 255 seconds)
00:45:58 × lockywolf quits (~lockywolf@public.lockywolf.net) (Quit: ZNC 1.8.2 - https://znc.in)
00:46:14 lockywolf joins (~lockywolf@public.lockywolf.net)
00:46:32 × zer0bitz_ quits (~zer0bitz@user/zer0bitz) (Read error: Connection reset by peer)
00:46:49 zer0bitz joins (~zer0bitz@user/zer0bitz)
00:55:21 Lycurgus joins (~georg@user/Lycurgus)
00:57:32 JuanDaugherty joins (~juan@user/JuanDaugherty)
01:01:05 × tremon quits (~tremon@83.80.159.219) (Quit: getting boxed in)
01:02:53 × califax quits (~califax@user/califx) (Remote host closed the connection)
01:03:10 notzmv joins (~zmv@user/notzmv)
01:05:32 × JuanDaugherty quits (~juan@user/JuanDaugherty) (Quit: JuanDaugherty)
01:12:52 × apache2 quits (apache2@anubis.0x90.dk) (Remote host closed the connection)
01:13:03 apache2 joins (apache2@anubis.0x90.dk)
01:13:58 × fr33domlover quits (~fr33domlo@towards.vision) (Quit: Ping timeout (120 seconds))
01:14:09 califax joins (~califax@user/califx)
01:14:20 fr33domlover joins (~fr33domlo@towards.vision)
01:21:07 zetef_ joins (~quassel@2a02:2f00:5201:4b00:7fc8:6fbe:33d9:ba2a)
01:21:12 × zetef_ quits (~quassel@2a02:2f00:5201:4b00:7fc8:6fbe:33d9:ba2a) (Remote host closed the connection)
01:22:40 Guest|46 joins (~Guest|46@ip72-216-143-166.ph.ph.cox.net)
01:25:05 × zetef quits (~quassel@2a02:2f00:5201:4b00:19c:1be6:f517:649f) (Ping timeout: 255 seconds)
01:30:57 × mmhat quits (~mmh@p200300f1c72873aaee086bfffe095315.dip0.t-ipconnect.de) (Quit: WeeChat 4.1.1)
01:37:04 × ystael quits (~ystael@user/ystael) (Ping timeout: 256 seconds)
01:42:13 × peterbecich quits (~Thunderbi@047-229-123-186.res.spectrum.com) (Ping timeout: 276 seconds)
01:44:54 peterbecich joins (~Thunderbi@047-229-123-186.res.spectrum.com)
02:02:51 × iqubic quits (~avi@2601:602:9502:c70:2d15:c772:1b7d:e5a5) (Ping timeout: 245 seconds)
02:07:51 zlqrvx joins (~user@2001:8003:8c8b:e00:4a66:eb90:2e41:d1c9)
02:09:37 × L29Ah quits (~L29Ah@wikipedia/L29Ah) (Ping timeout: 268 seconds)
02:10:10 × zlqrvx quits (~user@2001:8003:8c8b:e00:4a66:eb90:2e41:d1c9) (Client Quit)
02:10:43 zlqrvx joins (~user@2001:8003:8c8b:e00:4a66:eb90:2e41:d1c9)
02:12:00 × zlqrvx quits (~user@2001:8003:8c8b:e00:4a66:eb90:2e41:d1c9) (Client Quit)
02:18:07 arahael_ joins (~arahael@1.145.118.71)
02:18:48 × Guest|46 quits (~Guest|46@ip72-216-143-166.ph.ph.cox.net) (Quit: Connection closed)
02:20:02 zlqrvx joins (~zlqrvx@101.175.150.247)
02:22:31 iqubic joins (~avi@2601:602:9502:c70:35dc:d74c:2bc9:e283)
02:22:59 zlqrvx parts (~zlqrvx@101.175.150.247) ()
02:23:16 nate4 joins (~nate@c-98-45-158-125.hsd1.ca.comcast.net)
02:24:26 zlqrvx joins (~zlqrvx@101.175.150.247)
02:25:41 × zlqrvx quits (~zlqrvx@101.175.150.247) (Quit: %quit%)
02:28:22 × nate4 quits (~nate@c-98-45-158-125.hsd1.ca.comcast.net) (Ping timeout: 276 seconds)
02:28:39 × thegeekinside quits (~thegeekin@189.180.20.15) (Ping timeout: 252 seconds)
02:38:01 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 246 seconds)
02:38:45 iqubic- joins (~avi@2601:602:9502:c70:35dc:d74c:2bc9:e283)
02:39:07 bilegeek joins (~bilegeek@2600:1008:b08b:c471:bc55:c296:ae99:b34c)
02:40:12 × iqubic quits (~avi@2601:602:9502:c70:35dc:d74c:2bc9:e283) (Remote host closed the connection)
02:40:23 × iqubic- quits (~avi@2601:602:9502:c70:35dc:d74c:2bc9:e283) (Remote host closed the connection)
02:42:17 iqubic joins (~avi@2601:602:9502:c70:35dc:d74c:2bc9:e283)
02:42:36 × euleritian quits (~euleritia@dynamic-046-114-035-225.46.114.pool.telefonica.de) (Read error: Connection reset by peer)
02:42:53 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
02:43:45 × hgolden quits (~hgolden@2603-8000-9d00-3ed1-dd4f-298a-9c49-a0ed.res6.spectrum.com) (Remote host closed the connection)
02:45:11 hgolden joins (~hgolden@2603-8000-9d00-3ed1-dd4f-298a-9c49-a0ed.res6.spectrum.com)
02:50:49 × ft quits (~ft@p508db3bc.dip0.t-ipconnect.de) (Ping timeout: 256 seconds)
02:55:20 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
02:55:32 mikess joins (~sam@user/mikess)
02:57:24 ft joins (~ft@p508dbe71.dip0.t-ipconnect.de)
02:57:55 × edr quits (~edr@user/edr) (Quit: Leaving)
03:03:10 × mikess quits (~sam@user/mikess) (Read error: Connection reset by peer)
03:04:50 mikess joins (~sam@user/mikess)
03:09:23 × peterbecich quits (~Thunderbi@047-229-123-186.res.spectrum.com) (Ping timeout: 256 seconds)
03:12:34 × Guest|32 quits (~Guest|32@ruth-10-b2-v4wan-167633-cust316.vm40.cable.virginm.net) (Quit: Connection closed)
03:15:37 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:4593:1157:cf3d:65e4) (Remote host closed the connection)
03:15:52 eggplantade joins (~Eggplanta@2600:1700:38c5:d800:4593:1157:cf3d:65e4)
03:17:36 × arahael_ quits (~arahael@1.145.118.71) (Ping timeout: 252 seconds)
03:17:51 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 245 seconds)
03:30:50 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
03:36:09 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 256 seconds)
03:40:27 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
03:42:57 × terrorjack quits (~terrorjac@2a01:4f8:c17:87f8::) (Quit: The Lounge - https://thelounge.chat)
03:46:16 terrorjack joins (~terrorjac@2a01:4f8:c17:87f8::)
03:46:22 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 255 seconds)
03:47:06 nate4 joins (~nate@c-98-45-158-125.hsd1.ca.comcast.net)
03:55:28 × FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Killed (NickServ (Forcing logout FinnElija -> finn_elija)))
03:55:28 finn_elija joins (~finn_elij@user/finn-elija/x-0085643)
03:55:28 finn_elija is now known as FinnElija
03:58:09 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
04:00:39 bitdex joins (~bitdex@gateway/tor-sasl/bitdex)
04:02:51 × sabino quits (~sabino@user/sabino) (Quit: Lambda _ -> x)
04:02:59 × td_ quits (~td@i53870924.versanet.de) (Ping timeout: 264 seconds)
04:04:20 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 252 seconds)
04:04:25 td_ joins (~td@i5387090F.versanet.de)
04:11:15 int-e wonders whether glguy is going to announce his AoC leaderboard again this year
04:11:42 <glguy> 43100-84040706
04:11:43 × waleee quits (~waleee@h-176-10-144-38.NA.cust.bahnhof.se) (Ping timeout: 276 seconds)
04:11:59 <glguy> There are a couple of slots open - I need to clean out people who haven't been active for a couple years
04:13:05 <EvanR> woo I didn't get cleaned out
04:13:35 <int-e> yet ;)
04:14:01 thegeekinside joins (~thegeekin@189.180.20.15)
04:15:33 <glguy> EvanR: knock out the easy one tonight to refresh your activity level ahead of me going through to find in actives :)
04:15:49 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
04:16:44 <int-e> EvanR was active last year, I suppse that makes him safe regardless
04:16:45 <EvanR> prepped for 11PM
04:19:07 × thegeekinside quits (~thegeekin@189.180.20.15) (Ping timeout: 268 seconds)
04:19:29 <glguy> oh, even better
04:21:33 <iqubic> If I was in there from years past, will I still be in there?
04:21:41 ddb joins (ddb@tilde.club)
04:21:57 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 252 seconds)
04:22:38 × szkl quits (uid110435@id-110435.uxbridge.irccloud.com) (Quit: Connection closed for inactivity)
04:23:21 <EvanR> yes unless glguy clears you out
04:23:38 glguy goes mad with power
04:23:57 <glguy> \o/ muhahahaha
04:25:59 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
04:31:01 peterbecich joins (~Thunderbi@047-229-123-186.res.spectrum.com)
04:32:23 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 252 seconds)
04:38:22 alp_ joins (~alp@2001:861:e3d6:8f80:5d74:3ba3:2c8c:e3fb)
04:41:32 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
04:46:07 × azimut quits (~azimut@gateway/tor-sasl/azimut) (Remote host closed the connection)
04:46:38 azimut joins (~azimut@gateway/tor-sasl/azimut)
04:47:34 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 255 seconds)
04:49:47 × nate4 quits (~nate@c-98-45-158-125.hsd1.ca.comcast.net) (Ping timeout: 264 seconds)
04:50:29 × aforemny_ quits (~aforemny@2001:9e8:6cf7:c300:392a:7ffb:ea4c:323e) (Ping timeout: 240 seconds)
04:50:52 aforemny joins (~aforemny@2001:9e8:6cdf:e00:38e7:17a8:21ff:bb15)
04:59:09 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
05:03:19 × mobivme quits (~mobivme@112.201.111.217) (Ping timeout: 255 seconds)
05:05:07 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 256 seconds)
05:13:07 × Nikopol quits (nikopol@user/astrorigin) (Ping timeout: 260 seconds)
05:15:22 qqq joins (~qqq@92.43.167.61)
05:16:49 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
05:17:22 [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470)
05:22:47 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 264 seconds)
05:26:36 raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
05:28:25 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
05:32:05 <EvanR> wow why isn't my code apparently working for part 2
05:32:13 <EvanR> not a good start to the new year
05:32:55 <int-e> EvanR: it's by design... and slightly annoying tbh
05:33:18 <EvanR> this is the first time "my code works on the example but not the input" that I've heard so much about
05:34:06 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 245 seconds)
05:36:04 <jle`> yeah i feel like for a Day 1, they should be covering this in the examples
05:38:22 <int-e> or be clearer in the spec
05:39:39 <glguy> It felt more like they were sloppy than sneaky to me
05:41:44 <EvanR> step 1 understand the question
05:42:53 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
05:45:54 <EvanR> ok
05:47:01 <int-e> glguy: I don't know... wouldn't basically every beta-tester (and there are several) be expected run into this?
05:47:10 <int-e> +to
05:47:50 <int-e> I guess that can go wrong if there are more than two iterations of the example(s).
05:47:53 <glguy> Maybe? But they've made mistakes before. I'm just trying to give the benefit of the doubt, but I don't know
05:48:38 <int-e> Sure. I mean whether by design or not, there's no actual malice here.
05:48:49 <EvanR> *that you know of*
05:49:22 <EvanR> maybe eric wants to watch aoc burn this year xD
05:50:29 <int-e> tomorrow "your input represents a turing machine. determine whether it halts."
05:52:27 <int-e> (That's how I would burn a competition site... find a problem type that has both easy and impossible instances. Though coming up with an oracle for that may be a bit tricky :-P)
05:53:59 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 264 seconds)
05:54:49 <mauke> haven't tried part 2 yet, but the spec is ambiguous
05:55:45 <mauke> does "oneight" count as 18?
06:01:27 _ht joins (~Thunderbi@28-52-174-82.ftth.glasoperator.nl)
06:02:44 pavonia joins (~user@user/siracusa)
06:03:14 <EvanR> come on, if it was written clearly then everyone would be able to read it
06:03:18 acidjnk joins (~acidjnk@p200300d6e72b9330102e9afa1ce5f091.dip0.t-ipconnect.de)
06:03:19 <EvanR> if it was easy everyone could do it
06:07:17 × abrar quits (~abrar@pool-108-52-90-30.phlapa.fios.verizon.net) (Ping timeout: 240 seconds)
06:07:22 × mjrosenb quits (~mjrosenb@pool-96-232-177-77.nycmny.fios.verizon.net) (Ping timeout: 260 seconds)
06:07:31 mjrosenb joins (~mjrosenb@pool-96-232-177-77.nycmny.fios.verizon.net)
06:07:41 abrar joins (~abrar@pool-108-52-90-30.phlapa.fios.verizon.net)
06:10:09 × peterbecich quits (~Thunderbi@047-229-123-186.res.spectrum.com) (Ping timeout: 256 seconds)
06:10:33 <int-e> FWIW I think the spec is, ultimately, fine. But the relevant information that has to be pieced together is spaced quite far apart.
06:11:13 <EvanR> I read it over and over and I'm curious why you think this xD
06:11:34 takuan joins (~takuan@178-116-218-225.access.telenet.be)
06:15:01 kenran joins (~user@user/kenran)
06:15:09 <monochrom> ON EIGHT GOTO 15
06:15:13 <monochrom> REM >:)
06:15:36 <int-e> rapid eye movement *twitches*
06:15:57 <EvanR> on eight goto 15 sounds like the stand up maths cogputer video
06:16:15 <EvanR> now that's a brain grinder
06:16:27 <int-e> > map toUpper "please abstain from coming from"
06:16:29 <lambdabot> "PLEASE ABSTAIN FROM COMING FROM"
06:17:04 <EvanR> caps lock for some reason doesn't make ' into " or numbers into !@#$
06:17:13 <EvanR> that used to work on my mechanical typewriter
06:17:34 <EvanR> otherwise it would be easier than writing haskell to do it
06:17:38 <int-e> well, that would be a shift-lock
06:17:41 <int-e> not a caps-lock
06:17:48 <int-e> ;)
06:17:52 <EvanR> lol
06:18:58 <int-e> EvanR: I also have mapped that key to, uhm, Mod3
06:19:20 <EvanR> what key
06:19:32 <int-e> The one labelled "Caps Lock"
06:23:41 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
06:23:59 Xyloes joins (~wyx@2400:dd01:103a:1012:5923:33ce:7857:fc04)
06:26:02 <EvanR> @hoogle [Maybe a] -> a
06:26:03 <lambdabot> Graphics.Matplotlib.Internal minimum2 :: (Ord (t a), Ord a, Foldable t1, Foldable t) => t1 (t a) -> a
06:26:03 <lambdabot> Graphics.Matplotlib.Internal maximum2 :: (Ord (t a), Ord a, Foldable t1, Foldable t) => t1 (t a) -> a
06:26:03 <lambdabot> DBus.Generation runGetFirst :: [Maybe a] -> Maybe a
06:26:14 <EvanR> :t getFirst
06:26:15 <lambdabot> First a -> Maybe a
06:26:43 <EvanR> yes, what I asked for it unsafe bad and evil
06:27:35 shOkEy joins (~shOkEy@178-164-235-218.pool.digikabel.hu)
06:32:59 × shOkEy quits (~shOkEy@178-164-235-218.pool.digikabel.hu) (Ping timeout: 264 seconds)
06:33:21 mobivme joins (~mobivme@112.201.111.217)
06:33:32 shOkEy joins (~shOkEy@fibhost-66-208-128.fibernet.hu)
06:34:47 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 264 seconds)
06:34:48 <int-e> who's on first?
06:35:13 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 256 seconds)
06:35:20 euleritian joins (~euleritia@dynamic-046-114-036-071.46.114.pool.telefonica.de)
06:37:13 <int-e> EvanR: interestingly, https://en.wikipedia.org/wiki/Caps_Lock#History makes that exact distinction in terminology.
06:38:02 <EvanR> it could very well have said literally shift lock on the key for all I (don't) remember
06:38:17 <EvanR> it's crazy when jargon makes sense
06:38:37 × shOkEy quits (~shOkEy@fibhost-66-208-128.fibernet.hu) (Ping timeout: 255 seconds)
06:39:05 <int-e> It gets weird when things are anachronistic, like hanging up your phone [receiver].
06:43:32 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
06:44:43 × analoq quits (~yashi@user/dies) (Ping timeout: 256 seconds)
06:45:25 × tomku quits (~tomku@user/tomku) (Ping timeout: 256 seconds)
06:46:26 analoq joins (~yashi@user/dies)
06:49:14 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 252 seconds)
06:49:58 shOkEy joins (~shOkEy@fibhost-66-106-250.fibernet.hu)
06:53:03 coot joins (~coot@89-69-206-216.dynamic.chello.pl)
06:57:16 × [itchyjunk] quits (~itchyjunk@user/itchyjunk/x-7353470) (Read error: Connection reset by peer)
06:58:07 × alp_ quits (~alp@2001:861:e3d6:8f80:5d74:3ba3:2c8c:e3fb) (Ping timeout: 276 seconds)
07:01:13 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
07:06:14 × foul_owl quits (~kerry@185.219.141.160) (Ping timeout: 260 seconds)
07:11:26 × EvanR quits (~EvanR@user/evanr) (Quit: Leaving)
07:11:27 danza joins (~francesco@151.43.231.151)
07:13:47 EvanR joins (~EvanR@user/evanr)
07:14:05 trev joins (~trev@user/trev)
07:18:15 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
07:19:02 alp_ joins (~alp@2001:861:e3d6:8f80:9f83:79b8:96c1:5565)
07:19:02 sord937 joins (~sord937@gateway/tor-sasl/sord937)
07:20:22 foul_owl joins (~kerry@157.97.134.167)
07:21:49 emmanuelux joins (~emmanuelu@user/emmanuelux)
07:23:23 pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655)
07:27:05 cfricke joins (~cfricke@user/cfricke)
07:27:19 × azimut quits (~azimut@gateway/tor-sasl/azimut) (Ping timeout: 240 seconds)
07:36:46 × jespada quits (~jespada@cpc121308-nmal25-2-0-cust15.19-2.cable.virginm.net) (Ping timeout: 268 seconds)
07:37:38 × emmanuelux quits (~emmanuelu@user/emmanuelux) (Quit: au revoir)
07:39:36 jespada joins (~jespada@cpc121308-nmal25-2-0-cust15.19-2.cable.virginm.net)
07:43:14 × bilegeek quits (~bilegeek@2600:1008:b08b:c471:bc55:c296:ae99:b34c) (Ping timeout: 268 seconds)
07:46:34 lortabac joins (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4)
07:49:51 × danza quits (~francesco@151.43.231.151) (Ping timeout: 252 seconds)
07:55:39 <EvanR> int-e, in 6023 researchers likely won't give a damn that people in 2123 were still using floppy disk icon for "save", the time difference is close enough xD
07:58:42 danse-nr3 joins (~danse@151.43.231.151)
08:04:31 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 245 seconds)
08:07:08 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
08:08:40 <monochrom> Inspired by "abstain from": A new construct "ABSTAIN FROM" such that eg "ABSTAIN FROM 30, 40" means that if you jump from line 40 or 50 to it, it aborts or returns or... I'm open to suggestions, anything except normal execution flow. >:)
08:09:19 <int-e> monochrom: read the Intercal manual
08:09:37 <monochrom> onoes, it already has it?
08:09:54 <monochrom> What did intercal not think of? :D
08:10:17 <monochrom> Does it have dependent types too?
08:10:20 <int-e> It has, among other things, COME FROM, ABSTAIN FROM, and REINSTATE. Oh and a politeness requirement for programs.
08:11:23 <monochrom> Like this? PRINT "HELLO" WHEN YOU ARE READY
08:11:37 <int-e> It also has BASIC-like labeled statements and ABSTRAIN FROM and REINSTATE work on statements.
08:11:47 <int-e> There are no strings.
08:12:04 <jackdk> . and : are the two sizes of integer IIRC
08:12:16 × kosmikus quits (~kosmikus@nullzig.kosmikus.org) (Ping timeout: 246 seconds)
08:12:36 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 256 seconds)
08:13:22 mulk joins (~mulk@p5b2dc93f.dip0.t-ipconnect.de)
08:13:26 <monochrom> oooohhhhh.... Take Pascal but s/begin/please/ and s/end/thank you/ >:)
08:18:22 kosmikus joins (~kosmikus@nullzig.kosmikus.org)
08:20:26 cstml joins (~cstml@user/cstml)
08:21:25 <EvanR> no strings makes sense
08:21:48 <EvanR> unless you have 36 bit words and limit your strings to 5 or less ascii chars
08:22:57 <EvanR> else it's the odd one out among "basic types" for taking up so much space
08:24:06 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
08:24:29 × kosmikus quits (~kosmikus@nullzig.kosmikus.org) (Ping timeout: 240 seconds)
08:25:51 kosmikus joins (~kosmikus@nullzig.kosmikus.org)
08:26:17 × hamess quits (~hamess@user/hamess) (Ping timeout: 256 seconds)
08:26:26 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:4593:1157:cf3d:65e4) (Remote host closed the connection)
08:27:22 hamess joins (~hamess@user/hamess)
08:27:59 × euleritian quits (~euleritia@dynamic-046-114-036-071.46.114.pool.telefonica.de) (Read error: Connection reset by peer)
08:28:16 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
08:30:03 bilegeek joins (~bilegeek@152.sub-174-209-33.myvzw.com)
08:30:16 × mobivme quits (~mobivme@112.201.111.217) (Remote host closed the connection)
08:31:09 mobivme joins (~mobivme@112.201.111.217)
08:31:29 vpan joins (~vpan@mail.elitnet.lt)
08:35:50 fendor joins (~fendor@2a02:8388:1605:d100:267b:1353:13d7:4f0c)
08:35:56 idgaen joins (~idgaen@2a01:e0a:498:fd50:fcc6:bb5d:489a:ce8c)
08:36:37 × todi quits (~todi@pd9571327.dip0.t-ipconnect.de) (Remote host closed the connection)
08:36:53 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 268 seconds)
08:39:21 × shriekingnoise quits (~shrieking@186.137.175.87) (Ping timeout: 268 seconds)
08:44:40 pandry joins (~Pandry@93-41-34-64.ip79.fastwebnet.it)
08:45:10 × kosmikus quits (~kosmikus@nullzig.kosmikus.org) (Ping timeout: 255 seconds)
08:46:59 × danse-nr3 quits (~danse@151.43.231.151) (Remote host closed the connection)
08:47:24 danse-nr3 joins (~danse@151.43.231.151)
08:49:54 todi joins (~todi@pd9571327.dip0.t-ipconnect.de)
08:50:34 × benjaminl quits (~benjaminl@user/benjaminl) (Ping timeout: 255 seconds)
08:50:46 kosmikus joins (~kosmikus@nullzig.kosmikus.org)
08:54:15 machinedgod joins (~machinedg@d198-53-218-113.abhsia.telus.net)
08:54:34 misterfish joins (~misterfis@84-53-85-146.bbserv.nl)
08:55:44 × cstml quits (~cstml@user/cstml) (Ping timeout: 252 seconds)
08:56:16 cstml joins (~cstml@user/cstml)
08:57:21 eggplantade joins (~Eggplanta@2600:1700:38c5:d800:4593:1157:cf3d:65e4)
09:03:59 zero joins (~z@user/zero)
09:04:07 × dsrt^ quits (~dsrt@c-98-242-74-66.hsd1.ga.comcast.net) (Ping timeout: 256 seconds)
09:04:51 dsrt^ joins (~dsrt@c-98-242-74-66.hsd1.ga.comcast.net)
09:05:49 gmg joins (~user@user/gehmehgeh)
09:07:25 × zzz quits (~z@user/zero) (Ping timeout: 268 seconds)
09:08:11 <tomsmeding> C be live "basic types"?
09:08:13 <tomsmeding> *like
09:08:54 × cstml quits (~cstml@user/cstml) (Ping timeout: 260 seconds)
09:09:19 × komikat quits (~akshitkr@218.185.248.66) (Ping timeout: 246 seconds)
09:13:38 × tzh quits (~tzh@c-71-193-181-0.hsd1.or.comcast.net) (Quit: zzz)
09:14:22 × adanwan quits (~adanwan@gateway/tor-sasl/adanwan) (Remote host closed the connection)
09:14:44 adanwan joins (~adanwan@gateway/tor-sasl/adanwan)
09:15:17 × santiagopim quits (~user@90.167.66.131) (Remote host closed the connection)
09:16:01 Flonk joins (~Flonk@2a02:8388:a86:9d00:cda0:dc82:87fc:269b)
09:17:26 <Flonk> It's been a while. I've set up a new stack project, and I'm trying to do `import Data.Text.IO (readFile)`. It says I don't have text in my build-depends in my cabal file. `stack install text` didn't seem to resolve the issue.
09:21:40 <Flonk> This exact example is literally in the docs, you're a dumass Flonk
09:21:43 <Flonk> no u Flonk
09:23:54 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
09:25:46 × misterfish quits (~misterfis@84-53-85-146.bbserv.nl) (Ping timeout: 245 seconds)
09:29:02 <dminuoso_> Sigh, Im so tempted to use HDBC to interact with this postgresql.
09:29:21 <dminuoso_> hasql has a dependency footprint rivaling that of npm hosted web frameworks
09:29:35 <dminuoso_> postgresql Im deeply unhappy with :(
09:29:54 <dminuoso_> Are there folks here who still use HDBC? If yes, why?
09:30:25 __monty__ joins (~toonn@user/toonn)
09:31:40 <dminuoso_> Or maybe I should just use postgresql-libpq directly and avoid all the pain.
09:33:22 <danse-nr3> not sure how many layers are you on top of but if that is one layer closer to the problem often that helps, yes
09:36:16 <dminuoso_> For this problem, I just need two select and one insert statement.
09:36:57 chele joins (~chele@user/chele)
09:37:28 <probie> Just shell out to `psql`?
09:38:38 × chele quits (~chele@user/chele) (Remote host closed the connection)
09:39:04 <Flonk> I'm trying to distribute a file alongside my exe now. adding `data-files: assets/input.txt` under `executables` in my package.yaml doesn't seem to do it. At least, `getDataFileName "assets/input.txt"` doesn't find anything.
09:39:39 <Flonk> `stack build` also doesn't include a `data-files` section in the auto-generated cabal file.
09:40:24 <dminuoso_> probie: Mmm, so that actually brought up an interesting idea. I could just slap postgrest ontop of it. While yes, this has hasql and loads of moving parts inside, its just an nix closure for me and doenst impact the dependency closure of my program.
09:40:59 <dminuoso_> Think I dont really get around to doing my "mini-hasql" fork.
09:41:20 <danse-nr3> one of the most brilliant haskell projects i have seen in the past years
09:43:05 chele joins (~chele@user/chele)
09:44:43 × bilegeek quits (~bilegeek@152.sub-174-209-33.myvzw.com) (Ping timeout: 268 seconds)
09:47:38 misterfish joins (~misterfis@46.44.172.198)
09:48:51 × Sgeo quits (~Sgeo@user/sgeo) (Read error: Connection reset by peer)
09:53:57 Pickchea joins (~private@user/pickchea)
09:55:12 Pickchea parts (~private@user/pickchea) ()
09:55:43 × econo_ quits (uid147250@id-147250.tinside.irccloud.com) (Quit: Connection closed for inactivity)
09:56:12 kuribas joins (~user@ip-188-118-57-242.reverse.destiny.be)
10:00:16 Nikopol joins (nikopol@yoga.astrorigin.com)
10:00:17 × Nikopol quits (nikopol@yoga.astrorigin.com) (Changing host)
10:00:17 Nikopol joins (nikopol@user/astrorigin)
10:05:58 × jorik808 quits (~jorik808@d51A48920.access.telenet.be) (Ping timeout: 276 seconds)
10:12:00 mmhat joins (~mmh@2003:f1:c728:73aa:ee08:6bff:fe09:5315)
10:12:54 Lord_of_Life_ joins (~Lord@user/lord-of-life/x-2819915)
10:13:09 CiaoSen joins (~Jura@2a05:5800:2b6:5100:2a3a:4dff:fe84:dbd5)
10:13:47 × Lord_of_Life quits (~Lord@user/lord-of-life/x-2819915) (Ping timeout: 264 seconds)
10:15:53 Lord_of_Life_ is now known as Lord_of_Life
10:19:14 dhil joins (~dhil@2001:8e0:2014:3100:b8f6:f95:844:c371)
10:21:32 × Nixkernal quits (~Nixkernal@115.16.194.178.dynamic.wline.res.cust.swisscom.ch) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
10:23:21 × mikess quits (~sam@user/mikess) (Read error: Connection reset by peer)
10:23:28 <tomsmeding> Flonk: to use data-files you'll need to install your program using e.g. `stack install`; the installed executable will have access to the file
10:23:35 <tomsmeding> if I'm not mistaken
10:24:04 <tomsmeding> there may or may not be a way to find that file in the non-installed state with `stack run`, but I don't know of any (never used data-files much)
10:24:33 <Flonk> tomsmeding, stack build and stack exec worked, I just put `data-files` in the wrong place in my package.yaml (and was missing `data-dir` I think)
10:24:51 wib_jonas joins (~wib_jonas@business-37-191-60-209.business.broadband.hu)
10:25:13 <tomsmeding> ah :)
10:25:34 jorik808 joins (~jorik808@d51A48920.access.telenet.be)
10:27:13 × bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Remote host closed the connection)
10:28:23 bitdex joins (~bitdex@gateway/tor-sasl/bitdex)
10:31:00 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 252 seconds)
10:34:07 × Flonk quits (~Flonk@2a02:8388:a86:9d00:cda0:dc82:87fc:269b) (Quit: Client closed)
10:37:56 zetef joins (~quassel@2a02:2f00:5201:4b00:7fc8:6fbe:33d9:ba2a)
10:39:12 raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
10:42:09 cstml joins (~cstml@user/cstml)
10:43:25 × misterfish quits (~misterfis@46.44.172.198) (Ping timeout: 256 seconds)
10:48:11 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
10:49:50 Unicorn_Princess joins (~Unicorn_P@user/Unicorn-Princess/x-3540542)
11:06:31 × danse-nr3 quits (~danse@151.43.231.151) (Read error: Connection reset by peer)
11:06:47 danse-nr3 joins (~danse@151.19.253.36)
11:08:17 × dhil quits (~dhil@2001:8e0:2014:3100:b8f6:f95:844:c371) (Ping timeout: 268 seconds)
11:09:40 × CiaoSen quits (~Jura@2a05:5800:2b6:5100:2a3a:4dff:fe84:dbd5) (Ping timeout: 276 seconds)
11:11:59 × danse-nr3 quits (~danse@151.19.253.36) (Ping timeout: 268 seconds)
11:11:59 × cstml quits (~cstml@user/cstml) (Ping timeout: 268 seconds)
11:15:00 danse-nr3 joins (~danse@151.19.253.36)
11:15:44 × danse-nr3 quits (~danse@151.19.253.36) (Remote host closed the connection)
11:16:08 danse-nr3 joins (~danse@151.19.253.36)
11:30:46 × zetef quits (~quassel@2a02:2f00:5201:4b00:7fc8:6fbe:33d9:ba2a) (Ping timeout: 255 seconds)
11:31:35 × lortabac quits (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Ping timeout: 260 seconds)
11:33:04 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 276 seconds)
11:34:49 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 255 seconds)
11:36:50 euleritian joins (~euleritia@dynamic-089-204-154-216.89.204.154.pool.telefonica.de)
11:37:12 lortabac joins (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4)
11:41:26 raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
11:46:11 × euleritian quits (~euleritia@dynamic-089-204-154-216.89.204.154.pool.telefonica.de) (Ping timeout: 264 seconds)
11:46:26 × mmhat quits (~mmh@2003:f1:c728:73aa:ee08:6bff:fe09:5315) (Quit: WeeChat 4.1.1)
11:47:10 euleritian joins (~euleritia@dynamic-002-247-248-118.2.247.pool.telefonica.de)
11:53:34 zetef joins (~quassel@2a02:2f00:5201:4b00:7fc8:6fbe:33d9:ba2a)
11:53:37 × dsrt^ quits (~dsrt@c-98-242-74-66.hsd1.ga.comcast.net) (Ping timeout: 255 seconds)
11:54:52 billchenchina joins (~billchenc@2a0d:2580:ff0c:1:e3c9:c52b:a429:5bfe)
11:55:58 tremon joins (~tremon@83.80.159.219)
11:56:54 × billchenchina quits (~billchenc@2a0d:2580:ff0c:1:e3c9:c52b:a429:5bfe) (Remote host closed the connection)
11:57:11 chomwitt joins (~chomwitt@ppp-94-67-191-45.home.otenet.gr)
12:00:44 × wib_jonas quits (~wib_jonas@business-37-191-60-209.business.broadband.hu) (Quit: Client closed)
12:01:11 × JeremyB99 quits (~JeremyB99@208.64.173.6) (Ping timeout: 264 seconds)
12:01:44 dsrt^ joins (~dsrt@c-98-242-74-66.hsd1.ga.comcast.net)
12:02:43 × euleritian quits (~euleritia@dynamic-002-247-248-118.2.247.pool.telefonica.de) (Ping timeout: 255 seconds)
12:09:22 euleritian joins (~euleritia@dynamic-002-247-248-118.2.247.pool.telefonica.de)
12:11:01 CiaoSen joins (~Jura@2a05:5800:2b6:5100:2a3a:4dff:fe84:dbd5)
12:11:18 rosco joins (~rosco@175.136.158.171)
12:12:29 JeremyB99 joins (~JeremyB99@208.64.173.6)
12:15:56 waleee joins (~waleee@h-176-10-144-38.NA.cust.bahnhof.se)
12:17:09 × JeremyB99 quits (~JeremyB99@208.64.173.6) (Ping timeout: 252 seconds)
12:19:37 × alp_ quits (~alp@2001:861:e3d6:8f80:9f83:79b8:96c1:5565) (Ping timeout: 256 seconds)
12:23:16 × dsrt^ quits (~dsrt@c-98-242-74-66.hsd1.ga.comcast.net) (Ping timeout: 245 seconds)
12:30:35 Guest38 joins (~Guest38@2409:4042:4e19:85a0:15ca:86c3:4e13:23d4)
12:31:12 × zetef quits (~quassel@2a02:2f00:5201:4b00:7fc8:6fbe:33d9:ba2a) (Remote host closed the connection)
12:31:52 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
12:37:43 × tessier quits (~treed@ec2-184-72-149-67.compute-1.amazonaws.com) (Ping timeout: 255 seconds)
12:38:06 tessier joins (~treed@ec2-184-72-149-67.compute-1.amazonaws.com)
12:41:18 zetef joins (~quassel@2a02:2f00:5201:4b00:7fc8:6fbe:33d9:ba2a)
12:46:04 Guest38 parts (~Guest38@2409:4042:4e19:85a0:15ca:86c3:4e13:23d4) ()
12:46:16 × danse-nr3 quits (~danse@151.19.253.36) (Ping timeout: 255 seconds)
12:46:50 alp_ joins (~alp@2001:861:e3d6:8f80:8994:a6fd:f1c5:3a0b)
12:47:23 tomku joins (~tomku@user/tomku)
12:48:39 × zetef quits (~quassel@2a02:2f00:5201:4b00:7fc8:6fbe:33d9:ba2a) (Ping timeout: 256 seconds)
12:50:20 × tessier quits (~treed@ec2-184-72-149-67.compute-1.amazonaws.com) (Ping timeout: 268 seconds)
12:50:58 × fendor quits (~fendor@2a02:8388:1605:d100:267b:1353:13d7:4f0c) (Remote host closed the connection)
12:53:52 × euleritian quits (~euleritia@dynamic-002-247-248-118.2.247.pool.telefonica.de) (Read error: Connection reset by peer)
12:55:04 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
12:59:07 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer)
12:59:15 euleritian joins (~euleritia@dynamic-002-247-248-118.2.247.pool.telefonica.de)
12:59:37 × euleritian quits (~euleritia@dynamic-002-247-248-118.2.247.pool.telefonica.de) (Read error: Connection reset by peer)
12:59:55 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
12:59:57 dsrt^ joins (~dsrt@c-98-242-74-66.hsd1.ga.comcast.net)
13:01:34 sawilagar joins (~sawilagar@user/sawilagar)
13:02:02 L29Ah joins (~L29Ah@wikipedia/L29Ah)
13:04:16 × bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Remote host closed the connection)
13:04:25 slack1256 joins (~slack1256@191.125.165.79)
13:05:10 × dsrt^ quits (~dsrt@c-98-242-74-66.hsd1.ga.comcast.net) (Ping timeout: 255 seconds)
13:05:28 bitdex joins (~bitdex@gateway/tor-sasl/bitdex)
13:06:41 <slack1256> does anybody know if you can bump the filepath version or is that shipped with ghc? Is it a boot library?
13:08:35 <dminuoso_> slack1256: Its a boot library, but that doesnt prevent you from bumping the version.
13:09:15 <dminuoso_> Assuming you use cabal here, cabal-install can manage many concurrent versions - use GHC boot libraries or install the ones it wants from hackage.
13:10:36 danse-nr3 joins (~danse@151.19.253.36)
13:11:20 × idgaen quits (~idgaen@2a01:e0a:498:fd50:fcc6:bb5d:489a:ce8c) (Quit: WeeChat 4.1.1)
13:11:24 <slack1256> I am guessing that is different on stack/stackage resolvers? If i declared it as an extra dep it yells loudly.
13:11:38 <dminuoso_> I cant tell you anything about stack, sorry.
13:11:51 <slack1256> haha np
13:11:55 <slack1256> thanks
13:12:12 <dminuoso_> slack1256: care to share how stack complains?
13:13:19 × danse-nr3 quits (~danse@151.19.253.36) (Remote host closed the connection)
13:13:42 danse-nr3 joins (~danse@151.19.253.36)
13:15:30 × rosco quits (~rosco@175.136.158.171) (Quit: Lost terminal)
13:15:40 × img quits (~img@user/img) (Quit: ZNC 1.8.2 - https://znc.in)
13:16:11 × __monty__ quits (~toonn@user/toonn) (Ping timeout: 264 seconds)
13:17:01 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
13:17:08 __monty__ joins (~toonn@user/toonn)
13:17:38 <slack1256> https://pastebin.com/vSk7SPwg
13:17:57 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
13:18:13 <slack1256> this is after setting filepath-1.4.100.0 on extra deps
13:18:36 img joins (~img@user/img)
13:19:31 <slack1256> i feel this is invalidating the other boot libraries somehow
13:20:05 <dminuoso_> slack1256: https://github.com/commercialhaskell/stack/issues/4897
13:20:16 <dminuoso_> Right. See the issue,
13:20:26 <dminuoso_> Relatedly https://github.com/commercialhaskell/stack/issues/4510
13:21:45 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
13:22:01 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
13:22:22 <slack1256> that was right there on the error message... Thanks you a lot dminuoso_
13:22:54 bollu joins (~bollu@159.65.151.13)
13:25:55 dsrt^ joins (~dsrt@c-98-242-74-66.hsd1.ga.comcast.net)
13:26:35 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
13:27:13 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
13:29:26 × califax quits (~califax@user/califx) (Remote host closed the connection)
13:30:07 califax joins (~califax@user/califx)
13:31:39 azimut joins (~azimut@gateway/tor-sasl/azimut)
13:36:07 × bitdex quits (~bitdex@gateway/tor-sasl/bitdex) (Quit: = "")
13:36:51 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
13:37:32 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
13:42:21 × dsrt^ quits (~dsrt@c-98-242-74-66.hsd1.ga.comcast.net) (Ping timeout: 256 seconds)
13:49:51 × __monty__ quits (~toonn@user/toonn) (Ping timeout: 268 seconds)
13:52:18 shriekingnoise joins (~shrieking@186.137.175.87)
14:01:02 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
14:01:35 tessier joins (~treed@ec2-184-72-149-67.compute-1.amazonaws.com)
14:05:57 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
14:06:14 __monty__ joins (~toonn@user/toonn)
14:06:48 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
14:08:19 × slack1256 quits (~slack1256@191.125.165.79) (Read error: Connection reset by peer)
14:09:35 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
14:12:18 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
14:12:34 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
14:14:45 szkl joins (uid110435@id-110435.uxbridge.irccloud.com)
14:16:54 dhil joins (~dhil@2001:8e0:2014:3100:76fc:be2d:3243:3d45)
14:17:16 thegeekinside joins (~thegeekin@189.180.20.15)
14:19:00 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
14:23:16 × __monty__ quits (~toonn@user/toonn) (Ping timeout: 245 seconds)
14:25:06 dsrt^ joins (~dsrt@c-98-242-74-66.hsd1.ga.comcast.net)
14:26:48 × drdo quits (~drdo@bl14-14-49.dsl.telepac.pt) (Quit: Ping timeout (120 seconds))
14:27:11 drdo joins (~drdo@bl14-14-49.dsl.telepac.pt)
14:28:35 × Xyloes quits (~wyx@2400:dd01:103a:1012:5923:33ce:7857:fc04) (Quit: Konversation terminated!)
14:28:47 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
14:30:31 ystael joins (~ystael@user/ystael)
14:31:56 × vpan quits (~vpan@mail.elitnet.lt) (Quit: Leaving.)
14:31:57 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
14:32:41 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
14:33:14 × alp_ quits (~alp@2001:861:e3d6:8f80:8994:a6fd:f1c5:3a0b) (Ping timeout: 260 seconds)
14:37:22 × tessier quits (~treed@ec2-184-72-149-67.compute-1.amazonaws.com) (Ping timeout: 256 seconds)
14:39:20 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
14:40:15 Techcable joins (uid534393@user/Techcable)
14:40:55 × dsrt^ quits (~dsrt@c-98-242-74-66.hsd1.ga.comcast.net) (Ping timeout: 276 seconds)
14:42:14 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
14:43:00 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
14:43:15 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
14:47:28 __monty__ joins (~toonn@user/toonn)
14:47:29 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
14:49:10 × FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Killed (NickServ (Forcing logout FinnElija -> finn_elija)))
14:49:10 finn_elija joins (~finn_elij@user/finn-elija/x-0085643)
14:49:10 finn_elija is now known as FinnElija
14:50:24 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
14:51:33 not_reserved joins (~not_reser@185.205.247.233)
14:56:04 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
14:56:30 edr joins (~edr@user/edr)
15:00:51 idgaen joins (~idgaen@2a01:e0a:498:fd50:fcc6:bb5d:489a:ce8c)
15:01:02 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
15:03:04 cstml joins (~cstml@user/cstml)
15:04:18 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
15:04:50 × Unode quits (~Unode@fg-ext-220.embl.de) (Read error: Connection reset by peer)
15:04:59 Unode_ joins (~Unode@fg-ext-220.embl.de)
15:05:04 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
15:05:25 Unode_ is now known as Unode
15:08:12 × CrunchyFlakes quits (~CrunchyFl@ip92348280.dynamic.kabel-deutschland.de) (Ping timeout: 252 seconds)
15:08:21 × abrar quits (~abrar@pool-108-52-90-30.phlapa.fios.verizon.net) (Quit: WeeChat 3.8)
15:09:21 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
15:09:35 × danse-nr3 quits (~danse@151.19.253.36) (Ping timeout: 264 seconds)
15:10:08 CrunchyFlakes joins (~CrunchyFl@ip92348280.dynamic.kabel-deutschland.de)
15:10:11 abrar joins (~abrar@pool-108-52-90-30.phlapa.fios.verizon.net)
15:10:42 danse-nr3 joins (~danse@151.47.253.135)
15:11:19 × cstml quits (~cstml@user/cstml) (Ping timeout: 256 seconds)
15:11:36 komikat joins (~akshitkr@218.185.248.66)
15:11:55 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
15:12:57 ph88 joins (~ph88@ip5b40e272.dynamic.kabel-deutschland.de)
15:13:17 tessier joins (~treed@ec2-184-72-149-67.compute-1.amazonaws.com)
15:13:55 <ph88> I'm trying to install dhall lsp server https://github.com/dhall-lang/dhall-haskell/tree/main/dhall-lsp-server#installation and getting some errors https://bpa.st/M3EQ ? what's going on here? i always use stack never cabal
15:14:14 × __monty__ quits (~toonn@user/toonn) (Ping timeout: 252 seconds)
15:16:05 shapr joins (~user@2600:1700:c640:3100:64d4:913:209b:5194)
15:16:37 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
15:22:03 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
15:23:21 × CiaoSen quits (~Jura@2a05:5800:2b6:5100:2a3a:4dff:fe84:dbd5) (Ping timeout: 256 seconds)
15:25:52 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
15:26:08 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
15:26:36 × chomwitt quits (~chomwitt@ppp-94-67-191-45.home.otenet.gr) (Ping timeout: 245 seconds)
15:27:47 drdo4 joins (~drdo@bl14-14-49.dsl.telepac.pt)
15:28:11 × waleee quits (~waleee@h-176-10-144-38.NA.cust.bahnhof.se) (Ping timeout: 264 seconds)
15:28:49 × drdo quits (~drdo@bl14-14-49.dsl.telepac.pt) (Ping timeout: 268 seconds)
15:28:49 drdo4 is now known as drdo
15:40:34 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
15:41:13 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
15:43:05 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
15:49:20 × komikat quits (~akshitkr@218.185.248.66) (Ping timeout: 252 seconds)
15:52:33 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
15:58:51 alp_ joins (~alp@2001:861:e3d6:8f80:59d8:263b:b0f2:606a)
16:03:10 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
16:04:11 × danse-nr3 quits (~danse@151.47.253.135) (Ping timeout: 252 seconds)
16:04:51 <c_wraith> lortabac: I spent some time looking at GHC.TypeLits in more detail, as well as what you were trying to do. And... I have no idea why GHC.TypeLits provides SNat now, because it sort of misses the point of singletons to have them without having value-level versions of the type operators for them.
16:05:24 <lortabac> c_wraith: IIRC the documentation mentions a pattern-synonym
16:05:56 bienjensu joins (~user@user/bienjensu)
16:06:06 <lortabac> maybe you can do something like (case of Snat 0 -> _) ?
16:06:35 <lortabac> TBH I haven't had the time to look at this problem yet
16:06:40 <c_wraith> the documentation for all three singleton's pattern synonyms is wrong in the same way, fwiw. a silly typo, but it really makes them lie
16:07:05 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
16:07:20 <c_wraith> The pattern synonyms don't do anything that you don't get from natVal and someNatVal
16:07:30 <lortabac> oh strange
16:07:33 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
16:08:20 <lortabac> so, is it possible to define my 'generate' function with this module?
16:08:36 <c_wraith> Not in a way the type systems knows is correct.
16:08:49 <c_wraith> https://paste.tomsmeding.com/I2hpWpM9 but if you're willing to... help...
16:09:06 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
16:10:10 <lortabac> haha unsafeCoerce
16:10:24 × kenran quits (~user@user/kenran) (Remote host closed the connection)
16:10:36 <c_wraith> It's perfectly safe in that use case. The type *isn't* changing, you're just telling GHC "I know this is safe"
16:10:49 × notzmv quits (~zmv@user/notzmv) (Ping timeout: 256 seconds)
16:10:54 <c_wraith> It's like the use case it legitimately is intended for
16:11:00 <lortabac> yes
16:11:29 <c_wraith> But yeah, it should be hidden behind something inside the GHC.TypeLits, not forced on you as the user
16:12:33 <lortabac> I'll try to have a look when I have time, but I doubt I'll be able to do more than what you already did
16:13:19 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
16:13:48 <lortabac> I guess it wouldn't work even with 'sameNat'
16:13:54 <c_wraith> There are ways to not run into that. The most direct is to not use Nat in the definition of the type. The problem is specifically related to Nat.
16:14:05 Sgeo joins (~Sgeo@user/sgeo)
16:14:23 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 264 seconds)
16:14:38 <c_wraith> Alternatively, there is a type checker plugin that magically creates KnownNat instances so that KnownNat n does actually imply KnownNat (n+1)
16:15:56 <c_wraith> A third alternative is to lobby for GHC.TypeLits to get functions that reflect the arithmetic type families. So you would have something like `sPlus :: SNat m -> SNat n -> SNat (m + n)`. That would be sufficient
16:16:16 <c_wraith> But it depends on a hypothetical future release of GHC
16:17:31 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
16:18:25 × Angelz quits (Angelz@2605:6400:30:fc15:9bd1:2217:41cd:bb15) (Remote host closed the connection)
16:20:50 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
16:23:01 <lortabac> c_wraith: what do you mean by "not using Nat"?
16:23:12 <lortabac> defining your own inductive type?
16:23:16 <c_wraith> yes
16:23:55 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
16:24:38 <lortabac> I have something similar in one of my projects, I was hoping I could get rid of my types and use GHC's Nat
16:24:58 <lortabac> but AFAICS it's premature
16:25:14 <c_wraith> As things stand, Nat is more useful as part of an external-facing library interface than for internal use to help maintain invariants.
16:26:21 <lortabac> yes I guess so
16:27:05 __monty__ joins (~toonn@user/toonn)
16:27:21 <lortabac> I have to go now, I'll try to play a little bit with that module anyway
16:27:41 <lortabac> just as an exercise
16:27:45 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
16:28:39 × lortabac quits (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Quit: WeeChat 4.1.1)
16:28:56 econo_ joins (uid147250@id-147250.tinside.irccloud.com)
16:29:19 × azimut quits (~azimut@gateway/tor-sasl/azimut) (Ping timeout: 240 seconds)
16:32:10 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
16:34:22 × shapr quits (~user@2600:1700:c640:3100:64d4:913:209b:5194) (Remote host closed the connection)
16:34:28 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
16:34:37 shapr joins (~user@2600:1700:c640:3100:898e:add4:bffe:d116)
16:34:55 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
16:38:25 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:4593:1157:cf3d:65e4) (Remote host closed the connection)
16:38:41 eggplantade joins (~Eggplanta@2600:1700:38c5:d800:e149:4c4f:e3f1:4f3e)
16:41:47 azimut joins (~azimut@gateway/tor-sasl/azimut)
16:42:42 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
16:42:58 Angelz joins (Angelz@Angelz.oddprotocol.org)
16:45:19 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer)
16:45:56 euleritian joins (~euleritia@77.22.252.56)
16:54:02 tzh joins (~tzh@c-71-193-181-0.hsd1.or.comcast.net)
16:54:58 × euleritian quits (~euleritia@77.22.252.56) (Read error: Connection reset by peer)
16:55:47 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
16:56:30 × kuribas quits (~user@ip-188-118-57-242.reverse.destiny.be) (Remote host closed the connection)
16:58:12 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer)
16:59:06 × machinedgod quits (~machinedg@d198-53-218-113.abhsia.telus.net) (Ping timeout: 245 seconds)
16:59:14 euleritian joins (~euleritia@77.22.252.56)
17:02:25 × hamess quits (~hamess@user/hamess) (Ping timeout: 255 seconds)
17:04:47 ddellacosta joins (~ddellacos@ool-44c73d16.dyn.optonline.net)
17:04:55 raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
17:06:49 AlexNoo_ joins (~AlexNoo@5.139.232.120)
17:07:50 fendor joins (~fendor@2a02:8388:1605:d100:267b:1353:13d7:4f0c)
17:10:14 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
17:10:22 × AlexZenon quits (~alzenon@178.34.151.29) (Ping timeout: 256 seconds)
17:10:25 × AlexNoo quits (~AlexNoo@178.34.151.29) (Ping timeout: 255 seconds)
17:10:47 AlexNoo_ is now known as AlexNoo
17:10:48 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:e149:4c4f:e3f1:4f3e) (Remote host closed the connection)
17:12:11 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
17:13:44 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
17:14:50 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
17:17:44 eggplantade joins (~Eggplanta@2600:1700:38c5:d800:e149:4c4f:e3f1:4f3e)
17:19:17 AlexZenon joins (~alzenon@5.139.232.120)
17:21:03 × euleritian quits (~euleritia@77.22.252.56) (Ping timeout: 268 seconds)
17:21:23 euleritian joins (~euleritia@dynamic-002-247-250-096.2.247.pool.telefonica.de)
17:22:28 × euleritian quits (~euleritia@dynamic-002-247-250-096.2.247.pool.telefonica.de) (Read error: Connection reset by peer)
17:22:46 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
17:24:11 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
17:24:12 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
17:29:19 × cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 4.0.5)
17:30:10 chomwitt joins (~chomwitt@2a02:587:7a09:c300:1ac0:4dff:fedb:a3f1)
17:30:46 <ncf> @pl \ a (b, c) (d, e) -> a b c d e
17:30:46 <lambdabot> (`ap` snd) . (. fst) . flip flip snd . ((flip . (ap .)) .) . flip flip fst . ((flip . ((.) .)) .)
17:30:54 <ncf> does pl not know about uncurry
17:31:05 <ncf> :t fmap uncurry . uncurry
17:31:06 <lambdabot> (a1 -> b1 -> a2 -> b2 -> c) -> (a1, b1) -> (a2, b2) -> c
17:31:46 <monochrom> @pl \x y -> f (x,y)
17:31:46 <lambdabot> (f .) . (,)
17:32:13 <monochrom> Oh, that is a bit disappointing, it doesn't say uncurry f.
17:32:52 <monochrom> But it is not an LLM so it does not give idiomatic answers. :)
17:33:21 <glguy> The answer with all the operators is much more syntactically impressive, and isn't that why you'd use ?pl in the first place?
17:33:56 <monochrom> But I was not impressed. :)
17:34:12 finn_elija joins (~finn_elij@user/finn-elija/x-0085643)
17:34:12 × FinnElija quits (~finn_elij@user/finn-elija/x-0085643) (Killed (NickServ (Forcing logout FinnElija -> finn_elija)))
17:34:12 finn_elija is now known as FinnElija
17:34:15 × chomwitt quits (~chomwitt@2a02:587:7a09:c300:1ac0:4dff:fedb:a3f1) (Remote host closed the connection)
17:34:33 <monochrom> Syntactically impressive but not tactically impressive :)
17:34:39 chomwitt joins (~chomwitt@2a02:587:7a09:c300:1ac0:4dff:fedb:a3f1)
17:38:25 × hippoid quits (~hippoid@user/hippoid) (Ping timeout: 255 seconds)
17:38:40 hamess joins (~hamess@user/hamess)
17:38:48 hippoid joins (~hippoid@c-98-213-162-40.hsd1.il.comcast.net)
17:40:40 × dhil quits (~dhil@2001:8e0:2014:3100:76fc:be2d:3243:3d45) (Ping timeout: 246 seconds)
17:41:37 × chomwitt quits (~chomwitt@2a02:587:7a09:c300:1ac0:4dff:fedb:a3f1) (Ping timeout: 276 seconds)
17:42:58 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
17:44:55 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
17:48:08 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
17:50:30 <Franciman> speaking about ATS monochrom ?
17:50:32 <Franciman> :P
17:51:01 × hippoid quits (~hippoid@c-98-213-162-40.hsd1.il.comcast.net) (Changing host)
17:51:01 hippoid joins (~hippoid@user/hippoid)
17:51:38 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
17:52:53 × hamess quits (~hamess@user/hamess) (Ping timeout: 240 seconds)
17:54:23 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
17:55:14 notzmv joins (~zmv@user/notzmv)
17:57:27 × sord937 quits (~sord937@gateway/tor-sasl/sord937) (Quit: sord937)
17:58:52 × Unode quits (~Unode@fg-ext-220.embl.de) (Read error: Connection reset by peer)
17:59:55 × thegeekinside quits (~thegeekin@189.180.20.15) (Ping timeout: 246 seconds)
18:01:22 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
18:02:32 Unode joins (~Unode@fg-ext-220.embl.de)
18:06:29 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
18:06:29 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
18:06:48 mc47 joins (~mc47@xmonad/TheMC47)
18:08:01 × m5zs7k quits (aquares@web10.mydevil.net) (Ping timeout: 255 seconds)
18:09:15 hamess joins (~hamess@user/hamess)
18:09:54 m5zs7k joins (aquares@web10.mydevil.net)
18:10:26 target_i joins (~target_i@217.175.14.39)
18:13:45 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer)
18:14:27 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
18:15:57 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
18:16:45 × notzmv quits (~zmv@user/notzmv) (Ping timeout: 256 seconds)
18:17:00 mikess joins (~sam@user/mikess)
18:17:48 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
18:19:47 × pandry quits (~Pandry@93-41-34-64.ip79.fastwebnet.it) (Ping timeout: 264 seconds)
18:19:47 × euleritian quits (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Read error: Connection reset by peer)
18:20:18 euleritian joins (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de)
18:24:28 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
18:26:12 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 252 seconds)
18:29:21 × chele quits (~chele@user/chele) (Remote host closed the connection)
18:29:34 × shapr quits (~user@2600:1700:c640:3100:898e:add4:bffe:d116) (Remote host closed the connection)
18:29:47 shapr joins (~user@2600:1700:c640:3100:feee:deb2:bc2:5a3c)
18:31:35 Square joins (~Square@user/square)
18:34:39 thegeekinside joins (~thegeekin@189.180.20.15)
18:39:07 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:e149:4c4f:e3f1:4f3e) (Remote host closed the connection)
18:39:52 × xff0x quits (~xff0x@ai096045.d.east.v6connect.net) (Read error: Connection reset by peer)
18:40:27 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
18:40:39 xff0x joins (~xff0x@2405:6580:b080:900:2cef:72cf:22:b0de)
18:43:15 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
18:44:35 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
18:45:42 benjaminl joins (~benjaminl@user/benjaminl)
18:47:24 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
18:50:10 nate4 joins (~nate@c-98-45-158-125.hsd1.ca.comcast.net)
18:51:56 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
18:53:13 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
18:55:24 × nate4 quits (~nate@c-98-45-158-125.hsd1.ca.comcast.net) (Ping timeout: 268 seconds)
18:58:04 × mjrosenb quits (~mjrosenb@pool-96-232-177-77.nycmny.fios.verizon.net) (Ping timeout: 255 seconds)
19:03:53 cstml joins (~cstml@user/cstml)
19:04:43 gdown joins (~gavin@h69-11-149-109.kndrid.broadband.dynamic.tds.net)
19:05:48 × trev quits (~trev@user/trev) (Quit: trev)
19:08:03 eggplantade joins (~Eggplanta@2600:1700:38c5:d800:e149:4c4f:e3f1:4f3e)
19:10:29 tromp joins (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
19:12:06 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
19:13:16 × thegeekinside quits (~thegeekin@189.180.20.15) (Ping timeout: 276 seconds)
19:13:33 thegeekinside joins (~thegeekin@189.141.65.247)
19:14:08 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
19:14:34 mjrosenb joins (~mjrosenb@pool-96-232-177-77.nycmny.fios.verizon.net)
19:27:47 × cstml quits (~cstml@user/cstml) (Ping timeout: 268 seconds)
19:29:48 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
19:31:14 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
19:35:02 <tomsmeding> monochrom: it's supposed to be impressive to people who aren't _quite_ comfortable with the orthodox church of pointfree programming
19:35:06 <tomsmeding> you are not the audience :p
19:36:26 JeremyB99 joins (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864)
19:36:27 × JeremyB99 quits (~JeremyB99@2607:fb90:8de2:4383:bc99:bf60:cd66:a864) (Read error: Connection reset by peer)
19:37:49 <monochrom> Yeah I'm with the presbyterian church of pointfree programming!
19:38:32 × tomboy64 quits (~tomboy64@user/tomboy64) (Read error: Connection reset by peer)
19:38:52 <darkling> Reformed, or Recidivist?
19:46:30 tomboy64 joins (~tomboy64@user/tomboy64)
19:46:41 JeremyB99 joins (~JeremyB99@208.64.173.6)
19:52:16 × tomboy64 quits (~tomboy64@user/tomboy64) (Ping timeout: 276 seconds)
19:52:55 zetef joins (~quassel@2a02:2f00:5201:4b00:7fc8:6fbe:33d9:ba2a)
19:56:13 tomboy64 joins (~tomboy64@user/tomboy64)
19:58:50 × dcoutts quits (~duncan@cpc69402-oxfd27-2-0-cust903.4-3.cable.virginm.net) (Remote host closed the connection)
19:59:12 dcoutts joins (~duncan@82.14.199.136)
20:06:40 notzmv joins (~zmv@user/notzmv)
20:07:49 × dcoutts quits (~duncan@82.14.199.136) (Ping timeout: 255 seconds)
20:10:05 × alp_ quits (~alp@2001:861:e3d6:8f80:59d8:263b:b0f2:606a) (Ping timeout: 240 seconds)
20:10:20 pandry joins (~Pandry@93-44-167-252.ip98.fastwebnet.it)
20:19:04 × pandry quits (~Pandry@93-44-167-252.ip98.fastwebnet.it) (Ping timeout: 255 seconds)
20:20:20 <ski> hm, iirc Conor McBride talks about presbyterian vs. anglican (iirc ?) parameters of type families (and, by analogy, of GADTs, presumably)
20:28:09 × eggplantade quits (~Eggplanta@2600:1700:38c5:d800:e149:4c4f:e3f1:4f3e) (Remote host closed the connection)
20:28:10 <tomsmeding> % :t Control.Monad.ST.runST
20:28:10 <yahb2> Control.Monad.ST.runST :: (forall s. GHC.ST.ST s a) -> a
20:28:42 <tomsmeding> this 'a' is of kind Type and cannot be instantiated to an unlifted type
20:29:04 <tomsmeding> so I cannot execute an ST action that produces an unlifted type, like a ByteArray#, using runST
20:29:15 <tomsmeding> should I just temporarily wrap it in a lifted data type, or what?
20:32:31 × __monty__ quits (~toonn@user/toonn) (Ping timeout: 246 seconds)
20:35:07 <EvanR> levity polymorphism doesn't save you?
20:35:41 <EvanR> or it would if the type signature explicitly used it?
20:36:19 peterbecich joins (~Thunderbi@047-229-123-186.res.spectrum.com)
20:36:25 <tomsmeding> I think the latter
20:36:55 <tomsmeding> this is my first time dabbling in # # # code, so I'm a bit out of my depth :p
20:38:26 <EvanR> wasn't runST the whole reason for adding levity, or was that $
20:38:37 <tomsmeding> iirc that was ($)
20:39:03 <tomsmeding> "($) is fully representation-polymorphic." https://hackage.haskell.org/package/base-4.19.0.0/docs/Prelude.html#v:-36-
20:40:12 <EvanR> time to hack your own version of runST xD
20:40:12 <tomsmeding> side remark: runST being levity polymorphic would be pointless without the ST monad itself being the same :p
20:40:19 <EvanR> oh
20:40:42 <tomsmeding> I mean, the implementation of runST isn't even complicated, it just calls some runRW# function; it isn't even NOINLINE
20:40:52 <tomsmeding> but I already data Wrap (a :: UnliftedType) = Wrap !a
20:40:52 <tomsmeding> :p
20:41:22 <tomsmeding> clumsy though: case unsafeFreezeByteArray# mba s of (# s, ba #) -> (# s, Wrap ba #)
20:41:37 <tomsmeding> er, ST (\s -> case unsafeFreezeByteArray# mba s of (# s, ba #) -> (# s, Wrap ba #))
20:42:22 × JeremyB99 quits (~JeremyB99@208.64.173.6) (Ping timeout: 255 seconds)
20:43:33 <ski> tomsmeding : something like `codenseST :: (forall s o. (a -> ST s o) -> ST s o) -> a' might work, possibly ?
20:44:20 tomsmeding raises the mind a bit higher to read that type
20:44:46 <tomsmeding> oh ok
20:44:47 <EvanR> that type is the codensest
20:45:13 <tomsmeding> ski: because then you juggle things so that you never put 'a' in ST?
20:45:14 <ski> (basically `(forall s. Codensity (ST s) a) -> a')
20:45:19 <ski> yes
20:45:34 <tomsmeding> _maybe_
20:45:46 <tomsmeding> I only have to Wrap a few times though
20:45:56 <tomsmeding> so it's okay
20:46:09 <ski> sounds like such an operation could be useful, at least as a wrapper
20:46:29 <ski> (and if you don't have to allocate a data constructor, all the better)
20:46:35 <tomsmeding> why can ST itself not be levity polymorphic?
20:47:16 <tomsmeding> maybe not allocate a data constructor, but you are allocating more function closures
20:47:35 <tomsmeding> and if you can optimise those away, then there should also be nothing standing in the way of cancelling out the data constructors
20:47:37 <tomsmeding> I'd hope
20:48:22 <EvanR> another reason why DList vs List may not make sense ^
20:48:35 <int-e> :t (>>=)
20:48:36 <lambdabot> Monad m => m a -> (a -> m b) -> m b
20:48:39 <tomsmeding> nah, that's avoiding O(n^2) behaviour :p
20:48:43 <EvanR> because the assumption that data and closures are equally costly
20:48:45 <tomsmeding> that's a real complexity improvement
20:49:14 <tomsmeding> for small lists it may not matter, if if you're appending lots of long things left-associatively, that O(n^2) is going to bite you
20:49:19 <tomsmeding> *but if
20:49:28 <EvanR> (in the specific case of just appending to the end of a dlist instead of prepending to a list and reversing)
20:49:38 <tomsmeding> ah sre
20:49:41 <tomsmeding> *sure
20:50:21 tomsmeding . o O ( newtype Reversed a = Reversed [a] ; runReversed (Reversed l) = reverse l ; instance Monoid (Reversed a) )
20:50:47 __monty__ joins (~toonn@user/toonn)
20:51:24 <tomsmeding> int-e: sorry, I'm not getting your hint :)
20:51:45 <EvanR> Reversed a <> Reversed b = Reversed (b <> a) -- ?xD
20:52:03 <tomsmeding> clearly
20:52:22 <tomsmeding> also inject :: [a] -> Reversed a ; inject l = Reversed (reverse l)
20:52:55 <tomsmeding> oh it's clearly better to have 'newtype Reversed a = Reversed [[a]]'
20:53:04 <tomsmeding> chunks are in forward order, outer list is in reverse order
20:53:09 <tomsmeding> less reversing work at the end
20:53:43 <EvanR> cut to the chase and do JList a = Empty | Leaf a | Join (JList a) (JList a) xD
20:53:55 <EvanR> O(1)
20:54:07 <tomsmeding> O(n)
20:54:12 × peterbecich quits (~Thunderbi@047-229-123-186.res.spectrum.com) (Ping timeout: 256 seconds)
20:54:13 <EvanR> the same cost advertised by DList
20:54:20 <int-e> tomsmeding: AIUI, a can't be levity polymorphic in there because it's the argument of the a -> m b closure. So even if you do it for the ST type (which /probably/ works), you won't get a monad instance for that. I think.
20:54:39 <tomsmeding> ah, right
20:54:56 <tomsmeding> because the type of (>>=) can't be levity polymorphic, otherwise _all_ Monad instances would have to deal with that
20:55:06 <tomsmeding> hence ST is not levity polymorphic either
20:55:10 <tomsmeding> sad
20:55:38 <tomsmeding> EvanR: does dlist advertise O(1) materialisation?
20:55:42 <tomsmeding> that's patently false
20:55:50 <EvanR> "O(1) concat" xD
20:55:56 <tomsmeding> oh for sure
20:56:12 <tomsmeding> you just pay O(n) at the end to materialise the final list
20:56:13 <EvanR> as long as you don't look at the results you're blazing
20:56:16 × iqubic quits (~avi@2601:602:9502:c70:35dc:d74c:2bc9:e283) (Ping timeout: 268 seconds)
20:56:25 <tomsmeding> I mean, the tree of closures you build with DList is essentially your JList :p
20:56:34 <EvanR> that's what it seems like!
20:56:45 <int-e> EvanR: if you don't look at the results you can use `(<>) = undefined`
20:56:47 × __monty__ quits (~toonn@user/toonn) (Ping timeout: 252 seconds)
20:56:54 <EvanR> would that speed it up?
20:57:06 <tomsmeding> the difference being that with the dlist approach, GHC can automatically fuse 'a <> b <> c <> d' because it understands closures
20:57:29 <tomsmeding> it doesn't understand that it can merge multiple Leafs connected by Joins together, that knowledge is contained in your materialisation function
20:57:30 <EvanR> yes but earlier you were hoping it could "just" fuse data too
20:57:55 <tomsmeding> that's about a data type that gets constructed close to where it's matched
20:57:56 <EvanR> if it can't why can't it
20:58:12 <tomsmeding> with your JList you build the stuff locally, and the materialisation may be far away
20:58:16 Inst joins (~Inst@120.244.192.187)
20:58:21 <int-e> EvanR: I don't know, does GHC manage to optimize `undefined a b` to `undefined`? If so, that will reduce the allocations of thunks while you're accumulating the value that you're never going to use.
20:58:25 <tomsmeding> with DList, even if the materialisation is far away, multiple <> close together are still fusible
20:58:43 <tomsmeding> fusable?
20:58:46 <tomsmeding> fuseable?
20:58:53 <Inst> Is trying to reverse engineer wordpress and port its MariaDB MySQL to haskell a viable introduction to web development?
20:59:16 <tomsmeding> if you value neither time nor sanity
20:59:19 <EvanR> for yourself or the general audience
20:59:37 <Inst> tomsmeding: why is this generally untenable?
20:59:45 <EvanR> general audience might revolt
21:00:02 <Inst> myself, at least
21:00:09 <EvanR> go for it
21:00:18 <tomsmeding> because it's a big task, probably no one but you wants to use it in the end (if you survive), and it's not the most effective way to learn what's generally called "web development" :p
21:00:23 <johnw> if I were looking for a small team to build a constraint verifier for a simple lambda calculus based functional language, do people know of anyone in or near academia who'd be interested in such a contract?
21:01:28 <Inst> trying to save my relationship from the CIA (well, not really) by porting someone's wordpress-based high-revenue site to Haskell to save them money.
21:02:47 × kraftwerk28 quits (~kraftwerk@164.92.219.160) (Ping timeout: 256 seconds)
21:04:03 <Inst> and yes, this is intended to be comic
21:04:29 eggplantade joins (~Eggplanta@2600:1700:38c5:d800:e149:4c4f:e3f1:4f3e)
21:05:32 × hc quits (~hc@mail.hce.li) (Remote host closed the connection)
21:06:40 × tomboy64 quits (~tomboy64@user/tomboy64) (Ping timeout: 255 seconds)
21:06:56 hc joins (~hc@mail.hce.li)
21:07:29 × pretty_dumm_guy quits (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) (Quit: WeeChat 3.5)
21:08:09 pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655)
21:08:55 × qqq quits (~qqq@92.43.167.61) (Ping timeout: 255 seconds)
21:10:59 qqq joins (~qqq@92.43.167.61)
21:12:10 × notzmv quits (~zmv@user/notzmv) (Ping timeout: 255 seconds)
21:12:56 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
21:16:25 <EvanR> sans
21:17:15 × thegeekinside quits (~thegeekin@189.141.65.247) (Ping timeout: 252 seconds)
21:19:07 tomboy64 joins (~tomboy64@user/tomboy64)
21:20:40 × Square quits (~Square@user/square) (Ping timeout: 276 seconds)
21:32:12 × mobivme quits (~mobivme@112.201.111.217) (Remote host closed the connection)
21:33:41 mobivme joins (~mobivme@112.201.111.217)
21:36:06 × fendor quits (~fendor@2a02:8388:1605:d100:267b:1353:13d7:4f0c) (Remote host closed the connection)
21:37:36 × zetef quits (~quassel@2a02:2f00:5201:4b00:7fc8:6fbe:33d9:ba2a) (Remote host closed the connection)
21:39:52 × takuan quits (~takuan@178-116-218-225.access.telenet.be) (Remote host closed the connection)
21:45:50 chomwitt joins (~chomwitt@2a02:587:7a09:c300:1ac0:4dff:fedb:a3f1)
21:47:22 mjs2600 joins (~mjs2600@c-174-169-225-239.hsd1.vt.comcast.net)
21:55:48 alp_ joins (~alp@2001:861:e3d6:8f80:35c2:e097:c95:5680)
21:56:40 × _ht quits (~Thunderbi@28-52-174-82.ftth.glasoperator.nl) (Remote host closed the connection)
21:58:36 kraftwerk28 joins (~kraftwerk@164.92.219.160)
21:58:40 JeremyB99 joins (~JeremyB99@2607:fb91:17ea:fe4:458d:4dfa:7aa1:135b)
22:06:15 × shapr quits (~user@2600:1700:c640:3100:feee:deb2:bc2:5a3c) (Remote host closed the connection)
22:06:28 shapr joins (~user@2600:1700:c640:3100:fae0:3c5e:6b1c:b298)
22:07:16 × JeremyB99 quits (~JeremyB99@2607:fb91:17ea:fe4:458d:4dfa:7aa1:135b) (Read error: Connection reset by peer)
22:12:29 JeremyB99 joins (~JeremyB99@2607:fb91:17ea:fe4:458d:4dfa:7aa1:135b)
22:13:22 seydar joins (~seydar@38-73-249-43.starry-inc.net)
22:13:42 zetef joins (~quassel@2a02:2f00:5201:4b00:7fc8:6fbe:33d9:ba2a)
22:13:53 <seydar> I am doing AOC #1 and I am unable to not think imperatively
22:13:55 × JeremyB99 quits (~JeremyB99@2607:fb91:17ea:fe4:458d:4dfa:7aa1:135b) (Read error: Connection reset by peer)
22:14:48 <seydar> i'm out here trying to find the first occurrence of a substring, but this is not The Way
22:15:01 <seydar> how do i fix my brain
22:15:17 <seydar> and/or i am open to any advice people have
22:15:39 <c_wraith> Try to decompose the problem into different steps
22:15:46 <monochrom> Data.List has isInfixOf and related functions for finding substrings.
22:15:49 dcoutts joins (~duncan@cpc69402-oxfd27-2-0-cust903.4-3.cable.virginm.net)
22:15:51 <c_wraith> Instead of finding the first substring, find all the substrings
22:15:59 notzmv joins (~zmv@user/notzmv)
22:16:00 <c_wraith> then grab the first one of them.
22:16:52 <glguy> seydar: Why do you think that "find the first occurrence of a substring" is not the way?
22:18:26 <seydar> glguy: because i was googling for finding the index of a substring and some random comment said "stop thinking imperatively, there's a reason this isn't included on strings"
22:19:07 <seydar> c_wraith: that definitely feels more haskelly
22:19:23 <glguy> I wouldn't put too much stock in any one comment you read on the internet. The main thing there was not to think about indexes because indexing a haskell list isn't efficient
22:19:27 <monochrom> Perhaps the comment means stop wanting indexes.
22:19:33 <glguy> next to nothing to do with imperative or not
22:19:44 <glguy> returning the thing directly, instead of an index, is the main insight
22:20:50 <monochrom> What would you do with the index anyway? Dereference it to get the substring? Now there is a fusion opportunity. (In your mental model, not in the computer.)
22:20:56 × notzmv quits (~zmv@user/notzmv) (Ping timeout: 252 seconds)
22:22:17 <EvanR> finding a subtract matching some criteria is pretty declarative
22:22:30 <EvanR> except for the verb
22:22:34 <EvanR> ignore that
22:22:35 <monochrom> :)
22:22:42 <EvanR> er substring
22:22:45 JeremyB99 joins (~JeremyB99@2607:fb91:17ea:fe4:458d:4dfa:7aa1:135b)
22:22:48 <monochrom> Yeah no worries, I think we get it.
22:23:34 <monochrom> <troll>If I cancel a contract, that's a subtract.</troll>
22:23:50 × JeremyB99 quits (~JeremyB99@2607:fb91:17ea:fe4:458d:4dfa:7aa1:135b) (Read error: Connection reset by peer)
22:27:37 <EvanR> I write a day 1 solution in elixir, ran the elixir program on it, it works great, and then I was told that I in fact solved day 1 entirely at compile time
22:28:06 <EvanR> so now I think ruby, which is what elixir was trying to feel like, does everything at compile time xD
22:28:28 <EvanR> and or don't know the difference anymore
22:28:55 thegeekinside joins (~thegeekin@189.141.65.247)
22:29:21 <monochrom> Ruby evaluates terms at compile time, Hugs checks types at run time. This is a fun Friday. :D
22:31:06 peterbecich joins (~Thunderbi@047-229-123-186.res.spectrum.com)
22:31:45 ChanServ sets topic to "https://www.reddit.com/r/haskell | Admin: #haskell-ops | Offtopic: #haskell-offtopic | https://downloads.haskell.org | https://play.haskell.org/ | Paste code/errors: https://paste.tomsmeding.com | Logs: https://ircbrowse.tomsmeding.com/browse/lchaskell | AoC 43100-84040706"
22:32:36 JeremyB99 joins (~JeremyB99@2607:fb91:17ea:fe4:458d:4dfa:7aa1:135b)
22:32:41 <glguy> I cleared out a little bit of headroom from people who weren't active this or last year. If you're using Haskell as your main language, feel free to join the AoC leaderboard in the topic
22:35:09 × nckx quits (~nckx@libera/staff/owl/nckx) (Ping timeout: 256 seconds)
22:35:51 <sshine> how do you make AoC interesting this year?
22:36:01 <sshine> I did some of AoC 2022 in Rust last year.
22:37:35 × JeremyB99 quits (~JeremyB99@2607:fb91:17ea:fe4:458d:4dfa:7aa1:135b) (Read error: Connection reset by peer)
22:37:53 nckx joins (~nckx@libera/staff/owl/nckx)
22:38:40 × Inst quits (~Inst@120.244.192.187) (Ping timeout: 276 seconds)
22:40:53 <glguy> The main two things I get from it are the fun of racing for some leaderboard points and then from cleaning things up so that people reading them might learn something about Haskell they didn't know when we're sharing code
22:41:22 <seydar> glguy: do you post your stuff on the hub of the git
22:41:35 <EvanR> sshine, solve it in a bespoke programming language, esoteric or optimized for aoc
22:41:40 <glguy> yeah. traffic was up on the repo before the night even started
22:41:53 × mjs2600 quits (~mjs2600@c-174-169-225-239.hsd1.vt.comcast.net) (Quit: ZNC 1.8.2 - https://znc.in)
22:42:01 <glguy> sometimes I'll go and add solutions to my C++ or rust repo if I think there's a fun library or language feature to explore with them
22:42:07 <glguy> but I do the Haskell one first for completeness
22:42:28 <glguy> seydar: I put mine on https://github.com/glguy/advent
22:45:06 × peterbecich quits (~Thunderbi@047-229-123-186.res.spectrum.com) (Ping timeout: 260 seconds)
22:45:50 × target_i quits (~target_i@217.175.14.39) (Quit: leaving)
22:51:41 nate4 joins (~nate@c-98-45-158-125.hsd1.ca.comcast.net)
22:52:59 cstml joins (~cstml@user/cstml)
22:53:59 JeremyB99 joins (~JeremyB99@2607:fb91:17ea:fe4:458d:4dfa:7aa1:135b)
22:57:08 × nate4 quits (~nate@c-98-45-158-125.hsd1.ca.comcast.net) (Ping timeout: 268 seconds)
23:00:00 mjs2600 joins (~mjs2600@c-174-169-225-239.hsd1.vt.comcast.net)
23:00:31 × coot quits (~coot@89-69-206-216.dynamic.chello.pl) (Quit: coot)
23:00:46 × alp_ quits (~alp@2001:861:e3d6:8f80:35c2:e097:c95:5680) (Ping timeout: 276 seconds)
23:02:50 × tromp quits (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
23:03:57 Inst joins (~Inst@120.244.192.187)
23:06:06 × not_reserved quits (~not_reser@185.205.247.233) (Quit: Client closed)
23:07:30 iqubic joins (~avi@2601:602:9502:c70:f5b9:3022:a2d7:d3ca)
23:08:49 × seydar quits (~seydar@38-73-249-43.starry-inc.net) (Quit: leaving)
23:11:32 × gmg quits (~user@user/gehmehgeh) (Quit: Leaving)
23:12:06 wroathe joins (~wroathe@50.205.197.50)
23:12:06 × wroathe quits (~wroathe@50.205.197.50) (Changing host)
23:12:06 wroathe joins (~wroathe@user/wroathe)
23:13:12 <wroathe> Hey guys, have any of you had any success getting useful statistics out of massif with a Haskell program?
23:13:45 <wroathe> It seems to just only catch the initial RTS allocation on the main thread and only recognize that for the rest of the program
23:13:58 <wroathe> threaded or no
23:14:01 × szkl quits (uid110435@id-110435.uxbridge.irccloud.com) (Quit: Connection closed for inactivity)
23:15:38 × JeremyB99 quits (~JeremyB99@2607:fb91:17ea:fe4:458d:4dfa:7aa1:135b) (Ping timeout: 268 seconds)
23:16:57 JeremyB99 joins (~JeremyB99@2600:1702:21b0:a500:b427:1e7a:fffe:f069)
23:17:05 × JeremyB99 quits (~JeremyB99@2600:1702:21b0:a500:b427:1e7a:fffe:f069) (Read error: Connection reset by peer)
23:19:37 × nckx quits (~nckx@libera/staff/owl/nckx) (Ping timeout: 276 seconds)
23:19:39 <wroathe> The situation is that I've got a program that attempts to read N directories full of 4 text files in parallel and each async task processing a directory iterates through the characters of the file and attempts to make some corrections to the contents that it builds up in a ByteString Builder, and then I use the `writeFile` function to try and write the new contents back to the original file. Every time I
23:19:45 <wroathe> add a new file it seems to increase the total lifetime allocations of my program by like 3GB according to the GHC profiler, but what I really want is to understand how the resident heap size changes over time, and what the peak is
23:20:03 <wroathe> The text files themselves range from like 2kb to 40MB, so an increase to 3GB of allocations is insane
23:22:22 seydar joins (~seydar@38-73-249-43.starry-inc.net)
23:22:44 <seydar> I am so close: `liftM read $ sequence [Just '1', Just '2'] :: Maybe Int`
23:23:11 <seydar> oh wait that worked?
23:23:19 <seydar> i've been duped by my own lying eyes
23:23:26 <EvanR> > liftM read $ sequence [Just '1', Just '2'] :: Maybe Int
23:23:27 <lambdabot> Just 12
23:23:51 <EvanR> didn't think of that xD
23:24:06 <EvanR> also
23:24:15 <EvanR> > read <$> sequence [Just '1', Just '2'] :: Maybe Int
23:24:17 <lambdabot> Just 12
23:24:52 <seydar> I couldn't figure out how to use <$> so instead of googling i chose to cry
23:25:11 <ski> > readMaybe =<< sequence [Just '1',Just '2'] :: Maybe Int
23:25:12 <lambdabot> Just 12
23:25:33 <ski> (better to not use `read', unless you're sure there'll be no parse error)
23:26:13 <ski> (and if you're reading many things in succession, you could try using `reads')
23:26:56 <monochrom> <$> is infix notation for fmap. Do you know how to use fmap?
23:27:14 <seydar> monochrom: last year i did, but it's drifting from memory
23:27:21 <EvanR> liftM = fmap, basically
23:27:24 JeremyB99 joins (~JeremyB99@2600:1702:21b0:a500:b427:1e7a:fffe:f069)
23:27:24 <ski> > replicateM 4 (StateT (reads :: ReadS Int)) `runStateT` "0 12 345 6789"
23:27:26 <lambdabot> [([0,12,345,6789],"")]
23:27:29 <ski> > many (StateT (reads :: ReadS Int)) `runStateT` "0 12 345 6789"
23:27:30 <lambdabot> [([0,12,345,6789],""),([0,12,345]," 6789"),([0,12]," 345 6789"),([0]," 12 34...
23:27:31 × JeremyB99 quits (~JeremyB99@2600:1702:21b0:a500:b427:1e7a:fffe:f069) (Read error: Connection reset by peer)
23:28:09 <EvanR> if you like many ways to do it, liftM = fmap = <$>. If you like there's only one way to do it, there's fmap
23:28:24 <ski> (then you could, at top-level, filter away solutions that doesn't have empty rest string)
23:28:26 × shapr quits (~user@2600:1700:c640:3100:fae0:3c5e:6b1c:b298) (Remote host closed the connection)
23:28:40 shapr joins (~user@2600:1700:c640:3100:d14f:9e1a:e23d:bb91)
23:29:28 <seydar> thanks!
23:29:34 × seydar quits (~seydar@38-73-249-43.starry-inc.net) (Quit: leaving)
23:29:58 <ski> (you can also use list comprehensions, instead of `fmap'/`liftM'/`(<$>)', or `(=<<)'/`concatMap')
23:31:57 [itchyjunk] joins (~itchyjunk@user/itchyjunk/x-7353470)
23:35:47 × idgaen quits (~idgaen@2a01:e0a:498:fd50:fcc6:bb5d:489a:ce8c) (Quit: WeeChat 4.1.1)
23:37:55 × acidjnk quits (~acidjnk@p200300d6e72b9330102e9afa1ce5f091.dip0.t-ipconnect.de) (Ping timeout: 256 seconds)
23:44:21 peterbecich joins (~Thunderbi@047-229-123-186.res.spectrum.com)
23:51:26 × caryhartline quits (~caryhartl@168.182.58.169) (Quit: caryhartline)
23:51:35 × peterbecich quits (~Thunderbi@047-229-123-186.res.spectrum.com) (Ping timeout: 264 seconds)
23:51:47 nckx joins (~nckx@libera/staff/owl/nckx)
23:52:07 <wroathe> cabal install eventlog2html... 2 hours later
23:54:35 × cstml quits (~cstml@user/cstml) (Ping timeout: 264 seconds)
23:55:09 <wroathe> I could kiss mpickering. Finally a heap visualizer that doesn't suck
23:59:28 × wroathe quits (~wroathe@user/wroathe) (Ping timeout: 255 seconds)

All times are in UTC on 2023-12-01.