Config
Log for #openttd on 21st June 2017:
Times are UTC Toggle Colours
00:17:01  *** Wolf01 has quit IRC
01:17:56  *** Bhootrk_ has joined #openttd
01:19:05  *** Bhootrk_ has quit IRC
01:19:23  *** Bhootrk_ has joined #openttd
01:20:53  *** Bhootrk_ has joined #openttd
01:29:05  *** Bhootrk_ has quit IRC
01:54:30  *** Flygon has joined #openttd
02:48:46  *** glx has quit IRC
03:22:42  *** sla_ro|master has joined #openttd
04:31:29  *** gnu_jj_ has joined #openttd
04:32:57  *** gnu_jj has quit IRC
04:42:48  *** sla_ro|master has quit IRC
04:57:34  *** Cubey has quit IRC
05:33:34  *** cosmobird has joined #openttd
05:59:08  *** andythenorth has joined #openttd
06:07:16  *** andythenorth has quit IRC
06:26:59  *** andythenorth has joined #openttd
06:31:41  *** cosmobird_ has joined #openttd
06:38:05  *** cosmobird has quit IRC
06:51:36  *** andythenorth has quit IRC
07:39:11  *** Cybertinus has joined #openttd
07:41:03  *** cosmobird_ has quit IRC
07:43:25  *** Cybertinus has quit IRC
07:48:01  *** FLHerne has joined #openttd
07:50:07  *** JacobD88 has joined #openttd
07:57:42  *** Cybertinus has joined #openttd
07:58:37  *** andythenorth has joined #openttd
07:59:14  *** Wolf01 has joined #openttd
08:01:35  <Wolf01> o/
08:18:27  *** JacobD88 has quit IRC
08:27:53  *** andythenorth has left #openttd
08:29:17  *** Lejving_ has quit IRC
08:40:58  *** JacobD88 has joined #openttd
08:45:10  <Wolf01> Mmmmh, I think I need to purchase some Blues Saraceno albums
09:00:23  *** Lejving has joined #openttd
09:08:10  *** JacobD88 has quit IRC
09:12:14  *** FLHerne has quit IRC
09:34:00  *** cosmobird has joined #openttd
09:57:51  *** cosmobird_ has joined #openttd
10:04:22  *** cosmobird has quit IRC
10:16:43  <V453000> lol slugs
10:29:01  *** Warrigal_ has quit IRC
10:29:02  *** Warrigal has joined #openttd
11:14:23  *** mindlesstux has quit IRC
11:14:56  *** mindlesstux has joined #openttd
11:52:26  *** FLHerne has joined #openttd
12:01:22  *** cosmobird__ has joined #openttd
12:07:43  *** cosmobird_ has quit IRC
12:24:11  *** sla_ro|master has joined #openttd
13:19:18  *** cosmobird_ has joined #openttd
13:25:28  *** cosmobird__ has quit IRC
13:53:39  *** sim-al2 has quit IRC
14:06:27  *** Flygon has quit IRC
14:27:12  *** FLHerne has quit IRC
14:28:42  *** Alberth has joined #openttd
14:28:42  *** ChanServ sets mode: +o Alberth
14:29:23  *** FLHerne has joined #openttd
14:31:27  *** Wormnest has joined #openttd
14:46:46  *** Cubey has joined #openttd
15:04:48  *** Coobies has joined #openttd
15:08:18  *** Markk has quit IRC
15:08:19  *** Belugas has quit IRC
15:08:46  *** Belugas has joined #openttd
15:08:46  *** ChanServ sets mode: +o Belugas
15:09:38  *** Sheogorath has quit IRC
15:10:29  *** efess has quit IRC
15:11:13  *** efess has joined #openttd
15:11:39  *** Cubey has quit IRC
15:12:56  *** frosch123 has joined #openttd
15:14:42  *** Sheogorath has joined #openttd
15:17:31  <Alberth> hola
15:19:16  <planetmaker> o/
15:25:18  <frosch123> moi
15:38:11  <supermop> yo
15:54:38  *** TheMask96 has quit IRC
15:55:16  *** TheMask96 has joined #openttd
16:08:34  *** FLHerne has quit IRC
16:08:55  *** FLHerne has joined #openttd
16:16:22  *** Progman has joined #openttd
16:18:39  *** Markk has joined #openttd
16:44:54  *** HerzogDeXtEr has joined #openttd
17:05:29  *** glx has joined #openttd
17:05:29  *** ChanServ sets mode: +v glx
17:14:09  *** gelignite has joined #openttd
17:27:16  *** Compu has quit IRC
17:28:54  *** Compu has joined #openttd
17:38:13  <Alberth> LordAro:  Please fix the Compare(x, x) -> true  first, that should never happen, it does that in all compare functions for the first 600 lines patch-file
17:40:33  <LordAro> Alberth: huh, you mean a<=b instead of a<b ?
17:40:52  <Alberth> I mean _reverse != (a<a)
17:41:22  <Alberth> for one value of {false, true} that gives true
17:43:47  *** JacobD88 has joined #openttd
17:47:58  <frosch123> if the comparator returns true for a<a, it may result in an infinite loop
17:48:42  <frosch123> at least for the implementation that came with g++ 4.1
17:49:04  <frosch123> no idea whether someone made it more robust
17:49:14  *** Smedles has quit IRC
17:50:10  *** Smedles has joined #openttd
17:55:27  <Alberth> ha, found alcohol cargo in arctic basic :)
18:06:28  *** FLHerne has quit IRC
18:08:37  *** andythenorth has joined #openttd
18:10:13  <Alberth> o/
18:10:48  <andythenorth> hi hi
18:11:52  *** debdog has quit IRC
18:13:03  *** debdog has joined #openttd
18:14:06  *** APTX_ has joined #openttd
18:14:50  *** APTX has quit IRC
18:20:04  *** APTX_ has quit IRC
18:20:17  *** APTX has joined #openttd
18:22:47  *** Biolunar has joined #openttd
18:25:30  *** FLHerne has joined #openttd
18:25:34  *** APTX has quit IRC
18:26:37  *** APTX has joined #openttd
18:33:09  *** DDR has joined #openttd
18:37:14  <LordAro> Alberth: hmm
18:39:15  <LordAro> Alberth: i feel like there should be a cleaner way of doing _reverse ? !r : r
18:40:15  <LordAro> which still wouldn't actually fix the issue, would it?
18:41:02  <LordAro> a!=b && _reverse ? !(a<b) : (a<b) then
18:43:26  <Alberth> something like that, but I doubt it counts as cleaner :)
18:44:10  <Alberth> if (r == 0) return false; return _reverse != (r < 0);
18:45:20  <Alberth> you can fold that in a function of course
18:46:08  <Alberth> the subtle change is  that -0 == 0, but b != !b
18:50:33  *** Stimrol has joined #openttd
18:58:18  *** cosmobird__ has joined #openttd
19:04:40  *** cosmobird_ has quit IRC
19:20:24  *** Stimrol has quit IRC
19:20:59  *** Maarten has quit IRC
19:21:17  *** andythenorth has quit IRC
19:22:00  *** FLHerne has quit IRC
19:24:01  *** Stimrol has joined #openttd
19:24:49  <LordAro> aye
19:25:30  <LordAro> actually
19:26:03  <LordAro> for most of the functions if a == b, then they go via a "lower level" sorting function instead
19:26:20  <LordAro> so this issue is moot?
19:39:09  <Alberth> except for the lowest compare, which was the case for at least the compare functions in the first 600 lines of the patch
19:39:28  <Alberth> at that point I stopped reading, so there may be more
19:39:32  <LordAro> yeah
19:41:40  <Alberth> my sort of standard approach is     if (a.x != b.x) return a.x < b.x;  if (a.y != b.y) return a.y < b.y; /* etc *; return false;   ie test each field for equality first
19:43:45  *** Gja has joined #openttd
19:44:17  <LordAro> hmm, i can't just do a basic a != b check, can i? i have to check that the test the function does is equal
19:44:52  <LordAro> because (e.g.) a != b, but a->foo == b->foo may be the case
19:45:19  * LordAro wonders how a == b could cause an infinite loop
19:45:30  <Alberth> bool operator==(T &x, T& y) { .. }
19:45:46  <Alberth> repeatedly swapping the values
19:46:11  <LordAro> ah, makes sense
19:47:20  <LordAro> would std::stable_sort avoid this problem all together?
19:47:21  <Alberth> probably depends on some detail in the implementation
19:47:46  <Alberth> no, since (a<a) must return false
19:48:02  <Alberth> it returns true in some cases, so you're in undefined waters
19:48:34  *** FLHerne has joined #openttd
19:48:41  <LordAro> right, yeah
19:49:29  *** frosch123 has quit IRC
19:49:33  <Alberth> sometimes it's useful to have this special 0 value   :)
19:52:08  * LordAro sits in a corner in a huff
19:56:31  <Alberth> it's too warm :p
19:56:35  <LordAro> damn right
19:57:41  <Alberth> stop doing stuff this evening, and tomorrow insert an equality test
19:59:20  <LordAro> but i've just finished :p https://gist.github.com/LordAro/760063761dc46bacb0c37576c296361a (updated)
19:59:34  <Alberth> :O
20:00:16  <LordAro> hehe, diffs of diffs are always fun
20:01:07  <Alberth> I tried that a few times to save the mq state, but it's too complicated to read :)
20:01:31  <LordAro> i used to do it quite a bit for the 32bpp patches
20:01:32  <Alberth> you have to be really awake for that stuff :p
20:01:35  <LordAro> aye
20:01:53  *** sla_ro|master has quit IRC
20:02:55  <Alberth> but it has its uses, like checking that you copied each hunk of a patch (only different line numbers thus)
20:10:41  *** JacobD88 has quit IRC
20:17:23  <Alberth> nn
20:17:49  *** Alberth has left #openttd
20:21:05  *** sim-al2 has joined #openttd
20:38:40  *** andythenorth has joined #openttd
20:56:58  *** andythenorth has quit IRC
20:58:34  *** FLHerne has quit IRC
21:00:31  *** quiznilo has quit IRC
21:01:58  *** quiznilo has joined #openttd
21:04:42  *** Gja has quit IRC
21:04:42  *** FLHerne has joined #openttd
21:05:09  *** andythenorth has joined #openttd
21:05:39  <supermop> yo
21:09:04  *** Gja has joined #openttd
21:10:45  *** gelignite has quit IRC
21:21:19  *** Progman has quit IRC
21:22:07  <andythenorth> lo supermop
21:23:32  <supermop> how goes
21:24:40  <andythenorth> hot
21:39:34  *** HerzogDeXtEr has quit IRC
21:40:37  <supermop> here auch
21:42:46  <andythenorth> also bedtime
21:42:47  *** andythenorth has left #openttd
21:53:30  <Wolf01> Back o/
22:01:40  *** Gja has quit IRC
22:02:18  *** Wormnest has quit IRC
22:06:11  *** tokai|noir has joined #openttd
22:06:11  *** ChanServ sets mode: +v tokai|noir
22:08:42  *** Biolunar has quit IRC
22:12:58  *** tokai has quit IRC
22:20:14  *** cosmobird__ has quit IRC
22:45:58  *** Maarten has joined #openttd
23:06:23  *** Stimrol has quit IRC
23:56:11  *** quiznilo has quit IRC
23:56:22  *** FLHerne has quit IRC
23:59:19  *** Snail has joined #openttd

Powered by YARRSTE version: svn-trunk