2026/03/28

Newest at the top

2026-03-28 18:04:43 +0100koala_man(~vidar@157.146.251.23.bc.googleusercontent.com) (Read error: Connection reset by peer)
2026-03-28 18:01:52 +0100tzh(~tzh@c-76-115-131-146.hsd1.or.comcast.net)
2026-03-28 18:01:31 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-03-28 17:56:50 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-03-28 17:52:32 +0100 <int-e> (this is not the worst idea if the parts are more expensive and/or the list is short)
2026-03-28 17:52:13 +0100 <gentauro> int-e: I guess that's the one
2026-03-28 17:52:05 +0100 <lambdabot> [0,1,1,2,3,5,8,13,21,34]
2026-03-28 17:52:04 +0100 <int-e> > let fibs = 0:1:[fibs !! (n-2) + fibs !! (n-1) | n <- [2..]] in take 10 fibs
2026-03-28 17:51:40 +0100 <lambdabot> Variable not in scope: fib :: [a1]Variable not in scope: fib :: [a1]
2026-03-28 17:51:39 +0100 <int-e> > let fibs = 0:1:[fib !! (n-2) + fib !! (n-1) | n <- [2..]] in take 10 fibs
2026-03-28 17:50:34 +0100 <gentauro> I don't recall the example, but it was kind of strange. You memoized the list with (!!)
2026-03-28 17:50:25 +0100machinedgod(~machinedg@d172-219-48-230.abhsia.telus.net) machinedgod
2026-03-28 17:50:10 +0100 <gentauro> int-e: https://wiki.haskell.org/index.php?title=Memoization
2026-03-28 17:47:41 +0100koala_man(~vidar@157.146.251.23.bc.googleusercontent.com) koala_man
2026-03-28 17:46:31 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-03-28 17:44:55 +0100koala_man(~vidar@157.146.251.23.bc.googleusercontent.com) (Ping timeout: 265 seconds)
2026-03-28 17:44:47 +0100 <haskellbridge> <sm> Agreed about time, but I wonder if the docs or getting started experience could be improved
2026-03-28 17:43:02 +0100 <EvanR> I suggest an APL-like global TVar which toggles Enum to be based at 0 or 1
2026-03-28 17:42:53 +0100 <int-e> gentauro: You can do that if you don't care about efficiency.
2026-03-28 17:41:29 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-03-28 17:37:52 +0100 <gentauro> and then just `zip [1..] [ minBound .. maxBound ]` no?
2026-03-28 17:37:19 +0100 <gentauro> int-e: Month should use https://hackage-content.haskell.org/package/base-4.22.0.0/docs/Data-Bounded.html
2026-03-28 17:35:09 +0100wootehfoot(~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
2026-03-28 17:30:49 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 276 seconds)
2026-03-28 17:27:59 +0100nelson(~nelson@2600:4041:3c9b:f800:ea2e:8969:c6ba:dfb5) (Client Quit)
2026-03-28 17:26:38 +0100nelson(~nelson@2600:4041:3c9b:f800:ea2e:8969:c6ba:dfb5)
2026-03-28 17:26:07 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-03-28 17:26:05 +0100koala_man(~vidar@157.146.251.23.bc.googleusercontent.com) koala_man
2026-03-28 17:25:53 +0100xff0x(~xff0x@2405:6580:b080:900:fe99:f2ca:92ea:c869)
2026-03-28 17:24:04 +0100xff0x(~xff0x@2405:6580:b080:900:6a99:b43f:8065:9325) (Ping timeout: 245 seconds)
2026-03-28 17:22:22 +0100koala_man(~vidar@157.146.251.23.bc.googleusercontent.com) (Ping timeout: 276 seconds)
2026-03-28 17:17:08 +0100humasect(~humasect@dyn-192-249-132-90.nexicom.net) humasect
2026-03-28 17:16:10 +0100koala_man(~vidar@157.146.251.23.bc.googleusercontent.com) koala_man
2026-03-28 17:13:30 +0100koala_man(~vidar@157.146.251.23.bc.googleusercontent.com) (Ping timeout: 245 seconds)
2026-03-28 17:06:22 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 256 seconds)
2026-03-28 17:02:43 +0100humasect(~humasect@dyn-192-249-132-90.nexicom.net) (Ping timeout: 264 seconds)
2026-03-28 17:01:37 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-03-28 16:51:49 +0100karenw(~karenw@user/karenw) karenw
2026-03-28 16:51:07 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 268 seconds)
2026-03-28 16:48:53 +0100srazkvt(~sarah@user/srazkvt) srazkvt
2026-03-28 16:46:25 +0100wootehfoot(~wootehfoo@user/wootehfoot) wootehfoot
2026-03-28 16:46:16 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-03-28 16:41:10 +0100 <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 16:35:10 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 245 seconds)
2026-03-28 16:26:40 +0100 <EvanR> any attempt to improve it will be a net cringe
2026-03-28 16:26:25 +0100 <EvanR> ah the utter perfection of the time package
2026-03-28 16:25:12 +0100ss4(~wootehfoo@user/wootehfoot) (Read error: Connection reset by peer)
2026-03-28 16:25:04 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-03-28 16:19:37 +0100 <tomsmeding> int-e: yes
2026-03-28 16:19:32 +0100 <int-e> questions