2025/09/28

Newest at the top

2025-09-28 04:32:33 +0200talismanick(~user@2601:644:937c:ed10::c8dc) (Read error: Connection reset by peer)
2025-09-28 04:32:22 +0200 <slondr> Hmm, can I reference IORefs in a non-IO function?
2025-09-28 04:30:54 +0200trickard_(~trickard@cpe-50-98-47-163.wireline.com.au)
2025-09-28 04:29:44 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 240 seconds)
2025-09-28 04:28:14 +0200trickard(~trickard@cpe-50-98-47-163.wireline.com.au) (Read error: Connection reset by peer)
2025-09-28 04:27:41 +0200 <Leary> slondr: Close over a simple `IORef` instead? E.g. pass in a partially applied `mkCallBack :: IORef YourState -> CallBackType`.
2025-09-28 04:24:55 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-09-28 04:21:21 +0200remmie(ianremsen@tilde.team) remsense
2025-09-28 04:18:02 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 244 seconds)
2025-09-28 04:16:00 +0200 <slondr> My first thought was to use forkIO to spawn a separate thread for maintaining state in a simple call/response recursive function, then build my callback function as a closure over a channel to this thread. But that seems like it might be overkill
2025-09-28 04:14:52 +0200 <slondr> as in, I'm passing a callback function to a library, but I want my callback function to accumulate some context each time it's called
2025-09-28 04:14:50 +0200remmie(ianremsen@tilde.team) (Ping timeout: 248 seconds)
2025-09-28 04:14:23 +0200 <slondr> What's the best way to maintain/mutate state across calls of a function where I can't modify the function signature?
2025-09-28 04:13:15 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-09-28 04:10:16 +0200banner(~banner@1.41.210.25)
2025-09-28 04:07:13 +0200trickard_trickard
2025-09-28 04:05:33 +0200op_4(~tslil@user/op-4/x-9116473) op_4
2025-09-28 04:05:04 +0200op_4(~tslil@user/op-4/x-9116473) (Remote host closed the connection)
2025-09-28 04:02:25 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2025-09-28 03:57:27 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-09-28 03:56:16 +0200vanishingideal(~vanishing@user/vanishingideal) vanishingideal
2025-09-28 03:51:04 +0200Tuplanolla(~Tuplanoll@91-159-187-167.elisa-laajakaista.fi) (Ping timeout: 255 seconds)
2025-09-28 03:50:11 +0200comonad(~comonad@p200300d02709a80002b1d060aa1cc9d9.dip0.t-ipconnect.de)
2025-09-28 03:50:05 +0200talismanick(~user@2601:644:937c:ed10::c8dc) talismanick
2025-09-28 03:48:27 +0200comonad(~comonad@p200300d027244d00b442e34853d3dae3.dip0.t-ipconnect.de) (Ping timeout: 250 seconds)
2025-09-28 03:46:31 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 240 seconds)
2025-09-28 03:42:58 +0200talismanick(~user@2601:644:937c:ed10::c8dc) (Read error: Connection reset by peer)
2025-09-28 03:42:42 +0200arandombit(~arandombi@user/arandombit) arandombit
2025-09-28 03:41:39 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-09-28 03:35:41 +0200weary-traveler(~user@user/user363627) user363627
2025-09-28 03:30:53 +0200talismanick(~user@2601:644:937c:ed10::c8dc) talismanick
2025-09-28 03:28:00 +0200trickard_(~trickard@cpe-50-98-47-163.wireline.com.au)
2025-09-28 03:27:44 +0200trickard(~trickard@cpe-50-98-47-163.wireline.com.au) (Read error: Connection reset by peer)
2025-09-28 03:27:24 +0200arandombit(~arandombi@user/arandombit) (Ping timeout: 244 seconds)
2025-09-28 03:23:44 +0200emmanuelux(~emmanuelu@user/emmanuelux) (Ping timeout: 240 seconds)
2025-09-28 03:17:10 +0200trickard_trickard
2025-09-28 03:13:11 +0200Sgeo(~Sgeo@user/sgeo) Sgeo
2025-09-28 03:04:38 +0200L29Ah(~L29Ah@wikipedia/L29Ah) L29Ah
2025-09-28 02:55:13 +0200Inline(~Inline@ip-005-146-196-132.um05.pools.vodafone-ip.de) (Ping timeout: 264 seconds)
2025-09-28 02:53:11 +0200yegor(yegor@user/yegor) yegor
2025-09-28 02:52:51 +0200yegor(~yegor@user/yegor) (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in)
2025-09-28 02:50:50 +0200arandombit(~arandombi@user/arandombit) arandombit
2025-09-28 02:50:50 +0200arandombit(~arandombi@2603:7000:4600:ffbe:3141:a154:f561:75d0) (Changing host)
2025-09-28 02:50:50 +0200arandombit(~arandombi@2603:7000:4600:ffbe:3141:a154:f561:75d0)
2025-09-28 02:46:23 +0200tromp(~textual@2001:1c00:3487:1b00:dc31:7384:48d7:f4e1) (Client Quit)
2025-09-28 02:44:25 +0200trickard_(~trickard@cpe-50-98-47-163.wireline.com.au)
2025-09-28 02:44:12 +0200trickard_(~trickard@cpe-50-98-47-163.wireline.com.au) (Read error: Connection reset by peer)
2025-09-28 02:43:08 +0200tromp(~textual@2001:1c00:3487:1b00:dc31:7384:48d7:f4e1)
2025-09-28 02:35:42 +0200Googulator48(~Googulato@2a01-036d-0106-03fa-f110-0864-c42c-107f.pool6.digikabel.hu) (Quit: Client closed)
2025-09-28 02:35:40 +0200Googulator17(~Googulato@2a01-036d-0106-03fa-f110-0864-c42c-107f.pool6.digikabel.hu)