2024/09/23

Newest at the top

2024-09-23 21:17:44 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 260 seconds)
2024-09-23 21:17:30 +0200ChanServ+v haskellbridge
2024-09-23 21:17:30 +0200haskellbridge(~hackager@syn-024-093-192-219.res.spectrum.com) hackager
2024-09-23 21:16:35 +0200haskellbridge(~hackager@syn-024-093-192-219.res.spectrum.com) (Remote host closed the connection)
2024-09-23 21:16:30 +0200euleritian(~euleritia@dynamic-176-002-006-097.176.2.pool.telefonica.de) (Read error: Connection reset by peer)
2024-09-23 21:12:21 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) merijn
2024-09-23 21:09:21 +0200target_i(~target_i@user/target-i/x-6023099) target_i
2024-09-23 21:06:09 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds)
2024-09-23 21:04:53 +0200jle`(~jle`@2603:8001:3b02:84d4:4e01:3d77:727d:559b) jle`
2024-09-23 21:02:35 +0200adanwan(~adanwan@gateway/tor-sasl/adanwan) adanwan
2024-09-23 21:01:08 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) merijn
2024-09-23 21:00:38 +0200caconym(~caconym@user/caconym) caconym
2024-09-23 21:00:01 +0200caconym(~caconym@user/caconym) (Quit: bye)
2024-09-23 20:58:47 +0200JuanDaugherty(~juan@user/JuanDaugherty) (Quit: JuanDaugherty)
2024-09-23 20:53:27 +0200ash3en(~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) (Quit: ash3en)
2024-09-23 20:50:24 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds)
2024-09-23 20:48:55 +0200weary-traveler(~user@user/user363627) (Remote host closed the connection)
2024-09-23 20:45:20 +0200merijn(~merijn@204-220-045-062.dynamic.caiway.nl) merijn
2024-09-23 20:37:41 +0200justsomeguy(~justsomeg@user/justsomeguy) (Ping timeout: 248 seconds)
2024-09-23 20:29:14 +0200sabino(~sabino@user/sabino) (Quit: Lambda _ -> x)
2024-09-23 20:27:46 +0200jinsun(~jinsun@user/jinsun) jinsun
2024-09-23 20:24:58 +0200athan(~athan@syn-098-153-145-140.biz.spectrum.com) athan
2024-09-23 20:24:24 +0200justsomeguy(~justsomeg@user/justsomeguy) justsomeguy
2024-09-23 20:18:41 +0200justsomeguy(~justsomeg@user/justsomeguy) (Read error: Connection reset by peer)
2024-09-23 20:18:19 +0200ash3en(~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) ash3en
2024-09-23 20:18:10 +0200lucy(~lucy@user/lucy) lucy
2024-09-23 20:16:59 +0200aforemny(~aforemny@2001:9e8:6cf3:8b00:cb2b:3044:3ef3:939f) aforemny
2024-09-23 20:16:58 +0200misterfish(~misterfis@84.53.85.146) misterfish
2024-09-23 20:16:17 +0200lucy(~lucy@user/lucy) (Ping timeout: 248 seconds)
2024-09-23 20:16:06 +0200justsomeguy(~justsomeg@user/justsomeguy) justsomeguy
2024-09-23 20:16:04 +0200aforemny_(~aforemny@2001:9e8:6ced:3000:cd4e:2ae2:6fde:9c58) (Ping timeout: 260 seconds)
2024-09-23 20:14:49 +0200pavonia(~user@user/siracusa) (Quit: Bye!)
2024-09-23 20:11:43 +0200Kaya-Sem(~Kaya-Sem@231.33-245-81.adsl-dyn.isp.belgacom.be) ()
2024-09-23 20:08:32 +0200Kaya-Sem(~Kaya-Sem@231.33-245-81.adsl-dyn.isp.belgacom.be)
2024-09-23 20:03:54 +0200athan(~athan@2600:382:2d0c:946e:ee6b:c0a7:dbf9:e4ec) (Ping timeout: 246 seconds)
2024-09-23 20:02:39 +0200morb(~morb@pool-108-41-100-120.nycmny.fios.verizon.net) (Ping timeout: 260 seconds)
2024-09-23 19:58:03 +0200morb(~morb@pool-108-41-100-120.nycmny.fios.verizon.net)
2024-09-23 19:54:40 +0200 <probie> (9## `minusWord#` ((71## `minusWord#` ctz64# (a `xor64#` b)) `uncheckedShiftRL#` 3#)) `remWord#` 9## -- but now it contains rem, I'm not sure it's worth it
2024-09-23 19:54:28 +0200sdrfan123(~sdrfan123@2607:fb90:df8d:eacb:1ce7:a140:b870:c72c)
2024-09-23 19:51:58 +0200 <tomsmeding> ok that answers my question. Thank you for rubber ducking :)
2024-09-23 19:51:19 +0200ash3en(~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) (Ping timeout: 265 seconds)
2024-09-23 19:49:53 +0200 <probie> If you change it to `ctz#` it returns the first, but numbered backwards (e.g 8 for the first byte, 7 for the second byte etc.)
2024-09-23 19:49:27 +0200 <tomsmeding> oh it's in the fine print here https://hackage.haskell.org/package/base-4.19.0.0/docs/Control-Exception.html#g:13
2024-09-23 19:48:21 +0200peterbecich(~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 252 seconds)
2024-09-23 19:48:02 +0200wootehfoot(~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
2024-09-23 19:47:52 +0200 <tomsmeding> or is takeMVar always interruptible, regardless of the mask context? If so, why is this not mentioned in big screaming letters in the haddocks?
2024-09-23 19:46:35 +0200 <tomsmeding> How can there be exceptions in the first place if everything is masked?
2024-09-23 19:46:27 +0200 <tomsmeding> the code snippet (`import GHC.Conc ...`) takes care to handle asynchronous exceptions that cancel the takeMVar -- but this is all happening inside `mask_`!
2024-09-23 19:45:59 +0200 <probie> Oh, that doesn't quite work. It returns the _last_ byte
2024-09-23 19:45:48 +0200 <tomsmeding> is there someone around who is knowledgeable around asynchronous exceptions? In the FFI chapter of the GHC user guide, there is a code example for allowing C code to wake up a Haskell thread via a put to an MVar: https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/ffi.html#waking-up-haskell-threads-from-c