Log for #openttd on 6th June 2018:
Times are UTC Toggle Colours
00:05:03  *** JacobD88 has quit IRC
00:23:14  *** KouDy has joined #openttd
00:49:53  *** chomwitt has quit IRC
00:53:18  *** rocky1138 has joined #openttd
00:59:57  *** Supercheese has quit IRC
01:23:11  *** Wolololol has joined #openttd
01:34:13  * LANJesus turns from red to blue
01:44:30  *** Thedarkb-X40 has joined #openttd
01:46:00  *** Wolololol has quit IRC
02:06:41  *** Flygon has joined #openttd
02:42:47  *** glx has quit IRC
02:52:51  *** muffindrake2 has joined #openttd
02:54:42  *** muffindrake1 has quit IRC
03:03:35  *** ToffeeYogurtPots_ has joined #openttd
03:05:33  *** ToffeeYogurtPots has quit IRC
04:11:14  *** chomwitt has joined #openttd
04:23:08  *** chomwitt has quit IRC
05:30:02  *** cHawk has quit IRC
05:32:54  *** cHawk has joined #openttd
05:41:33  *** cHawk has quit IRC
05:57:47  *** Thedarkb-X40 has quit IRC
06:12:41  *** andythenorth has joined #openttd
06:19:07  *** HeyCitizen_ has quit IRC
06:27:02  *** Wacko1976 has quit IRC
06:31:20  *** HeyCitizen has joined #openttd
06:33:29  *** HeyCitizen_ has joined #openttd
06:39:43  *** HeyCitizen has quit IRC
06:45:47  *** Cubey has quit IRC
06:51:14  <peter1138> hm
06:53:02  <andythenorth> yes
06:54:21  <LordAro> maybe
07:00:01  <peter1138> hehe, home via pub. 21m moving time, 4 hours total :p
07:00:46  <peter1138> Fortunately I leave work a bit too early to consider stopping at pubs.
07:03:55  *** sla_ro|master has joined #openttd
07:04:14  *** ToBeFree has joined #openttd
07:05:52  <andythenorth> ha ha commits :)
07:11:55  <LordAro> peter1138: :p
07:14:28  *** ToBeFree has quit IRC
07:27:13  *** andythenorth has quit IRC
08:05:14  *** andythenorth has joined #openttd
08:16:43  <peter1138> Hmm, Conquest Reforged looks interesting.
08:16:53  <peter1138> Also way too many added blocks.
08:23:21  *** andythenorth has quit IRC
09:06:02  *** andythenorth has joined #openttd
10:20:44  <LordAro> peter1138: pretty sure that's the fastest PR yet
10:21:45  <andythenorth> is someone data mining stats? o_O
10:21:51  <andythenorth> we could have a league table
10:21:56  <andythenorth> meta-game in the meta-game :P
10:29:05  <peter1138> LordAro, was thinking that :)
10:29:18  <andythenorth> good eh
10:29:42  <peter1138> LordAro, it was simple enough I didn't need to do any testing... and the CI makes sure it compiles so no worries there.
10:29:45  <andythenorth> patchpack by a good author > cherrypick improvements > stronger core
10:29:55  <peter1138> Yes
10:29:58  <andythenorth> stronger core > more better patchpacks
10:30:12  <andythenorth> singularity
10:30:20  <peter1138> Althoguh
10:30:42  <peter1138> Now it can't be built. What?
10:31:12  <andythenorth> how rude
10:31:52  <LordAro> ono
10:31:58  <peter1138> "Notifies GitHub of the status of a Pull Request"
10:32:02  <peter1138> is Red.
10:32:03  <peter1138> Hmm
10:32:37  <peter1138>
10:32:43  <peter1138> I don't think I touched any of that!
10:33:14  <LordAro> looks like it all compiled anyway..
10:33:25  <LordAro> #blameTB
10:33:31  <peter1138> Oh those warnings are there anyway. Hmm.
10:34:10  <LordAro> did you merge before the CI completed?
10:34:22  <LordAro> if the error is it trying to notify on a merged PR
10:34:31  <LordAro> wonder if*
10:34:32  <peter1138> Is that possible? o_O
10:34:45  <LordAro> ¯\_(ツ)_/¯
10:35:34  <peter1138> Maybe I did.
10:35:46  <peter1138> If it's possible. Hmm.
10:35:59  <peter1138> TrueBrain, i broke it ;(
10:43:27  <peter1138> 11:20 < LordAro> peter1138: pretty sure that's the fastest PR yet
10:43:38  <peter1138> Not so good now ;(
10:43:40  <LordAro> :(
10:43:48  <LordAro> PR ci passed though
10:43:56  <LordAro> clearly it's MS breaking things
10:44:14  <peter1138> Must be, github isn't even loading for me now.
10:44:18  <peter1138> Maybe I've been permabanned.
10:46:45  *** sla_ro|master has quit IRC
10:49:25  <peter1138> "The connection to was interrupted while the page was loading." :)
10:54:26  *** andythenorth has quit IRC
11:05:27  *** andythenorth has joined #openttd
11:16:05  *** chomwitt has joined #openttd
11:20:07  <peter1138> dbg: [grf] Base music set song missing from CAT file:
11:20:12  <peter1138> Is that necessary?
11:23:24  <peter1138> Strava says I'm 1527 miles behind pace :(
11:23:28  <peter1138> Don't think I'll catch that up.
11:24:02  <andythenorth> take a week off
11:25:51  <peter1138> Need more than a week for that.
11:26:10  <LordAro> peter1138: pace compared to what?
11:26:12  <LordAro> last year?
11:26:16  <peter1138> Yearly target.
11:26:30  <peter1138> This year I did much more MTB riding.
11:26:44  <peter1138> Distance isn't everything :)
11:27:32  <LordAro> indeed
11:27:54  <LordAro> i'm on 1.3k miles this year
11:28:04  <LordAro> ehich i'm guessing is a long way behind you :p
11:28:54  <peter1138> Not much, I'm on 1947.
11:29:20  <andythenorth> I reckon I've done at least 100 miles this year
11:30:06  <peter1138> Well done.
11:31:25  <peter1138> I did 8000 in 2016, but only 6900 in 2017.
11:31:53  <LordAro> nice.
11:32:27  <LordAro> my all time is only 6k :p
11:33:35  <LordAro> need to get my bike serviced, i'm just shy of 2k on it, with original tyres & chainset
11:41:48  <peter1138> Should be fine.
11:43:21  <peter1138> My road bike did 6000 on just 2 chains.
11:43:40  <andythenorth> mine is probably 2k on original tyres and chain
11:43:56  <peter1138> Parts wear but if they're still working I don't see the point of replacing them.
11:44:07  <andythenorth> tyres are slammed because of cobbles, they have cracks all round
11:44:08  <andythenorth> but eh
11:45:13  <peter1138> If the tyres are cracked that just means they're old, nothing to do with holes.
11:46:32  <andythenorth> that too
11:46:42  <andythenorth> but in our office we liked to blame the cobbles
11:46:43  <andythenorth> :P
11:47:11  <LordAro> peter1138: thry're starting to not :p
11:47:43  <LordAro> chain is definitely stretching, hanger is bent, and i can't get the dereileur alignment right anyway
11:47:43  <peter1138> Well, at 2k just a new chain should suffice.
12:40:41  <LordAro> peter1138: you fixed it \o/
12:42:20  <Eddi|zuHause> i technically have a bike i got as a kid in 1991-ish
12:42:36  <Eddi|zuHause> i don't think that is usable
12:46:53  <andythenorth>$_86.JPG
12:47:00  <andythenorth> ^ 1991 ish my boke
12:47:02  <andythenorth> bike *
12:47:22  <Eddi|zuHause> well, mine was probably a lot cheaper :p
12:47:22  <andythenorth> in retrospect it was crap, but I loved it at the time
12:50:14  <andythenorth> then I got this
12:50:22  <andythenorth> which was also crap, but I didn't know it at the time
12:57:23  *** cHawk has joined #openttd
13:04:00  <Eddi|zuHause> if i were looking for a new bike, how would i find one that isn't crap?
13:04:35  <Eddi|zuHause> (also, let's keep it below 4 digits)
13:11:54  <peter1138> You'd need to research the frame and components
13:13:12  <LordAro> find nearest cycle shop, go talk to them
13:13:14  <LordAro> done
13:14:08  *** _dp_ has quit IRC
13:14:22  <peter1138> That
13:14:39  *** dP has joined #openttd
13:14:40  *** dP is now known as _dp_
13:16:26  <LordAro> peter1138: i'd probably say it's not worth worrying about individual components if your bike is below 4 digits
13:16:41  <LordAro> premature optimisation and all that
13:17:01  <peter1138> Probably not.
13:17:54  <Eddi|zuHause> well, it'd be weird if my bike was more expensive than my car?
13:18:00  *** Thedarkb-X40 has joined #openttd
13:18:30  <peter1138>
13:18:33  <peter1138> Eddi|zuHause, not really.
13:18:50  <peter1138> Weird for maybe :)
13:19:28  <peter1138> I think my 18 year old car is probably worth less than my MTB.
13:21:26  <Eddi|zuHause> peter1138: it would be way better if they were writing the kernel in modern languages that don't need specs
13:23:00  <peter1138> heh
13:23:15  <peter1138> andythenorth, you know, livery overrides also remove wagon speed limits?
13:23:17  *** Thedarkb has quit IRC
13:24:35  <peter1138> andythenorth, this may not be known and isn't visible in the build vehicle gui.
13:24:47  <andythenorth> what are 'livery overrides'? :P
13:25:01  <peter1138> Very important part of the newgrf spec.
13:25:13  <andythenorth> orly
13:25:18  <andythenorth> I never figured out how to use them
13:25:22  <Eddi|zuHause> if you were making a grf 10 years ago...
13:25:24  <andythenorth> they seem super-complicated tbh
13:25:50  <peter1138> if ((rvi_u->railveh_type != RAILVEH_WAGON || _settings_game.vehicle.wagon_speed_limits) && !UsesWagonOverride(u))
13:25:53  <Eddi|zuHause> it's not really complicated
13:26:02  <peter1138> ^ if condition just before checking the wagon speed limit.
13:26:06  <Eddi|zuHause> it's just the quickest hack available
13:26:18  <Eddi|zuHause> before wagons had all sorts of varaction2 capabilities
13:26:18  <peter1138> Heavily used by DBSetXL.
13:26:29  <peter1138> And probably UKRS, etc.
13:26:41  <peter1138> Maybe NARS, I never played that that much to tell though.
13:26:44  <Eddi|zuHause> dbsetxl is now what? 13 years ago?
13:27:19  <peter1138> Just as well we're not Apple, else it would never work.
13:27:56  <Eddi|zuHause> wagon override is how the dbset gets away with just having a 160km/h wagon, but some engines go 200km/h or more
13:48:38  *** Mahjong1 has joined #openttd
13:52:43  *** nielsm has joined #openttd
13:53:38  *** Mahjong has quit IRC
13:55:31  *** henry has joined #openttd
14:20:08  *** Alberth has joined #openttd
14:20:08  *** ChanServ sets mode: +o Alberth
14:21:11  *** henry is now known as m3henry
14:22:03  *** TheHawk has joined #openttd
14:29:12  *** cHawk has quit IRC
14:29:18  *** Thedarkb-X40 has quit IRC
14:31:28  <m3henry> With the move to GitHub, are we any closer to being able to compile C++11/14/17 for all targets?
14:34:48  <Eddi|zuHause> i don't think those things are related
14:34:50  <peter1138> Are the two related?
14:34:51  <peter1138> Heh
14:35:10  <m3henry> I was reading through the logs of the past few days
14:35:23  <m3henry> and saw some mentions of CI
14:35:43  <Alberth> how is that related to the programming language you use?
14:36:45  <m3henry> Because I recall the reason C++11 isn't currently accepted to OpenTTD code is that the Build Server isn't up to date
14:37:01  <m3henry> And mentions of CI indicate to me that this may have been replaced
14:37:32  <peter1138> Who says it's not accepted?
14:40:01  <m3henry> I suppose I'm remembering incorrectly then
14:41:55  <m3henry> So pull requests are the preferred method of submission these days I assume?
14:42:58  <LordAro> technically speaking yes, the new compile farm was unrelated to moving to github
14:43:06  <LordAro> in practice, it was done at the same time
14:44:48  *** supermop_work has quit IRC
15:00:33  *** KouDy has quit IRC
15:02:19  *** KouDy has joined #openttd
15:03:17  *** TheMask96 has quit IRC
15:06:16  <Alberth> I think pull requests are the only accepted form :)
15:06:44  <andythenorth> can the topic include how many PRs open, how many closed last 30 days? o_O
15:07:20  *** TheMask96 has joined #openttd
15:10:33  *** tokai|noir has joined #openttd
15:10:33  *** ChanServ sets mode: +v tokai|noir
15:17:23  *** tokai has quit IRC
15:29:55  <nielsm> I'm constantly weirded out by how clicking "exit" on the main menu somehow triggers a but of extra DLL loads on windows
15:30:42  <nielsm> only really visible after various system files have been updated and the symbol cache for those needs to download new PDB files
15:30:46  <peter1138> dbg: [grf] Base music set song missing from CAT file:
15:30:52  <peter1138> Is that message necessary every time?
15:31:51  <nielsm> hmm probably not...
15:32:15  <nielsm> ought to raise that to level 1
15:32:49  <peter1138> Does it need a message?
15:33:39  *** supermop_work has joined #openttd
15:34:34  <peter1138> There's no missing files message from missing graphics or sound basesets.
15:39:58  <nielsm> yeah it shouldn't complain if the CAT file is missing entirely, only if you specify an index into it that doesn't exist
15:40:16  <nielsm> I'll make a fix for that
15:46:04  *** Wormnest has joined #openttd
15:56:11  <peter1138> m3henry, we have commit-message style rules that need to be followed.
15:57:38  <m3henry> okay
16:11:11  <m3henry> Looks like doing a force push updates the pull request
16:11:31  <andythenorth> it's the recommended technique
16:11:39  *** Gja has joined #openttd
16:11:56  <nielsm> yep get used to rebasing and force pushing when working on this
16:12:10  <m3henry> I've only ever used git send-email for open source collaborating
16:12:24  <m3henry> woo linux kernel
16:12:53  <andythenorth> force push is definitely not conventional everywhere :)
16:14:01  <m3henry> I do wish that git pull defaulted to either --no-ff or --rebase rather than merging
16:14:18  <m3henry> I know it can be aliased
16:14:28  *** synchris has joined #openttd
16:14:36  <m3henry> But it's just a pain when I forget to set it up
16:15:57  <andythenorth> if you haven't seen it btw...
16:17:01  *** Cubey has joined #openttd
16:17:06  <m3henry> Yeah I just read that
16:23:34  <nielsm> michi_cc I'm going to need your help with the new dmusic driver :) re. this branch - the dmusic driver's preload prevents mostly-smooth looping on the title screen as far as I can tell, the calculated timeout in dmusic.cpp:745 seems to make it just skip past the end-of-song override check
16:28:35  <LordAro> m3henry: pretty sure there some config you can set somewhere...
16:29:29  <m3henry> pull.ff = only
16:30:37  <m3henry> or pull.rebase = true
16:31:22  <m3henry> I was merely grumbling at poor defaults :3
16:31:42  <LordAro> :p
16:35:26  *** m3henry has quit IRC
16:37:02  * andythenorth did a pr :P
16:37:28  <LordAro> wut
16:37:41  <andythenorth>
16:37:53  <andythenorth> waiting for builds to complete :P
16:37:58  <andythenorth> hope I didn't break them
16:40:34  *** Stimrol has joined #openttd
16:43:28  <peter1138> Why does git on Windows do this to me?
16:43:58  <peter1138> git status tells me a file is modified, git diff tells me not.
16:44:35  <LordAro> line endings?
16:44:45  <LordAro> you've added autocrlf to your config, i hope?
16:51:16  *** m3henry has joined #openttd
16:51:22  <m3henry> bak
16:52:04  <andythenorth> peter1138: something else comes by and touches metadata? o_O
16:52:11  <andythenorth> or you're holding it wrong? o_O
16:52:41  <andythenorth> "hodling it wrong" :P
16:52:47  <andythenorth> world ends
16:55:30  *** gelignite has joined #openttd
16:55:31  <peter1138> m3henry, hmm, any way to make the helper functions be in a template class that can be used instead of std::vector directly? I wonder if that is more desirable than standalone functions.
16:57:33  <LordAro> template <typename T> class Vector : std::vector<T> {...}  sort of thing?
16:58:11  <peter1138> Something like that?
16:58:39  <LordAro> ideally you wouldn't need nearly as many of those helper functions, i think
16:58:42  <LordAro> especially Extend
16:58:43  <peter1138> Seems a bit strange to have these standalone functions. Not very C++ like :-)
16:58:57  *** Gja has joined #openttd
16:59:32  <peter1138> I think Find() doesn't need to exist.
16:59:54  <LordAro> mm, i'd have no issues with std::find being scattered throughout the code
16:59:56  <peter1138> Hmm, I see, other stuff uses them.
17:02:02  <peter1138> If it was a template class then stuff like change wouldn't be needed.
17:04:18  *** Progman has joined #openttd
17:09:15  <LordAro> or, if (std::find(list->keycodes.begin(), list->keycodes.end(), [keycode, global_only](uint16 k){return k == static_cast<uint16>(keycode | WKC_GLOBAL_HOTKEY) || (!global_only && k == keycode); }) != list->keycodes.end()) { return list->num };
17:09:19  <LordAro> hmm.
17:09:22  *** Wolf01 has joined #openttd
17:09:36  <peter1138> It's a little verbose.
17:09:40  <Wolf01> o/
17:10:29  <LordAro> i *guess*
17:10:37  <LordAro> only one pass through each list though
17:10:47  <LordAro> better performance!
17:11:29  <LordAro> also
17:12:14  *** sla_ro|master has joined #openttd
17:14:40  * Rubidium wonders is push_back is still copying data
17:16:56  <Alberth> you'd hope compilers would know about that by now
17:17:41  <Rubidium> well, the copying behaviour was AFAIR the whole reason to not go with it, but that might've changed (not sure though)
17:18:47  <Alberth> emplace_back is also c++11
17:19:12  <Alberth>
17:21:54  *** andythenorth has quit IRC
17:21:58  <LordAro> ^
17:23:01  *** Thedarkb has joined #openttd
17:24:40  <m3henry> I was aiming to keep the existing names that SmallVector had, to ease transition
17:27:36  <m3henry> Rubidium: push back() can do copy or a move: Appends the given element value to the end of the container. (1) The new element is initialized as a copy of value. (2) value is moved into the new element.
17:27:57  <Alberth> keeping existing semantics is more valuable than keeping a name, probably
17:29:33  <Alberth> ie Append was needed to get emplace_back behavior before that was standardised
17:30:14  <m3henry> well if plain vector would be preferred, than I could do that instead
17:31:41  <Alberth> eventually you'd end with a plain vector, wouldn't you?
17:32:40  <Alberth> so eventually names are going to change?
17:33:34  <Alberth> what transition is difficult by doing that directly?
17:35:49  *** m3henry-roaming has joined #openttd
17:36:03  <Alberth> did someone write a nice git gui tool yet?
17:36:18  <Alberth> for browsing history mostly
17:36:21  *** m3henry-roaming has quit IRC
17:36:27  <LANJesus> Alberth: huh?
17:36:50  <Alberth> thg was good, but all git gui things are crap
17:37:16  <LANJesus> i've had decent luck with the git extension for VS. i've also used sourcetree
17:37:22  *** m3neryroaming has joined #openttd
17:37:33  <Alberth> well, yeah, for linux
17:37:41  <Wolf01> Alberth: let's see if now MS could do something :P
17:37:41  *** m3neryroaming has quit IRC
17:38:14  <Alberth> no doubt they can if you use their linux interface at windows? :p
17:38:49  <Wolf01> :D
17:39:28  *** qwebirc_m3henry has joined #openttd
17:41:18  *** qwebirc_m3henry has quit IRC
17:43:28  <peter1138> I use gitg for browsing.
17:43:56  <peter1138> Although I preferred older versions as they showed every stash in a simple way too.
17:45:21  <peter1138> Hmm, probably time to go out.
17:45:25  <LANJesus> have you tried smartgit?
17:46:01  <peter1138> There's also github's desktop client.
17:46:26  <peter1138> LANJesus, "purchase"? What is this crazy talk?
17:46:30  <LANJesus> if smartgit sucks, try giteye or gitk
17:46:42  *** Flygon has quit IRC
17:55:39  *** andythenorth has joined #openttd
18:02:43  <andythenorth> well
18:03:17  <peter1138> Is it?
18:03:30  <peter1138> Time to leave, andythenorth's here.
18:03:31  *** Thedarkb has quit IRC
18:03:33  <peter1138> -> mtb
18:03:35  <Alberth> looks that way at least
18:03:39  * andythenorth -> tanks?
18:04:00  <Alberth> open wagons with barrels?
18:04:18  <Alberth> at least you can see it loading :)
18:04:19  <andythenorth> I was thinking about Blitz but eh :)
18:04:37  <Alberth> oh, other tanks :D
18:05:03  <Alberth> still hooked? :)
18:05:36  <andythenorth> comes and goes
18:05:54  *** KouDy has quit IRC
18:05:59  <andythenorth> as addictions go, it's more satisfying than spider solitaire :P
18:07:38  *** KouDy has joined #openttd
18:08:57  *** frosch123 has joined #openttd
18:11:06  <m3henry> Alberth: I find this good for viewing history: `git log --decorate --oneline --graph --summary -s --all`
18:11:45  <Alberth> fair enough, andy :)
18:12:23  <Alberth> m3henry: I have log -20 --graph --pretty=oneline --abbrev-commit --decorate --date=relative
18:13:29  <Alberth> but that doesn't come close to a gui tool
18:14:12  <m3henry> I suppose it comes down to how much time you spend in CLI as to preferences
18:14:30  <Alberth> especially one with search facilities and browsing in files of old versions with blame information
18:14:48  <Alberth> day-to-day I use CLI
18:15:18  <Alberth> just looking through history to find how a change was introduced is just horrible at command-line
18:15:47  <Alberth> line x of file y is broken, how did that happen?
18:16:10  <Alberth> especially in the context where files were refactored etc
18:16:14  <m3henry> I love using bisect for things like that
18:16:21  <LANJesus> Alberth: i'm guessing the web interface is garbage for that?
18:16:34  <Alberth> try thg then :)
18:17:03  <Alberth> all git tools suck, I tried everything with git gui in the package manager
18:17:27  <Alberth> gitg is the least bad, but you can't even search for changes
18:17:43  <andythenorth> I use CLI git
18:17:50  <andythenorth> and don't try to do anything complicated ever :P
18:17:57  <andythenorth> I rely on bitbucket / github a lot
18:18:02  <Alberth> m3henry: not broken in the sense that you can test it simply
18:18:42  <Alberth> you have to look at the line or the section of code to see what happened
18:19:08  <Alberth> so you need to step back through the change history of that section of code
18:19:32  <Alberth> and skip file/function moves, variable renames, etc
18:25:16  <nielsm> "blame" is generally okay to trace back when something changed? if you know the file and line
18:29:58  <Alberth> yeah, but that repeatedly, and check what line to verify each step, as code may have moved
18:30:17  <Alberth> including to other files :)
18:30:32  <TrueBrain> peter1138: rarely, but sometimes, a job fails for no clear reason
18:30:35  <TrueBrain> seems this was one of them
18:30:56  <Alberth> unlucky throw of the dice
18:32:16  <TrueBrain> and because 2 new commits have been on master, I also cannot retrigger it :D
18:32:18  <TrueBrain> which is silly :P
18:32:36  <Wolf01> I tried to use the client integrated on VS, but it misses something... sometimes it breaks and you need to get the cli to do a reset (the gui seem to not be able to reset --hard successfully)
18:35:05  <Alberth> it's just this advanced search stuff that I need a gui for, I use the command-line for everything else
18:35:18  *** HerzogDeXtEr has joined #openttd
18:36:00  <Wolf01>
18:36:02  <Alberth> and looking through diffs by clicking is also nice, don't need that often though
18:38:17  <LordAro> ...tortoisegit?
18:38:28  <Wolf01> That's shitty enough :(
18:38:39  <LordAro> does the job though
18:39:16  <Wolf01> I was really used to TortoiseSVN and I thought I would be happy with TortoiseGit.. but no
18:39:45  <Alberth> indeed tortoisegit doesn't come close
18:40:07  <Alberth> ah, the myth that text-files are platform independent :)
18:40:54  <Wolf01> They are, just always use LF
18:41:32  <Wolf01> And don't use notepad, ok, the unfixed one :P
18:41:36  <Alberth> and utf-8 :)
18:41:57  <Alberth> yeah, I switched to wordpad decades ago :)
18:42:46  <Wolf01> My boss is still fighting against the accented chars on the newsletter, he seem to not be able to fix the templates he uses, and I shown him how to do it many times
18:43:20  <Alberth> maybe show him how to save a template :p
18:43:53  <Wolf01> Maybe is the stupid editor he uses which still write or encode in ansi
18:44:07  <andythenorth> doesn't MailChimp take care unicode issues?
18:44:19  <andythenorth> I've never had problems with it
18:46:11  <Wolf01> Nah, we have html files to load on our crm, and that works well if you provide html files which agree between the encoding used to save it and the encoding specified in the html header
18:46:43  *** techmagus has quit IRC
18:47:28  <Wolf01> BTW, /me -> python... monty
18:47:38  <nielsm> ahh FINALLY got that theme to loop properly again
18:48:49  <andythenorth> hmm spider solitaire is winning
18:49:00  <andythenorth> even when I undo a lot :P
18:54:38  *** glx has joined #openttd
18:54:38  *** ChanServ sets mode: +v glx
19:00:41  <Alberth> spider is a difficult game
19:01:14  <Eddi|zuHause> it took me a lot of time to learn it
19:02:39  <andythenorth> if I undo enough, I win
19:02:40  <andythenorth> :P
19:07:55  <Eddi|zuHause> why did the "melody of the mouse" just pop up in my head for no reason?
19:09:10  *** synchris has quit IRC
19:09:26  <Eddi|zuHause>
19:15:11  <LANJesus> and now i have stuck in there
19:16:28  <Eddi|zuHause> not entirely sure how these two are related?
19:16:41  <LANJesus> they're not, really
19:18:11  <Eddi|zuHause> well, they're probably around the same age
19:30:41  <Wolf01> No monty python... parents can't read subtitles :|
19:33:23  <Alberth> is that even translatable?  I would think translating monty python is less than trivial
19:33:45  <Wolf01> You can get most of the jokes
19:35:12  *** Cthulhux has joined #openttd
19:37:10  <michi_cc> Windows breakage incoming... :p
19:38:31  <LordAro> but how will we know?
19:40:23  <michi_cc> Know what? That it has come in or that it has broken?
19:40:41  <LordAro> no windows CI
19:40:48  <michi_cc> The first by joining #openttd.notice, the second by TB getting nightlies running again.
19:41:01  <LordAro> which is clearly the only way we could know that something is broken
19:42:50  <Wolf01> Meh, I wanted to play cities skylines... I need to download it first :(
19:45:27  <Eddi|zuHause> Alberth: monty python did a show in german
19:45:42  <Alberth> :o
19:46:50  <Eddi|zuHause> also, all the monty python stuff was dubbed into german, as far as i know
19:50:13  <Wolf01> Were dubbed in italian too, but netflix only has original audio with subs
19:50:14  *** Fuco has joined #openttd
19:52:02  *** Gja has quit IRC
20:16:42  *** Thedarkb has joined #openttd
20:30:30  <m3henry> Gah, emplace_back() doesn't return a reference to the constructed element until C++17
20:43:40  *** gelignite has quit IRC
20:47:39  *** Guest4850 has joined #openttd
20:48:39  <m3henry> So I have two approaches to providing same functionality as before
20:50:04  <m3henry> The approach taken previously, having free functions, which does change semantics from member calls, but is more consistent with modern C++
20:50:58  <m3henry> Or having a templated container adapter, which provides the functionality as member functions
20:51:41  <Alberth> :(
20:51:47  <m3henry> <template typename T> struct VectorAdapter : T { ... additional public methods };
20:51:59  <LordAro> personally i'd try to avoid doing anything extra if at all possible
20:52:00  <m3henry> Which would keep current semantics intact
20:52:14  <m3henry> And only require type changes on the most part
20:52:27  <LordAro> requires a bit more "look at what the code is actually doing", but i think it'd make it better overall
20:52:38  <Alberth> in the current implementation you need the reference to fill the value
20:52:50  <Alberth> it may not be used much otherwise
20:53:16  <m3henry> Well you can't find something without the object you want to find in
20:53:25  <m3henry> (or an iterator pair)
20:53:35  <nielsm> are you trying to reinvent boost's intrusive containers?
20:53:40  <m3henry> no
20:53:47  <m3henry> Scrap SmallVector
20:53:54  <Alberth> it's at the end, right?
20:54:26  <Alberth> first entry of the reverse iterator, eg
20:54:30  <LordAro> emplace_back(foo) + .back() ?
20:54:53  <Alberth> but I'd guess you don't need that reference often, if at all
20:54:59  <m3henry> emplace_back() returns void until C++14
20:55:13  <m3henry> it returns T& from C++17
20:55:21  <LordAro> back() returns a reference
20:55:47  <nielsm> I (ab)used SmallVector as a variably-sized buffer in my midifile code, that usage is definitely not suited to be converted to std::vector
20:56:14  <LordAro> how so?
20:56:37  <nielsm> or well it _could_ but it'd be awkward
20:56:47  <m3henry> What do you mean though
20:57:05  <LordAro> for the vast majority of uses smallvec -> stdvector is a near one-to-one conversion
20:57:14  <Alberth> night
20:57:16  *** Alberth has left #openttd
20:58:48  <nielsm> really std::string would probably be a better replacement in this particular use
20:59:00  <m3henry> Why though?
20:59:02  <nielsm> or maybe std::basic_string<byte>
20:59:57  <nielsm> it's chunks of raw byte-stream data
21:02:30  * LordAro notes src/misc/array.hpp
21:02:35  <m3henry> I don't see why a resizable contiguous container is inferior to a resizable contiguous container, std::vector certainly has a better reallocation stregy for expansion
21:02:37  <LordAro> i don't think i've ever seen this before
21:02:48  * m3henry looks too
21:03:07  <Wolf01> 'night
21:03:09  *** Wolf01 has quit IRC
21:03:20  *** sla_ro|master has quit IRC
21:04:18  <m3henry> Looks like a vector of fixed sized blocks
21:07:34  <peter1138> evening
21:08:09  <m3henry> wb
21:09:08  <peter1138> Ooo, software update for my Garmin
21:09:36  <LordAro> peter1138: i'm very close to pressing the "buy" button for a bryton
21:10:20  <peter1138> Do it, it's way nicer than sticking a phone on your bike.
21:16:55  <m3henry> Then the question comes, what to do about case of similar methods
21:17:36  <m3henry> So Adapter::Assign() is provided by std::vector::assign()
21:17:46  <peter1138> LordAro, don't forget your cadence and heart rate monitor for some stats you probably won't ever need but hey, stats!
21:17:56  <LordAro> peter1138: exactly!
21:18:17  <m3henry> But would either require a forwarding function, or a code to use the new name of assign()
21:21:18  <m3henry> So avoiding code changes by having member functions wouldn't be avoided if the new name is used
21:22:44  <peter1138> LordAro, I want power meters but they're so expensive :(
21:24:28  *** iSoSyS has joined #openttd
21:26:39  <LordAro> peter1138: i pressed the buy button
21:26:48  <LordAro> ...and also bought a bottle of whiskey and 2 CDs
21:26:59  <peter1138> Welcome to the club.
21:27:04  <peter1138> Ooh, whatcha get?
21:27:24  <LordAro> the cycle computer, or the whiskey? :p
21:28:18  <LordAro> (Bryton 530T & Jameson Caskmates Irish whiskey)
21:28:45  *** andythenorth has left #openttd
21:29:19  *** nielsm has quit IRC
21:30:36  <peter1138> I'd celebrate with a glass of Glenlivet but it's a school night.
21:38:19  *** Progman has quit IRC
21:56:42  <Eddi|zuHause>
22:09:56  *** iSoSyS has quit IRC
22:13:01  *** HerzogDeXtEr has quit IRC
22:18:11  *** frosch123 has quit IRC
22:27:33  *** Stimrol has quit IRC
22:43:37  *** iSoSyS has joined #openttd
22:43:41  *** Wormnest has quit IRC
22:46:57  *** iSoSyS has quit IRC
22:53:40  *** m3henry has quit IRC
23:19:53  *** Fuco has quit IRC
23:53:07  *** Smedles has quit IRC

Powered by YARRSTE version: svn-trunk