2024/09/23

Newest at the top

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
2024-09-23 19:42:52 +0200 <probie> (with 0## being returned on equality)
2024-09-23 19:40:59 +0200 <probie> For little endian, left to right, I end up with `(71## `minusWord#` clz64# (a `xor64#` b)) `uncheckedShiftRL#` 3#`
2024-09-23 19:40:50 +0200euleritian(~euleritia@dynamic-176-002-006-097.176.2.pool.telefonica.de)
2024-09-23 19:39:54 +0200euleritian(~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 260 seconds)
2024-09-23 19:37:00 +0200myxos(~myxos@syn-065-028-251-121.res.spectrum.com) myxokephale
2024-09-23 19:36:34 +0200machinedgod(~machinedg@d50-99-47-73.abhsia.telus.net) machinedgod
2024-09-23 19:31:57 +0200wootehfoot(~wootehfoo@user/wootehfoot) wootehfoot
2024-09-23 19:30:50 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
2024-09-23 19:28:40 +0200peterbecich(~Thunderbi@syn-047-229-123-186.res.spectrum.com) peterbecich
2024-09-23 19:25:18 +0200 <probie> oh right, which "byte" not "bit". Are we doing little endian or big endian?
2024-09-23 19:24:41 +0200synchromesh(~john@2406:5a00:241a:5600:793d:2863:f8b8:724f) synchromesh
2024-09-23 19:23:45 +0200synchromesh(~john@2406:5a00:241a:5600:793d:2863:f8b8:724f) (Read error: Connection reset by peer)
2024-09-23 19:22:58 +0200 <tomsmeding> probie raehik: for msb() read 'countLeadingZeros x `div` 8'
2024-09-23 19:22:39 +0200ash3en(~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) ash3en
2024-09-23 19:22:25 +0200ft(~ft@p508db65d.dip0.t-ipconnect.de) ft
2024-09-23 19:20:18 +0200sourcetarius(~sourcetar@user/sourcetarius) (Ping timeout: 276 seconds)
2024-09-23 19:18:45 +0200sdrfan123(~sdrfan123@2607:fb90:df8d:eacb:1ce7:a140:b870:c72c) (Client Quit)
2024-09-23 19:18:40 +0200 <apache2> sorry Ranhir, meant to highlight raehik
2024-09-23 19:17:40 +0200 <apache2> anything involving JMP is going to set you back miles compared to those