Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→ 1,789,838 events total
2026-03-28 14:59:12 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 246 seconds)
2026-03-28 15:03:03 Pixi joins (~Pixi@user/pixi)
2026-03-28 15:09:43 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-03-28 15:13:22 × koala_man quits (~vidar@157.146.251.23.bc.googleusercontent.com) (Read error: Connection reset by peer)
2026-03-28 15:13:37 koala_man joins (~vidar@157.146.251.23.bc.googleusercontent.com)
2026-03-28 15:14:14 <tomsmeding> people knowing `chronos` here, am I doing something wrong? https://paste.tomsmeding.com/bMzwFR5y
2026-03-28 15:14:21 <tomsmeding> `dateToDay` seems non-injective
2026-03-28 15:14:32 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 265 seconds)
2026-03-28 15:14:37 <tomsmeding> I'm fairly sure that May 30th and 31st in 2021 were different days
2026-03-28 15:15:20 arandombit joins (~arandombi@2a02:2455:8656:7100:7003:5dc9:c8bb:73b4)
2026-03-28 15:15:20 × arandombit quits (~arandombi@2a02:2455:8656:7100:7003:5dc9:c8bb:73b4) (Changing host)
2026-03-28 15:15:20 arandombit joins (~arandombi@user/arandombit)
2026-03-28 15:15:58 <tomsmeding> oh, months count from zero
2026-03-28 15:17:22 <tomsmeding> why do months count from zero and days-in-month from 1?
2026-03-28 15:17:28 <tomsmeding> why is this JS all over again
2026-03-28 15:17:42 <tomsmeding> also why does chronos segfault if you give it invalid input https://github.com/byteverse/chronos/issues/100
2026-03-28 15:17:58 <tomsmeding> sshine: I recall you posted an article here recommending chronos :p
2026-03-28 15:19:22 <int-e> tomsmeding: let me guess, one is a number and the other is concpetually an enum. why is that not an error, why does it clamp days into the acceptable range for the month instead?
2026-03-28 15:19:32 <int-e> questions
2026-03-28 15:19:37 <tomsmeding> int-e: yes
2026-03-28 15:25:04 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-03-28 15:25:12 × ss4 quits (~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
2026-03-28 15:26:25 <EvanR> ah the utter perfection of the time package
2026-03-28 15:26:40 <EvanR> any attempt to improve it will be a net cringe
2026-03-28 15:35:10 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 245 seconds)
2026-03-28 15:41:10 <c_wraith> time is pretty good. It avoids about as many mistakes of common time libraries as possible without adding a ton of complexity. (This makes the interface unusual so people search for libraries that let them make the common mistakes.)
2026-03-28 15:46:16 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-03-28 15:46:25 wootehfoot joins (~wootehfoo@user/wootehfoot)
2026-03-28 15:48:53 srazkvt joins (~sarah@user/srazkvt)
2026-03-28 15:51:07 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 268 seconds)
2026-03-28 15:51:49 karenw joins (~karenw@user/karenw)
2026-03-28 16:01:37 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-03-28 16:02:43 × humasect quits (~humasect@dyn-192-249-132-90.nexicom.net) (Ping timeout: 264 seconds)
2026-03-28 16:06:22 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 256 seconds)
2026-03-28 16:13:30 × koala_man quits (~vidar@157.146.251.23.bc.googleusercontent.com) (Ping timeout: 245 seconds)
2026-03-28 16:16:10 koala_man joins (~vidar@157.146.251.23.bc.googleusercontent.com)
2026-03-28 16:17:08 humasect joins (~humasect@dyn-192-249-132-90.nexicom.net)
2026-03-28 16:22:22 × koala_man quits (~vidar@157.146.251.23.bc.googleusercontent.com) (Ping timeout: 276 seconds)
2026-03-28 16:24:04 × xff0x quits (~xff0x@2405:6580:b080:900:6a99:b43f:8065:9325) (Ping timeout: 245 seconds)
2026-03-28 16:25:53 xff0x joins (~xff0x@2405:6580:b080:900:fe99:f2ca:92ea:c869)
2026-03-28 16:26:05 koala_man joins (~vidar@157.146.251.23.bc.googleusercontent.com)
2026-03-28 16:26:07 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-03-28 16:26:38 nelson joins (~nelson@2600:4041:3c9b:f800:ea2e:8969:c6ba:dfb5)
2026-03-28 16:27:59 × nelson quits (~nelson@2600:4041:3c9b:f800:ea2e:8969:c6ba:dfb5) (Client Quit)
2026-03-28 16:30:49 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 276 seconds)
2026-03-28 16:35:09 × wootehfoot quits (~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
2026-03-28 16:37:19 <gentauro> int-e: Month should use https://hackage-content.haskell.org/package/base-4.22.0.0/docs/Data-Bounded.html
2026-03-28 16:37:52 <gentauro> and then just `zip [1..] [ minBound .. maxBound ]` no?
2026-03-28 16:41:29 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-03-28 16:42:53 <int-e> gentauro: You can do that if you don't care about efficiency.
2026-03-28 16:43:02 <EvanR> I suggest an APL-like global TVar which toggles Enum to be based at 0 or 1
2026-03-28 16:44:47 <haskellbridge> <sm> Agreed about time, but I wonder if the docs or getting started experience could be improved
2026-03-28 16:44:55 × koala_man quits (~vidar@157.146.251.23.bc.googleusercontent.com) (Ping timeout: 265 seconds)
2026-03-28 16:46:31 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-03-28 16:47:41 koala_man joins (~vidar@157.146.251.23.bc.googleusercontent.com)
2026-03-28 16:50:10 <gentauro> int-e: https://wiki.haskell.org/index.php?title=Memoization
2026-03-28 16:50:25 machinedgod joins (~machinedg@d172-219-48-230.abhsia.telus.net)
2026-03-28 16:50:34 <gentauro> I don't recall the example, but it was kind of strange. You memoized the list with (!!)
2026-03-28 16:51:39 <int-e> > let fibs = 0:1:[fib !! (n-2) + fib !! (n-1) | n <- [2..]] in take 10 fibs
2026-03-28 16:51:40 <lambdabot> Variable not in scope: fib :: [a1]Variable not in scope: fib :: [a1]
2026-03-28 16:52:04 <int-e> > let fibs = 0:1:[fibs !! (n-2) + fibs !! (n-1) | n <- [2..]] in take 10 fibs
2026-03-28 16:52:05 <lambdabot> [0,1,1,2,3,5,8,13,21,34]
2026-03-28 16:52:13 <gentauro> int-e: I guess that's the one
2026-03-28 16:52:32 <int-e> (this is not the worst idea if the parts are more expensive and/or the list is short)
2026-03-28 16:56:50 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-03-28 17:01:31 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-03-28 17:01:52 tzh joins (~tzh@c-76-115-131-146.hsd1.or.comcast.net)
2026-03-28 17:04:43 × koala_man quits (~vidar@157.146.251.23.bc.googleusercontent.com) (Read error: Connection reset by peer)
2026-03-28 17:09:29 × mistivia quits (~mistivia@user/mistivia) (Remote host closed the connection)
2026-03-28 17:09:35 × luke quits (~luke@user/luke) (Remote host closed the connection)
2026-03-28 17:11:17 koala_man joins (~vidar@157.146.251.23.bc.googleusercontent.com)
2026-03-28 17:12:09 merijn joins (~merijn@62.45.136.136)
2026-03-28 17:16:30 <monochrom> EvanR: Haha
2026-03-28 17:18:30 × koala_man quits (~vidar@157.146.251.23.bc.googleusercontent.com) (Ping timeout: 245 seconds)
2026-03-28 17:18:55 × merijn quits (~merijn@62.45.136.136) (Ping timeout: 245 seconds)
2026-03-28 17:20:01 ft joins (~ft@p508db341.dip0.t-ipconnect.de)
2026-03-28 17:21:12 emmanuelux_ joins (~em@2a02-8440-2504-46f6-d9db-ddcd-9d62-8fc7.rev.sfr.net)
2026-03-28 17:21:45 × emmanuelux quits (~em@user/emmanuelux) (Ping timeout: 255 seconds)
2026-03-28 17:22:40 peterbecich joins (~Thunderbi@71.84.33.135)
2026-03-28 17:25:53 koala_man joins (~vidar@157.146.251.23.bc.googleusercontent.com)
2026-03-28 17:29:14 × gabriel_sevecek quits (~gabriel@92-180-224-71.dynamic.orange.sk) (Quit: WeeChat 4.8.2)
2026-03-28 17:29:47 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-03-28 17:34:26 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 252 seconds)
2026-03-28 17:39:22 ChaiTRex joins (~ChaiTRex@user/chaitrex)
2026-03-28 17:40:16 gabriel_sevecek joins (~gabriel@92-180-224-71.dynamic.orange.sk)
2026-03-28 17:42:03 × koala_man quits (~vidar@157.146.251.23.bc.googleusercontent.com) (Read error: Connection reset by peer)
2026-03-28 17:42:13 koala_man joins (~vidar@157.146.251.23.bc.googleusercontent.com)
2026-03-28 17:45:09 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-03-28 17:47:51 × koala_man quits (~vidar@157.146.251.23.bc.googleusercontent.com) (Ping timeout: 255 seconds)
2026-03-28 17:49:29 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 245 seconds)
2026-03-28 17:50:27 <haskellbridge> <Liamzee> thanks gentauro
2026-03-28 17:51:32 × qqq quits (~qqq@185.54.23.6) (Remote host closed the connection)
2026-03-28 17:55:30 × gabriel_sevecek quits (~gabriel@92-180-224-71.dynamic.orange.sk) (Ping timeout: 255 seconds)
2026-03-28 18:00:32 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-03-28 18:03:27 koala_man joins (~vidar@157.146.251.23.bc.googleusercontent.com)
2026-03-28 18:03:49 wootehfoot joins (~wootehfoo@user/wootehfoot)
2026-03-28 18:03:56 jmcantrell_ joins (~weechat@user/jmcantrell)
2026-03-28 18:05:07 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 244 seconds)
2026-03-28 18:05:30 × ChaiTRex quits (~ChaiTRex@user/chaitrex) (Remote host closed the connection)
2026-03-28 18:06:39 ChaiTRex joins (~ChaiTRex@user/chaitrex)

All times are in UTC.