Config
Log for #openttd on 15th February 2023:
Times are UTC Toggle Colours
10:35:23  *** Webster has joined #openttd
10:35:25  <Rubidium> shared_ptr adds a mutex
10:36:17  <Rubidium> https://godbolt.org/z/KP6hfPY3e
10:47:16  *** Samu has joined #openttd
10:58:26  *** reldred has quit IRC
10:58:39  <dwfreed> TrueBrain: my understanding is that the reason pop can't return the value is that the copy constructor could throw an exception, which depending on the underlying container implementation would then make the state of the queue undefined
10:59:55  <TrueBrain> For this usecase, any memory usage or performance penalty ofc is not a worry, as these are very rare events
11:00:06  <TrueBrain> dwfreed: Still sucks :p
11:03:31  <TrueBrain> The std::move doesn't worry me. The nullptr on the queue I find annoying, so I picked the solution that doesn't do it :p but I think this is a tomato tomato case ๐Ÿ™‚
11:05:18  <dwfreed> you do need to make sure your receive callbacks are threadsafe now
11:48:52  <TrueBrain> Yup. They already had to be ๐Ÿ™‚ but some locking is missing
11:49:27  *** TheSGRhasbeenjeffeds has joined #openttd
11:49:27  <TheSGRhasbeenjeffeds> i forgor how to make a newgrf for openttd
11:50:36  <TrueBrain> So, what is our vote? Shared or unique? ๐Ÿ˜„
12:17:54  <Xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1075390492071694346/Unnamed_1950-01-0123.png
12:17:54  <Xarick> https://gist.github.com/SamuXarick/fec557fc8828ab7818842fbb178460ec
12:18:20  <Xarick> why aren't the entries iterated in the correct order they were created?
12:21:24  <dP> that's quite expected for an associative container
12:24:24  <Samu> :(
12:24:30  <Samu> so i need to use array?
12:24:37  <Samu> then give up on the name
12:50:17  *** pickpacket has quit IRC
13:00:34  *** pickpacket has joined #openttd
13:28:33  <Samu> how do I assign an index to each name?
13:28:45  <Samu> so that i can iterate them in order?
13:32:25  <Samu> i dont understand anything of this documentation
13:32:25  <Samu> https://squirrel.sourceforge.net/doc/squirrel2.html#d0e1152
13:32:40  <Samu> the syntax exemples make no sense to me
13:53:25  <andythenorth> You can use arrays of arrays
13:53:31  <andythenorth> Or an array of slots
14:05:26  <Samu> when the slot is integer, they are ordered
14:05:33  <Samu> iterated in order
14:05:55  <Samu> when the slot is a string, a name, they're randomly ordered
14:05:59  <Samu> :(
14:13:51  <andythenorth> Store an index when you write to the slot?
14:14:03  <andythenorth> Then lambda sort on retrieval?
14:15:28  <Samu> can you show me an example?
14:23:58  <andythenorth> Not in squirrel
14:24:37  <andythenorth> It used to be really common in python where dicts werenโ€™t order stable
14:25:02  <andythenorth> Dicts approximately same as squirrel tables
15:02:57  <Samu> string manipulation sucks
15:11:06  <Samu> https://gist.github.com/SamuXarick/2d7aa7f0a5ef0ab7b575d3c070ab63ec
15:11:12  <Samu> i don't understand strings
15:11:39  <Samu> why does it assert
15:12:33  <Xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1075434449854005258/Unnamed_1950-01-0124.png
15:12:33  <Xarick> results in this
15:16:40  <dP> Samu: you're probably initializing both elements with the same table
15:16:52  <dP> at least idk squirrel but that's how it would work in python
15:18:00  <dP> so tables[0] is tables[1]
15:18:40  <Samu> oh...
15:19:55  <Samu> okay let's try a different way
15:20:23  *** nielsm has joined #openttd
15:21:08  *** HerzogDeXtEr has joined #openttd
15:24:55  *** sla_ro|master has quit IRC
15:26:00  <Samu> thx, that was it
15:26:38  <Samu> now it's also on a foreach
15:30:24  <DorpsGek> [OpenTTD/OpenTTD] frosch123 commented on pull request #10480: Codechange: move curl into a thread so simplify code https://github.com/OpenTTD/OpenTTD/pull/10480#pullrequestreview-1299729918
15:44:14  <DorpsGek> [OpenTTD/OpenTTD] JimmyNaidoo commented on issue #10482: [Bug]: No display https://github.com/OpenTTD/OpenTTD/issues/10482
15:44:18  <DorpsGek> [OpenTTD/OpenTTD] JimmyNaidoo closed issue #10482: [Bug]: No display https://github.com/OpenTTD/OpenTTD/issues/10482
15:44:20  <Samu> nice, fantastic! it builds again
15:44:52  <Samu> changing a table to an array requires so much work, lol
15:50:10  <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #10474: [Crash]: Change setting caused assert failure https://github.com/OpenTTD/OpenTTD/issues/10474
15:51:18  *** _aD has joined #openttd
16:14:51  *** TROILUS has quit IRC
16:14:52  *** TROILUS9 has joined #openttd
16:14:54  *** TROILUS9 is now known as TROILUS
16:20:49  *** TROILUS1 has joined #openttd
16:22:14  *** TROILUS has quit IRC
16:22:14  *** TROILUS1 is now known as TROILUS
17:14:46  *** sla_ro|master has joined #openttd
17:20:28  *** Wormnest has joined #openttd
17:31:45  *** Wolf01 has joined #openttd
17:48:47  *** sla_ro|master has quit IRC
17:54:40  <Samu> I need ideas for new score tables
18:16:49  *** gelignite has joined #openttd
18:20:33  <DorpsGek> [OpenTTD/OpenTTD] innocenat commented on issue #10474: [Crash]: Change setting caused assert failure https://github.com/OpenTTD/OpenTTD/issues/10474
18:31:53  *** sla_ro|master has joined #openttd
18:39:01  <DorpsGek> [OpenTTD/OpenTTD] innocenat commented on issue #10474: [Crash]: Change setting caused assert failure https://github.com/OpenTTD/OpenTTD/issues/10474
18:40:59  <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #10484: Change: release with (much) newer versions of dependencies for Generic Linux https://github.com/OpenTTD/OpenTTD/pull/10484
18:46:08  <glx[d]> Ok #10474 is interesting
18:50:19  <Samu> there's some random huge stalls during river generation, unpredictable...
18:55:39  <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #10480: Codechange: move curl into a thread so simplify code https://github.com/OpenTTD/OpenTTD/pull/10480#pullrequestreview-1300156907
19:02:33  <DorpsGek> [OpenTTD/OpenTTD] TrueBrain updated pull request #10480: Codechange: move curl into a thread so simplify code https://github.com/OpenTTD/OpenTTD/pull/10480
19:02:47  *** geli has joined #openttd
19:05:48  *** jellyknight has joined #openttd
19:09:19  *** gelignite has quit IRC
19:12:19  *** geli has quit IRC
19:14:45  *** Flygon has quit IRC
19:23:27  *** Ernst has joined #openttd
19:23:34  <Ernst> Hi
19:23:54  <Ernst> Some help pls running openttd no iPad
19:24:33  *** Ernst has quit IRC
19:28:20  <andythenorth> There is no native ios version
19:28:36  <andythenorth> Thereโ€™s a scam version on the App Store though
19:33:52  <TrueBrain> wauw, that whole content window can really use a rewrite .. so many odd things ๐Ÿ˜›
19:41:09  <Samu> trying to debug this thing
19:41:22  <Samu> FlowRiver calls FlowRiver
19:41:49  <Samu> probably an insane number of times
19:41:54  <Samu> how can i count?
19:43:56  <TrueBrain> okay, the weirdest bug: if you have a partial file on disk (Because you cancelled), the HTTP fails and it falls back to TCP, the download progress starts at `UINT32_MAX - filesize`
19:44:00  <TrueBrain> so silly
19:44:24  <Samu> std::tie(found, main_river) what is std::t

Powered by YARRSTE version: svn-trunk