2024/04/22

Newest at the top

2024-04-22 11:28:43 +0200 <jackdk> *shrug* I don't have the cycles to think about it, sorry
2024-04-22 11:28:15 +0200 <Inst> it's essentially as "pure" as unsafePerformIO hPutStr stderr (trace), no?
2024-04-22 11:27:51 +0200 <Inst> but from a design standpoint, the only problem with unsafePerformIO appendLog is that it breaks concurrency, right?
2024-04-22 11:27:18 +0200 <jackdk> fast-logger, monad-logger, and katip are the main ones I'm aware of
2024-04-22 11:25:26 +0200 <Inst> there's STM / concurrent unsafePerformIO logging, i guess
2024-04-22 11:25:12 +0200 <Inst> writer monad iirc is considered bad practice (because you want to write to log immediately), you could use IO wrappers for logging
2024-04-22 11:23:57 +0200 <Inst> Besides the libs, what are good ways to handle logging?
2024-04-22 11:22:42 +0200 <Inst> https://hackage.haskell.org/package/fast-logger
2024-04-22 11:22:41 +0200 <Inst> and this is standard?
2024-04-22 11:22:09 +0200 <Inst> At the very least, it'd be a problem under concurrency, I guess
2024-04-22 11:21:31 +0200 <Inst> why is unsafePerformIO . (\u -> appendFile "log.log" "message goes here >> pure u) a bad idea?
2024-04-22 11:21:16 +0200gmg(~user@user/gehmehgeh)
2024-04-22 11:20:32 +0200Inst(~Inst@user/Inst)
2024-04-22 11:19:47 +0200jespada(~jespada@cpc121308-nmal25-2-0-cust15.19-2.cable.virginm.net) (Quit: Textual IRC Client: www.textualapp.com)
2024-04-22 11:18:38 +0200gmg(~user@user/gehmehgeh) (Ping timeout: 260 seconds)
2024-04-22 11:09:48 +0200danse-nr3(~danse-nr3@151.47.40.219)
2024-04-22 11:08:47 +0200chele(~chele@user/chele)
2024-04-22 11:08:45 +0200danse-nr3(~danse-nr3@151.57.252.198) (Ping timeout: 268 seconds)
2024-04-22 11:08:34 +0200tititest(~tititest@ip-037-201-154-121.um10.pools.vodafone-ip.de) (Remote host closed the connection)
2024-04-22 11:06:46 +0200tititest(~tititest@ip-037-201-154-121.um10.pools.vodafone-ip.de)
2024-04-22 10:59:25 +0200qqq(~qqq@92.43.167.61)
2024-04-22 10:53:20 +0200qqq(~qqq@92.43.167.61) (Quit: Lost terminal)
2024-04-22 10:51:21 +0200madeleine-sydney(~madeleine@c-76-155-235-153.hsd1.co.comcast.net) (Quit: Konversation terminated!)
2024-04-22 10:47:07 +0200 <lambdabot> 0.5
2024-04-22 10:47:06 +0200 <probie> > let a n = (-1 :: Double)^n/sqrt(fromIntegral n) in a 4 -- Or you might want something like this
2024-04-22 10:43:22 +0200qqq(~qqq@92.43.167.61)
2024-04-22 10:41:27 +0200fmd(~fmd@2a02:8429:4b56:6801:6f51:61a3:1853:7494)
2024-04-22 10:40:43 +0200fmd(~fmd@user/framend) (Ping timeout: 260 seconds)
2024-04-22 10:35:41 +0200stiell_(~stiell@gateway/tor-sasl/stiell)
2024-04-22 10:34:45 +0200danse-nr3(~danse-nr3@151.57.252.198)
2024-04-22 10:34:18 +0200danse-nr3(~danse-nr3@151.57.252.198) (Remote host closed the connection)
2024-04-22 10:33:47 +0200danse-nr3(~danse-nr3@151.57.252.198)
2024-04-22 10:29:43 +0200zetef(~quassel@5.2.182.99)
2024-04-22 10:23:07 +0200ft(~ft@p4fc2a20e.dip0.t-ipconnect.de) (Quit: leaving)
2024-04-22 10:17:46 +0200titibandit(~titibandi@user/titibandit) (ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3))
2024-04-22 10:17:13 +0200random-jellyfish(~developer@user/random-jellyfish)
2024-04-22 10:17:13 +0200random-jellyfish(~developer@2a02:2f04:11e:c600:2256:e257:bc55:f1e6) (Changing host)
2024-04-22 10:17:13 +0200random-jellyfish(~developer@2a02:2f04:11e:c600:2256:e257:bc55:f1e6)
2024-04-22 10:15:49 +0200xdminsy(~xdminsy@117.147.70.233)
2024-04-22 10:13:30 +0200tzh(~tzh@c-73-164-206-160.hsd1.or.comcast.net) (Quit: zzz)
2024-04-22 10:11:33 +0200econo_(uid147250@id-147250.tinside.irccloud.com) (Quit: Connection closed for inactivity)
2024-04-22 10:10:25 +0200fmd(~fmd@user/framend)
2024-04-22 10:09:15 +0200danza(~francesco@151.57.252.198) (Ping timeout: 268 seconds)
2024-04-22 10:01:39 +0200internatetional(~internate@2001:448a:20a3:c2e5:184a:ab53:496c:8f20) (Ping timeout: 256 seconds)
2024-04-22 10:01:27 +0200mei(~mei@user/mei)
2024-04-22 09:59:52 +0200mei(~mei@user/mei) (Quit: mei)
2024-04-22 09:44:48 +0200 <geekosaur> kinda hard for a number to be Integral and Floating at the same time
2024-04-22 09:44:34 +0200 <lambdabot> (Integral a, Floating a) => a
2024-04-22 09:44:33 +0200 <geekosaur> :t let a n = (-1)^n / sqrt(n) in a 4
2024-04-22 09:44:28 +0200 <geekosaur> use (**) instead of (^)