Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→ 1,798,413 events total
2026-02-24 07:21:58 <lambdabot> In the expression: minBound
2026-02-24 07:22:24 <Leary> Ah, Forgot to derive `Bounded`. Well, you get the idea.
2026-02-24 07:23:04 <Leary> > [minBound .. maxBound] :: [FooBarEnum]
2026-02-24 07:23:05 <lambdabot> [Foo,Bar]
2026-02-24 07:24:47 marinelli joins (~weechat@gateway/tor-sasl/marinelli)
2026-02-24 07:25:32 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-02-24 07:27:01 <gentauro> Leary: now that was nifty <3
2026-02-24 07:27:32 <gentauro> many thx
2026-02-24 07:29:04 × img quits (~img@user/img) (Quit: ZNC 1.10.1 - https://znc.in)
2026-02-24 07:29:48 wickedjargon joins (~user@2605:8d80:5430:dc79:6396:7e42:d4e3:36f9)
2026-02-24 07:30:20 img joins (~img@user/img)
2026-02-24 07:30:52 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 276 seconds)
2026-02-24 07:36:31 Enrico63 joins (~Enrico63@host-79-19-156-232.retail.telecomitalia.it)
2026-02-24 07:37:13 × tzh quits (~tzh@c-76-115-131-146.hsd1.or.comcast.net) (Quit: zzz)
2026-02-24 07:40:54 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-02-24 07:44:04 × Enrico63 quits (~Enrico63@host-79-19-156-232.retail.telecomitalia.it) (Quit: Client closed)
2026-02-24 07:47:54 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 265 seconds)
2026-02-24 07:52:41 × jj quits (~apropos@node-1w7jr9pqogh9vahu1mvneock5.ipv6.telus.net) (Ping timeout: 248 seconds)
2026-02-24 07:55:47 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-02-24 07:56:33 jj joins (~apropos@node-1w7jr9pqogh9vahu1mvneock5.ipv6.telus.net)
2026-02-24 08:00:09 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds)
2026-02-24 08:02:09 chele joins (~chele@user/chele)
2026-02-24 08:06:23 × wickedjargon quits (~user@2605:8d80:5430:dc79:6396:7e42:d4e3:36f9) (Read error: Connection reset by peer)
2026-02-24 08:11:10 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-02-24 08:11:18 × lbseale quits (~quassel@user/ep1ctetus) (Ping timeout: 256 seconds)
2026-02-24 08:15:00 × peterbecich quits (~Thunderbi@71.84.33.135) (Ping timeout: 255 seconds)
2026-02-24 08:15:32 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 252 seconds)
2026-02-24 08:18:04 × Pozyomka quits (~pyon@user/pyon) (Ping timeout: 268 seconds)
2026-02-24 08:27:27 tromp joins (~textual@2001:1c00:3487:1b00:7955:9591:6018:7ef9)
2026-02-24 08:28:15 AlexNoo joins (~AlexNoo@178.34.163.162)
2026-02-24 08:28:59 AlexNoo_ joins (~AlexNoo@178.34.163.162)
2026-02-24 08:29:43 AlexNoo__ joins (~AlexNoo@178.34.163.162)
2026-02-24 08:33:06 × AlexNoo quits (~AlexNoo@178.34.163.162) (Ping timeout: 268 seconds)
2026-02-24 08:33:41 AlexNoo joins (~AlexNoo@178.34.163.162)
2026-02-24 08:33:43 × AlexNoo_ quits (~AlexNoo@178.34.163.162) (Ping timeout: 268 seconds)
2026-02-24 08:34:20 × AlexNoo__ quits (~AlexNoo@178.34.163.162) (Ping timeout: 268 seconds)
2026-02-24 08:37:54 __monty__ joins (~toonn@user/toonn)
2026-02-24 08:50:43 × srk quits (~sorki@user/srk) (Ping timeout: 264 seconds)
2026-02-24 08:51:37 emmanuelux joins (~em@user/emmanuelux)
2026-02-24 08:52:16 srk joins (~sorki@user/srk)
2026-02-24 08:52:36 merijn joins (~merijn@77.242.116.146)
2026-02-24 09:06:08 lxsameer joins (~lxsameer@Serene/lxsameer)
2026-02-24 09:07:46 × emmanuelux quits (~em@user/emmanuelux) (Quit: bye)
2026-02-24 09:13:07 Alex_delenda_est joins (~al_test@178.34.163.162)
2026-02-24 09:14:02 AlexZenon joins (~alzenon@178.34.163.162)
2026-02-24 09:15:47 Alex_test_ joins (~al_test@178.34.163.162)
2026-02-24 09:15:54 × jreicher quits (~joelr@user/jreicher) (Quit: brb)
2026-02-24 09:17:33 × Alex_delenda_est quits (~al_test@178.34.163.162) (Ping timeout: 255 seconds)
2026-02-24 09:18:24 jreicher joins (~joelr@user/jreicher)
2026-02-24 09:20:15 × Alex_test_ quits (~al_test@178.34.163.162) (Ping timeout: 255 seconds)
2026-02-24 09:25:44 Alex_delenda_est joins (~al_test@178.34.163.162)
2026-02-24 09:27:08 × sp1ff quits (~user@2601:1c2:4701:7850::8cd) (Ping timeout: 268 seconds)
2026-02-24 09:31:27 <dminuoso> % :t minBound
2026-02-24 09:31:27 <yahb2> minBound :: Bounded a => a
2026-02-24 09:31:58 <dminuoso> Curious, why is Ord not a superclass of Bounded?
2026-02-24 09:32:19 <dminuoso> What does `minimum/maximum` even mean in the absence of an ordering?
2026-02-24 09:32:50 Enrico63 joins (~Enrico63@host-79-19-156-232.retail.telecomitalia.it)
2026-02-24 09:33:40 <tomsmeding> perhaps it makes sense that an Enum has a first and a last value for enumeration, but while it has an ordering compatible with that Enum instance, that ordering makes no semantical sense and is hence not defined?
2026-02-24 09:33:53 <tomsmeding> but then you could argue that you should give that Ord instance anyway
2026-02-24 09:34:47 <humasect> it says right in the first sentence https://hackage-content.haskell.org/package/base-4.22.0.0/docs/Data-Bounded.html
2026-02-24 09:35:05 <tomsmeding> lol, dminuoso ^
2026-02-24 09:35:24 tomsmeding should have thought of that
2026-02-24 09:35:32 <dminuoso> humasect: Yes, and its not much of an explanation.
2026-02-24 09:35:43 <dminuoso> It reads nonsensical to me.
2026-02-24 09:35:48 <humasect> perhaps look into its meaning, disassemble it to understanding
2026-02-24 09:35:50 <tomsmeding> dminuoso: not every ordering is total
2026-02-24 09:35:54 <dminuoso> Oh.
2026-02-24 09:35:54 <tomsmeding> partial orders are a thing
2026-02-24 09:35:55 <humasect> how to learn ?
2026-02-24 09:36:09 sp1ff joins (~user@c-24-20-218-28.hsd1.wa.comcast.net)
2026-02-24 09:36:22 <dminuoso> tomsmeding: Is there a notion of `minimum` in a partially ordered set, then?
2026-02-24 09:36:30 <dminuoso> Im not even sure what that would mean.
2026-02-24 09:36:32 <__monty__> tomsmeding: But Bounded doesn't deal with just any partial order.
2026-02-24 09:36:43 <tomsmeding> dminuoso: yes, a lower bound :) https://en.wikipedia.org/wiki/Lattice_(order)
2026-02-24 09:36:44 <__monty__> It's restricted to partial orders that have a single lower and upper bound.
2026-02-24 09:37:15 <tomsmeding> sure, but even those need not have a total ordering
2026-02-24 09:37:27 <tomsmeding> perhaps "lower bound" is not the technically correct term here
2026-02-24 09:37:38 <tomsmeding> (but then, it's probably "minimum", which would not have helped dminuoso)
2026-02-24 09:38:17 <tomsmeding> dminuoso: all subset of a given set S are partially ordered by inclusion, and they have a unique minimum ({}) and maximum (S), but they are not totally ordered
2026-02-24 09:38:47 <dminuoso> tomsmeding: Okay so what you're saying is that Bounded is just synonmous for Lattice?
2026-02-24 09:38:55 <tomsmeding> perhaps?
2026-02-24 09:39:16 <tomsmeding> well, a bounded lattice
2026-02-24 09:39:46 <dminuoso> tomsmeding: Aren't all lattices bounded by their suprema?
2026-02-24 09:40:04 <dminuoso> Ohh wait.
2026-02-24 09:40:06 <dminuoso> I see.
2026-02-24 09:40:07 <tomsmeding> according to the wikipedia definition that I'm currently reading, a plain "lattice" requires joins and meets of _two_ elements
2026-02-24 09:40:10 <tomsmeding> and thus finite sets
2026-02-24 09:40:27 <tomsmeding> a _complete lattice_ additionally requires suprema and infima of larger sets
2026-02-24 09:40:38 <tomsmeding> thus all complete lattices are bounded, but not all bounded lattices are complete? Perhaps?
2026-02-24 09:40:55 dminuoso wonders why lattices are called lattices
2026-02-24 09:41:19 <tomsmeding> because of this picture I always assumed https://commons.wikimedia.org/wiki/File:Pow3nonlattice.svg
2026-02-24 09:41:39 <jreicher> dminuoso: hasse diagrams
2026-02-24 09:41:51 × xff0x quits (~xff0x@fsb6a9491c.tkyc517.ap.nuro.jp) (Ping timeout: 255 seconds)
2026-02-24 09:42:06 <jreicher> https://en.wikipedia.org/wiki/Hasse_diagram
2026-02-24 09:42:21 <tomsmeding> which that picture is an example of
2026-02-24 09:42:40 <Leary> It's a bounded partial order with minimal and maximal elements---that doesn't imply unique suprema or infima.
2026-02-24 09:42:51 × Enrico63 quits (~Enrico63@host-79-19-156-232.retail.telecomitalia.it) (Quit: Client closed)
2026-02-24 09:43:09 <tomsmeding> fair! Even pairs need not have unique joins or meets
2026-02-24 09:43:48 <dminuoso> Leary: Are you saying that Bounded does not have uniqueness requirements?
2026-02-24 09:44:16 <tomsmeding> dminuoso: even if there is a maximal element of the entire set, that does not necessarily mean there is a _unique_ smallest upper bound of any subset of the set

All times are in UTC.