2026/06/19

Newest at the top

2026-06-19 20:30:59 +0000jayanth(~jayanth@static-98-115-128-109.phlapa.fios.verizon.net)
2026-06-19 20:29:30 +0000nyc(~nyc@user/nyc) nyc
2026-06-19 20:29:09 +0000nyc(~nyc@user/nyc) (Ping timeout: 252 seconds)
2026-06-19 20:29:09 +0000merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 252 seconds)
2026-06-19 20:24:09 +0000merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-06-19 20:13:53 +0000traxex(traxex@user/traxex) (Ping timeout: 252 seconds)
2026-06-19 20:13:49 +0000merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 276 seconds)
2026-06-19 20:11:49 +0000ouilemur(~jgmerritt@user/ouilemur) ouilemur
2026-06-19 20:08:06 +0000merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-06-19 19:59:52 +0000nyc(~nyc@user/nyc) nyc
2026-06-19 19:59:19 +0000ouilemur(~jgmerritt@user/ouilemur) (Quit: WeeChat 4.9.0)
2026-06-19 19:57:34 +0000merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 276 seconds)
2026-06-19 19:55:34 +0000 <vms14> i will just use console log, but i wanted to know why anyways
2026-06-19 19:55:22 +0000 <vms14> that would be better
2026-06-19 19:55:18 +0000 <EvanR> if that's really the issue
2026-06-19 19:55:13 +0000 <EvanR> you can manually flush whenever with hFlush
2026-06-19 19:54:51 +0000 <vms14> During delayed asynchronous execution (like an event listener), the Haskell thread wakes up, writes the text to the internal buffer, and then goes back to sleep without flushing it. The data is sitting in memory, waiting to be flushed, which is why it appeared completely dead
2026-06-19 19:54:45 +0000emilym(~Thunderbi@user/emilym) (Ping timeout: 245 seconds)
2026-06-19 19:54:30 +0000 <vms14> although makes it also print every char with a newline
2026-06-19 19:54:16 +0000 <vms14> hSetBuffering stdout NoBuffering this fixes it
2026-06-19 19:53:57 +0000 <vms14> ok i told that to google ai and it told me is because of buffering
2026-06-19 19:52:19 +0000merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-06-19 19:50:42 +0000emilym(~Thunderbi@user/emilym) emilym
2026-06-19 19:48:47 +0000 <EvanR> gotta be vigilant in bizarre unfamiliar programming environments
2026-06-19 19:47:09 +0000notzmv(~umar@user/notzmv) notzmv
2026-06-19 19:46:26 +0000vanishingideal(~vanishing@user/vanishingideal) (Ping timeout: 248 seconds)
2026-06-19 19:40:34 +0000merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds)
2026-06-19 19:36:13 +0000erbium(~erbium@user/erbium) erbium
2026-06-19 19:35:50 +0000merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-06-19 19:33:21 +0000 <vms14> but now nothing can stop me
2026-06-19 19:32:57 +0000 <vms14> weird, but does not matter, it just made me think it wasn't working and made me loose a lot of time
2026-06-19 19:32:30 +0000 <vms14> but if i use print or putStrLn it alsoprints on console, same with callbacks, but if there is a delay to call the callback like async or an event, it fails to print
2026-06-19 19:31:59 +0000 <vms14> yeah i was trying just that jaror and it works
2026-06-19 19:30:51 +0000 <EvanR> to print to the js console there might be another api call for that
2026-06-19 19:30:47 +0000 <jaror> I guess you have to do a foreign call from Haskell to `console.log` in javascript
2026-06-19 19:29:30 +0000 <vms14> but it ignores putStrLn or prints to somewhere else than the console, which is weird. if i call the callback from the ffi binding that receives it, it will print stuff
2026-06-19 19:28:46 +0000 <vms14> if i create elements and append them to the body in the callbacks they work
2026-06-19 19:28:35 +0000 <vms14> ok seems to work, just not print
2026-06-19 19:24:57 +0000merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 246 seconds)
2026-06-19 19:20:00 +0000merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-06-19 19:19:07 +0000hakutaku(~textual@user/hakutaku) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2026-06-19 19:13:31 +0000Enigmagic(~Enigmagic@user/Enigmagic) Enigmagic
2026-06-19 19:13:22 +0000Enigmagic(~Enigmagic@user/Enigmagic) (Read error: Connection reset by peer)
2026-06-19 19:09:19 +0000merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-06-19 19:08:52 +0000hakutaku(~textual@user/hakutaku) hakutaku
2026-06-19 19:06:52 +0000Googulator(~Googulato@212-40-94-63.pool.digikabel.hu) (Ping timeout: 245 seconds)
2026-06-19 19:05:42 +0000 <EvanR> maybe there is a special calling form for that
2026-06-19 19:03:34 +0000 <vms14> if the ffi binding is async it won't work either
2026-06-19 19:03:07 +0000Googulator27(~Googulato@212-40-94-63.pool.digikabel.hu)
2026-06-19 19:02:13 +0000 <vms14> with the js backend