2026/06/11

Newest at the top

2026-06-11 11:36:13 +0000gmg(~user@user/gehmehgeh) (Remote host closed the connection)
2026-06-11 11:31:50 +0000ridcully(~ridcully@p57b52230.dip0.t-ipconnect.de) (Ping timeout: 245 seconds)
2026-06-11 11:28:40 +0000Lord_of_Life(~Lord@user/lord-of-life/x-2819915) (Ping timeout: 276 seconds)
2026-06-11 11:28:21 +0000trampi(~trampi@mx.trampusch.info) (Quit: The Lounge - https://thelounge.chat)
2026-06-11 11:26:25 +0000rainbyte(~rainbyte@181.47.219.31) rainbyte
2026-06-11 11:26:10 +0000haritz(~hrtz@user/haritz) haritz
2026-06-11 11:26:10 +0000haritz(~hrtz@2a01:4b00:bc2e:7000:d5af:a266:ca31:5ef8) (Changing host)
2026-06-11 11:26:09 +0000haritz(~hrtz@2a01:4b00:bc2e:7000:d5af:a266:ca31:5ef8)
2026-06-11 11:25:41 +0000rainbyte(~rainbyte@181.47.219.31) (Read error: Connection reset by peer)
2026-06-11 11:21:04 +0000xff0x(~xff0x@2405:6580:b080:900:20a8:16d4:622c:805f)
2026-06-11 11:17:45 +0000Axman2447(~Axman6@user/axman6) (Ping timeout: 240 seconds)
2026-06-11 11:17:31 +0000Axman6(~Axman6@user/axman6) Axman6
2026-06-11 11:12:52 +0000 <merijn> Sure, but not ideal because if you do that in, e.g. a library you get into trouble of 2 libraries use the same library using that trick
2026-06-11 11:12:02 +0000 <int-e> also tbf, the unsafePerformIO for creating a global variable is fairly well understood
2026-06-11 11:12:01 +0000nyc(~nyc@user/nyc) nyc
2026-06-11 11:11:40 +0000nyc(~nyc@user/nyc) (Read error: Connection reset by peer)
2026-06-11 11:10:02 +0000 <int-e> but the myForkIO part is salvageable
2026-06-11 11:09:27 +0000 <int-e> yeah I'm not thrilled about that part either :)
2026-06-11 11:09:04 +0000 <Leary> And the "better method" is to use `unsafePerformIO`; lovely.
2026-06-11 11:06:34 +0000 <int-e> The Control.Concurrent actually has example code for waiting on threads with MVars: https://hackage-content.haskell.org/package/base-4.22.0.0/docs/Control-Concurrent.html#g:12
2026-06-11 11:06:17 +0000dtman34(~dtman34@2601:447:d17d:eaf2:8123:c1ff:6dae:d26b) (Ping timeout: 248 seconds)
2026-06-11 11:06:10 +0000dtman34_(~dtman34@2601:447:d17d:eaf2:8123:c1ff:6dae:d26b) dtman34
2026-06-11 11:04:03 +0000 <int-e> IO [IO ThreadId] <-- this is almost certainly the wrong type; if you collect the thread ids of threads that have been created you should end up with IO [ThreadId]
2026-06-11 11:01:57 +0000 <Leary> bwe: `forkIO` doesn't give you anything to wait on; you'd need to manually hook that up with, say, `MVar`s. I suggest using 'ki' for concurrency, which offers `awaitAll` out of the box.
2026-06-11 10:59:53 +0000dtman34(~dtman34@2601:447:d17d:eaf2:8123:c1ff:6dae:d26b) dtman34
2026-06-11 10:58:49 +0000dtman34(~dtman34@2601:447:d17d:eaf2:8123:c1ff:6dae:d26b) (Ping timeout: 248 seconds)
2026-06-11 10:56:33 +0000 <bwe> I am using Control.Concurrent.forkIO in `f` to create a `IO [IO ThreadId]`. Running `f` does return instantly without appearingly the constructed threads to be executed. How can I let the threads execute and `f` wait until all threads are finished?
2026-06-11 10:52:56 +0000poscat(~poscat@user/poscat) poscat
2026-06-11 10:50:55 +0000chromoblob(~chromoblo@user/chromob1ot1c) chromoblob\0
2026-06-11 10:50:35 +0000chromoblob(~chromoblo@user/chromob1ot1c) (Read error: Connection reset by peer)
2026-06-11 10:50:33 +0000dtman34(~dtman34@2601:447:d17d:eaf2:8123:c1ff:6dae:d26b) dtman34
2026-06-11 10:49:58 +0000poscat(~poscat@user/poscat) (Remote host closed the connection)
2026-06-11 10:49:40 +0000dtman34_(~dtman34@c-73-242-68-179.hsd1.mn.comcast.net) (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in)
2026-06-11 10:47:11 +0000nyc(~nyc@user/nyc) nyc
2026-06-11 10:46:51 +0000nyc(~nyc@user/nyc) (Ping timeout: 244 seconds)
2026-06-11 10:41:31 +0000luciano_(~machining@2804:290c:228:3800:c0cb:ce8d:e0c4:9d5a)
2026-06-11 10:41:05 +0000luciano_(~machining@user/luciano-:23135) (Remote host closed the connection)
2026-06-11 10:40:12 +0000weary-traveler(~user@user/user363627) user363627
2026-06-11 10:38:39 +0000nyc(~nyc@user/nyc) nyc
2026-06-11 10:38:19 +0000nyc(~nyc@user/nyc) (Read error: Connection reset by peer)
2026-06-11 10:37:15 +0000FANTOM(~fantom@90.244.189.139)
2026-06-11 10:35:25 +0000terrorjack(~terrorjac@2a01:4f8:271:2d98::2) terrorjack
2026-06-11 10:31:42 +0000terrorjack(~terrorjac@2a01:4f8:271:2d98::2) (Quit: The Lounge - https://thelounge.chat)
2026-06-11 10:31:10 +0000FANTOM(~fantom@90.244.189.139) (Ping timeout: 265 seconds)
2026-06-11 10:26:02 +0000CiaoSen(~Jura@2a02:3030:e4:e9c9:4e50:ddff:fe9b:8922) CiaoSen
2026-06-11 10:25:47 +0000chromoblob(~chromoblo@user/chromob1ot1c) chromoblob\0
2026-06-11 10:25:37 +0000chromoblob(~chromoblo@user/chromob1ot1c) (Ping timeout: 252 seconds)
2026-06-11 10:25:14 +0000FANTOM(~fantom@90.244.189.139)
2026-06-11 10:24:48 +0000jreicher(~joelr@user/jreicher) jreicher
2026-06-11 10:22:57 +0000FANTOM(~fantom@90.244.189.139) (Ping timeout: 265 seconds)