2024/12/23

Newest at the top

2024-12-24 00:43:07 +0100peterbecich(~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 265 seconds)
2024-12-24 00:40:03 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-12-24 00:39:39 +0100gorignak(~gorignak@user/gorignak) gorignak
2024-12-24 00:39:02 +0100gorignak(~gorignak@user/gorignak) (Ping timeout: 252 seconds)
2024-12-24 00:29:38 +0100peterbecich(~Thunderbi@syn-047-229-123-186.res.spectrum.com) peterbecich
2024-12-24 00:28:43 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 245 seconds)
2024-12-24 00:22:00 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-12-24 00:12:41 +0100 <hellwolf> still feel herculean, but now that I wrote couple of big TH code, it feels rather mechanical
2024-12-24 00:11:40 +0100 <hellwolf> and thanks for your hint using case of, the TH code is actually quite easy, I have it done: https://play.haskell.org/saved/Hdf3hnIp
2024-12-24 00:11:40 +0100 <hellwolf> ski, show instance is actually "correct", I am sticking a weird domain where U256 means 256 bits.
2024-12-24 00:10:49 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 244 seconds)
2024-12-24 00:09:20 +0100esph(~weechat@user/esph) (Ping timeout: 252 seconds)
2024-12-24 00:06:37 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-12-24 00:06:25 +0100ChaiTRex(~ChaiTRex@user/chaitrex) ChaiTRex
2024-12-24 00:06:18 +0100califax(~califax@user/califx) califx
2024-12-24 00:06:11 +0100chexum(~quassel@gateway/tor-sasl/chexum) chexum
2024-12-24 00:06:01 +0100califax(~califax@user/califx) (Read error: Connection reset by peer)
2024-12-24 00:05:56 +0100ChaiTRex(~ChaiTRex@user/chaitrex) (Remote host closed the connection)
2024-12-24 00:05:55 +0100chexum(~quassel@gateway/tor-sasl/chexum) (Remote host closed the connection)
2024-12-24 00:05:25 +0100son0p(~ff@186.121.98.118) (Ping timeout: 252 seconds)
2024-12-23 23:59:50 +0100Sgeo(~Sgeo@user/sgeo) Sgeo
2024-12-23 23:58:00 +0100Sgeo(~Sgeo@user/sgeo) (Read error: Connection reset by peer)
2024-12-23 23:57:45 +0100comonad(~comonad@p200300d0270bcb00d2bd35ff80c069c9.dip0.t-ipconnect.de)
2024-12-23 23:56:38 +0100rekahsoft(~rekahsoft@bras-base-orllon1103w-grc-06-76-69-85-220.dsl.bell.ca) rekahsoft
2024-12-23 23:56:14 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 265 seconds)
2024-12-23 23:54:26 +0100rekahsoft(~rekahsoft@bras-base-orllon1103w-grc-06-76-69-85-220.dsl.bell.ca) (Read error: Connection reset by peer)
2024-12-23 23:54:24 +0100gmg(~user@user/gehmehgeh) gehmehgeh
2024-12-23 23:52:32 +0100cyanteeth(~cyanteeth@user/cyanteeth) (Quit: cyanteeth)
2024-12-23 23:52:24 +0100gmg(~user@user/gehmehgeh) (Ping timeout: 264 seconds)
2024-12-23 23:51:14 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-12-23 23:50:15 +0100machinedgod(~machinedg@d108-173-18-100.abhsia.telus.net) (Ping timeout: 260 seconds)
2024-12-23 23:49:08 +0100Sgeo(~Sgeo@user/sgeo) Sgeo
2024-12-23 23:48:49 +0100 <hellwolf> (or easier to think about, code wise is probably similar)
2024-12-23 23:48:26 +0100 <hellwolf> An array of TH.match is definite easier to write :p
2024-12-23 23:47:44 +0100 <hellwolf> LamE [VarP n_0] (CaseE (VarE n_0) [Match (LitP (IntegerL 1)) (NormalB (AppE (ConE GHC.Internal.Maybe.Just) (AppTypeE (VarE Ghci4.f) (LitT (NumTyLit 1))))) [],Match (LitP (IntegerL 2)) (NormalB (AppE (ConE GHC.Internal.Maybe.Just) (AppTypeE (VarE Ghci4.f) (LitT (NumTyLit 2))))) [],Match WildP (NormalB (ConE GHC.Internal.Maybe.Nothing)) []])
2024-12-23 23:47:44 +0100 <hellwolf> λ [e| \n -> case n of 1 -> Just (f @1); 2 -> Just (f @2); _ -> Nothing; |]
2024-12-23 23:46:36 +0100 <hellwolf> at this point, I am just practicing TH.
2024-12-23 23:46:19 +0100 <hellwolf> right, I could use case, write 32 of them... I was looking into how to write if else chain in TH, but probably the cases are easier to write
2024-12-23 23:45:28 +0100xff0x(~xff0x@p3704193-ipxg12201sapodori.hokkaido.ocn.ne.jp)
2024-12-23 23:40:56 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 264 seconds)
2024-12-23 23:40:46 +0100sqourge(~sqourge47@user/sqourge) (Leaving)
2024-12-23 23:40:38 +0100sqourge(~sqourge47@user/sqourge) sqourge
2024-12-23 23:39:41 +0100red-snail(~red-snail@static.151.210.203.116.clients.your-server.de) red-snail
2024-12-23 23:36:15 +0100red-snail(~snail@static.151.210.203.116.clients.your-server.de) (Quit: ZNC 1.8.2 - https://znc.in)
2024-12-23 23:35:52 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2024-12-23 23:35:07 +0100 <ski> hellwolf : also, `Show' instance looks incorrect (at least unless you make pattern synonyms for `UINT8',`UINT16',`UINT24',`UINT32')
2024-12-23 23:33:39 +0100 <ski> hellwolf : you could `case' on `n', rather than doing an `if' chain with `=='s
2024-12-23 23:31:46 +0100weary-traveler(~user@user/user363627) (Remote host closed the connection)
2024-12-23 23:30:06 +0100ft(~ft@i59F4F0F5.versanet.de) ft
2024-12-23 23:24:50 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 244 seconds)