00:51:11  * mmun____quit (Read error: Connection reset by peer)
00:51:30  * mmun____joined
00:51:37  * ystartsevquit (Ping timeout: 258 seconds)
00:51:37  * rkirslingquit (Ping timeout: 258 seconds)
00:51:51  * rkirslingjoined
00:52:00  * Wizekquit (Ping timeout: 258 seconds)
00:52:07  * ystartsevjoined
00:53:57  * Wizekjoined
01:14:35  * laughinghanjoined
01:14:59  * laughinghanquit (Client Quit)
01:16:24  * laughinghanjoined
01:25:30  * AtumTquit (Quit: AtumT)
01:31:33  * Jessidhiajoined
02:01:25  * cybaiquit (Read error: Connection reset by peer)
02:02:07  * cybaijoined
02:33:33  * laughinghanquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
02:45:51  * keith_mi_quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
04:11:41  * jmdyckquit (Remote host closed the connection)
06:08:09  * samth_joined
06:08:19  * maggie____joined
06:08:27  * alextes_joined
06:08:28  * jschoi__joined
06:08:29  * ryzokuken_joined
06:08:32  * tobie_joined
06:08:36  * aklein_joined
06:11:01  * khyjoined
06:15:51  * tobiequit (*.net *.split)
06:15:51  * jschoi_quit (*.net *.split)
06:15:51  * ryzokukenquit (*.net *.split)
06:15:51  * maggie___quit (*.net *.split)
06:15:51  * akleinquit (*.net *.split)
06:15:53  * alextesquit (*.net *.split)
06:15:53  * samthquit (*.net *.split)
06:15:53  * khyperiaquit (*.net *.split)
06:15:53  * pandemquit (*.net *.split)
06:15:58  * alextes_changed nick to alextes
06:15:58  * ryzokuken_changed nick to ryzokuken
06:15:58  * tobie_changed nick to tobie
06:15:58  * aklein_changed nick to aklein
06:15:58  * samth_changed nick to samth
06:22:48  * pandemjoined
06:26:15  * keith_mi_joined
07:13:18  * akoserwa|wfhjoined
07:13:19  * GarlicJrjoined
07:47:21  * mgoljoined
08:26:53  * GarlicJrquit (Remote host closed the connection)
08:56:49  * mgolquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:58:16  * mgoljoined
09:14:43  * itamarokjoined
09:34:11  * shachafjoined
09:40:36  * kpattichajoined
09:42:08  * itamarokquit (Remote host closed the connection)
09:43:05  * itamarokjoined
10:02:30  * itamarokquit (Remote host closed the connection)
10:02:58  * itamarokjoined
10:39:13  * jmdyckjoined
10:43:37  * mgolquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:44:46  * mgoljoined
10:52:49  * itamarokquit (Remote host closed the connection)
10:58:36  * itamarokjoined
11:03:02  * cloudshujoined
11:21:27  * itamarokquit (Remote host closed the connection)
11:21:47  * itamarokjoined
11:36:17  * itamarokquit (Remote host closed the connection)
11:36:51  * itamarokjoined
11:41:22  * itamarokquit (Ping timeout: 268 seconds)
11:50:54  * itamarokjoined
11:52:09  * itamarokquit (Remote host closed the connection)
11:52:45  * itamarokjoined
12:03:14  * cybaiquit (Remote host closed the connection)
12:05:24  * mgolquit (Read error: Connection reset by peer)
12:05:30  * m_goljoined
12:40:48  * isHavvyjoined
12:41:10  * Havvyquit (Ping timeout: 246 seconds)
13:32:31  * gibson042joined
13:48:43  * kpattichaquit (Ping timeout: 246 seconds)
14:02:56  * kpattichajoined
14:15:55  * akoserwa|wfhquit (Quit: Leaving)
14:25:02  * khychanged nick to khyperia
14:59:06  * m_golquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:00:13  * mgoljoined
15:02:11  * kpattichaquit (Remote host closed the connection)
15:02:35  * kpattichajoined
15:05:41  * kpattich_joined
15:06:46  * kpattichaquit (Ping timeout: 246 seconds)
15:24:55  * Nimelrianjoined
15:28:24  * keith_mi_quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:46:00  * itamarokquit (Remote host closed the connection)
15:50:13  * keith_mi_joined
15:52:59  * itamarokjoined
16:00:56  * cybaijoined
16:19:34  * kpattich_quit (Ping timeout: 246 seconds)
16:39:24  * cybaiquit (Read error: Connection reset by peer)
16:40:03  * cybaijoined
16:45:19  * jgijoined
16:55:47  * laughinghanjoined
17:01:15  * cybaiquit (Read error: Connection reset by peer)
17:01:49  * cybaijoined
17:07:22  * cybaiquit (Remote host closed the connection)
17:17:47  * gcommerquit (Quit: ZNC - 1.6.0 - http://znc.in)
17:29:30  * itamarokquit (Remote host closed the connection)
17:30:04  * itamarokjoined
17:30:30  * gcommerjoined
17:34:13  * itamarokquit (Ping timeout: 245 seconds)
17:44:51  * itamarokjoined
17:45:10  * AtumTjoined
17:47:19  * basicdaysjoined
18:11:44  * itamarokquit (Remote host closed the connection)
18:12:19  * itamarokjoined
18:16:43  * itamarokquit (Ping timeout: 245 seconds)
18:23:42  * khyperiaquit (Quit: kernel updoots)
18:25:30  * khyperiajoined
18:38:54  * mgolquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:47:27  * itamarokjoined
18:51:49  * itamarokquit (Ping timeout: 246 seconds)
18:56:37  * gibson042quit (Quit: Leaving.)
19:12:16  * cybaijoined
19:21:06  * jwaldenjoined
19:22:41  * mgoljoined
19:37:34  * laughinghanquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
20:00:32  * gibson042joined
20:08:54  * Nimelrianquit (Ping timeout: 258 seconds)
20:38:05  * laughinghanjoined
20:42:27  * laughinghanquit (Client Quit)
20:48:57  * kpattich_joined
21:00:43  * laughinghanjoined
21:32:02  * kpattich_quit (Ping timeout: 272 seconds)
22:00:36  <devsnek>mathiasbynens: given an array of numbers, do you know what the difference between `sort()` and this sort function are? https://gist.github.com/devsnek/ffab4d437816cbaf169d7f93d259ce72
22:04:05  <devsnek>what i'd like to be able to do is duplicate the behaviour of that sorting function without having to convert things to strings
22:05:27  <ljharb>devsnek: `return a - b`?
22:05:47  <devsnek>isn't that already how sort() works?
22:06:06  <ljharb>i think sort's default is `return String(b).localeCompare(a)` or something
22:06:33  <ljharb>otherwise it'd sort `[1, 10, 2]` into `[1, 2, 10]` instead of leaving it untouched
22:06:57  <devsnek>wow
22:07:01  <ljharb>oh wait `String(a).localeCompare(b)`
22:07:03  <devsnek>i didn't realize sorting was this broken lol
22:07:08  <ljharb>it's not broken
22:07:21  <ljharb>( `[1, 10, 2].sort()` is the same as `[1, 10, 2].sort((a, b) => String(a).localeCompare(b))`)
22:07:37  <devsnek>not literally broken
22:07:45  <ljharb>devsnek: either the comparator had to be required, or some default had to be chosen; string is a much more sensible default than number
22:08:02  <ljharb>imo it'd be much nicer if the comparator was required, but here we are
22:08:15  <devsnek>in slither i choose the sorting system based off the first item
22:08:48  <ljharb>that means `[1, '10']` and `['10', 1]` sort differently, that seems super surprising to me
22:09:08  <devsnek>well it throws if it tries to compare two elements that aren't the same type
22:09:13  <devsnek>oh well
22:09:15  <ljharb>you could pick the mode of the types
22:09:38  <ljharb>but the reality is that if they're not all the same type, you either have to pick something (that will be super broken for many use cases) or throw
22:09:42  <rkirsling>devsnek: that would be really bad default behavior for a dynamic language though 😱
22:09:54  <devsnek>would it?
22:09:57  <ljharb>yes
22:10:11  <devsnek>how often to you try to sort heterogeneous arrays
22:10:34  <rkirsling>I know but shouldn't and can't are very different
22:10:57  <devsnek>if you want to sort between things that aren't the same type use a comparison function 🤷
22:11:15  <ljharb>devsnek: right but then you should throw before ever invoking the function
22:11:26  <devsnek>hmm using a - b still didn't work
22:11:33  <ljharb>b - a?
22:11:46  <devsnek>oh wait is that
22:12:06  <devsnek>lol
22:12:18  <ljharb>comparators are like USB A connectors for me, whichever way i try it first is always wrong
22:12:26  <devsnek>yea
22:13:19  <devsnek>yeah just doing number sort doesn't produce the same output
22:14:28  <devsnek>probably has to do with the conversion and stuff with strings
22:20:39  <rkirsling>hmm, I guess I forgot that Python separates the types
22:20:56  <rkirsling>>>> sorted(['hi', 1, 10, 2])
22:20:56  <rkirsling>[1, 2, 10, 'hi']
22:23:07  <devsnek>i have that partially, to sort object keys
22:34:52  * gibson042quit (Quit: Leaving.)
22:42:44  * mgolquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
22:45:45  * mgoljoined
22:57:15  * mgolquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
23:33:10  * mgoljoined
23:39:32  * mgolquit (Quit: My MacBook has gone to sleep. ZZZzzz…)