2024/11/18

Newest at the top

2024-11-18 17:29:17 +0100mari-estel(~mari-este@user/mari-estel) (Remote host closed the connection)
2024-11-18 17:29:16 +0100housemate(~housemate@2a04:9dc0:0:162::5d91:d7ed) (Ping timeout: 244 seconds)
2024-11-18 17:27:33 +0100euleritian(~euleritia@77.22.252.159)
2024-11-18 17:27:16 +0100euleritian(~euleritia@ip4d16fc9f.dynamic.kabel-deutschland.de) (Remote host closed the connection)
2024-11-18 17:26:54 +0100Leonard26(~Leonard26@49.236.26.53)
2024-11-18 17:25:30 +0100Alleria(~Alleria@user/alleria) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2024-11-18 17:22:52 +0100housemate(~housemate@2a04:9dc0:0:162::5d91:d7ed) housemate
2024-11-18 17:21:43 +0100housemate(~housemate@2a04:9dc0:0:162::5d91:d7ed) (Client Quit)
2024-11-18 17:21:31 +0100son0p(~ff@2800:e6:4001:6cc3:2748:5c2a:65d9:57ac) son0p
2024-11-18 17:20:07 +0100lortabac(~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) (Quit: WeeChat 4.4.2)
2024-11-18 17:18:42 +0100housemate(~housemate@2a04:9dc0:0:162::5d91:d7ed) housemate
2024-11-18 17:18:38 +0100 <dolio> You should probably check if UnliftedType omits other optimizations. E.G. does GHC still do constructed product returns for them?
2024-11-18 17:17:32 +0100housemate(~housemate@2a04:9dc0:0:162::5d91:d7ed) (Quit: Nothing to see here. I wasn't there.)
2024-11-18 17:16:53 +0100euleritian(~euleritia@ip4d16fc9f.dynamic.kabel-deutschland.de)
2024-11-18 17:16:19 +0100euleritian(~euleritia@ip4d16fc9f.dynamic.kabel-deutschland.de) (Remote host closed the connection)
2024-11-18 17:06:33 +0100gorignak(~gorignak@user/gorignak) gorignak
2024-11-18 17:06:03 +0100gorignak(~gorignak@user/gorignak) (Quit: quit)
2024-11-18 17:05:59 +0100Alleria(~Alleria@user/alleria) Alleria
2024-11-18 17:04:46 +0100Alleria(~Alleria@user/alleria) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2024-11-18 16:57:35 +0100Alleria(~Alleria@user/alleria) Alleria
2024-11-18 16:56:23 +0100gorignak(~gorignak@user/gorignak) gorignak
2024-11-18 16:55:52 +0100gorignak(~gorignak@user/gorignak) (Quit: quit)
2024-11-18 16:55:04 +0100 <Wygulmage> I guess it operates at a less general level.
2024-11-18 16:54:52 +0100 <Wygulmage> I assumed that GHC would unpack anything of `BoxedRep r`, regardless of whether `r` was lifted or unlifted.
2024-11-18 16:54:08 +0100 <dolio> Certainly there's no reason you couldn't.
2024-11-18 16:53:47 +0100 <dolio> I don't know. I guess they figured you wouldn't be unpacking unlifted data types into other types.
2024-11-18 16:53:12 +0100 <Wygulmage> Huh. I wonder whether that's a bug or a feature.
2024-11-18 16:52:07 +0100lisbeths(uid135845@id-135845.lymington.irccloud.com) (Quit: Connection closed for inactivity)
2024-11-18 16:51:33 +0100Alleria(~Alleria@user/alleria) (Ping timeout: 276 seconds)
2024-11-18 16:51:29 +0100 <dolio> But the UnliftedType version is: `floobnar = Up.G (Up.F 5# 6#)`
2024-11-18 16:50:51 +0100 <dolio> When F is not UnliftedType, a G value ends up looking like: `floobnar = Up.G 5# 6#`
2024-11-18 16:50:30 +0100euleritian(~euleritia@ip4d16fc9f.dynamic.kabel-deutschland.de)
2024-11-18 16:50:13 +0100 <Wygulmage> That is very good to know.
2024-11-18 16:50:12 +0100euleritian(~euleritia@176.2.4.196) (Read error: Connection reset by peer)
2024-11-18 16:49:49 +0100 <dolio> You can see this by messing around with -ddump-simpl.
2024-11-18 16:49:03 +0100 <dolio> It appears that if `type F :: UnliftedType` is declared, then `data G = G {-# unpack #-} !F` does not actually unpack F.
2024-11-18 16:47:27 +0100 <Wygulmage> It's nice to be able to have the `Baz` wrapper for `Array#`, `ByteArray#`, `MutableByteArray#`, etc., but at this low level, not if it creates an extra indirection.
2024-11-18 16:47:00 +0100Alleria_(~Alleria@user/alleria) (Ping timeout: 276 seconds)
2024-11-18 16:46:28 +0100Alleria(~Alleria@user/alleria) Alleria
2024-11-18 16:46:11 +0100gorignak(~gorignak@user/gorignak) gorignak
2024-11-18 16:45:41 +0100gorignak(~gorignak@user/gorignak) (Quit: quit)
2024-11-18 16:44:40 +0100 <Wygulmage> I was wondering whether the polymorphism would introduce an extra layer of indirection.
2024-11-18 16:43:52 +0100 <Wygulmage> So a polymorphic `data Baz ( a :: UnliftedType ) = MkBaz Int# a` will have an equivalent in-memory representation to `data BazBytes = MkMazBytes Int# ByteArray#` when `a` is instantiated to `ByteArray#`
2024-11-18 16:43:17 +0100Alleria(~Alleria@user/alleria) (Ping timeout: 248 seconds)
2024-11-18 16:40:44 +0100 <Wygulmage> That's exactly what I wanted to know.
2024-11-18 16:40:35 +0100 <Wygulmage> OK, thanks.
2024-11-18 16:40:16 +0100Alleria_(~Alleria@user/alleria) Alleria
2024-11-18 16:40:09 +0100 <dolio> If you're asking about a data definition with a specified kind of UnliftedType, then I'm less certain. I think the answer might still be no.
2024-11-18 16:39:24 +0100 <dolio> Are you asking about ByteArray#? Then the answer is no, because it's not defined with data. It's a built-in.
2024-11-18 16:38:24 +0100mari-estel(~mari-este@user/mari-estel) mari-estel