The Bridge

General Arqade Chat. We tried to leave once, but the door lock...
Jun 18 18:18
@Unionhawk UV index more than 48hrs out is just a guess, but yeah, if it's already forecast to be 11, it's going to be high.
Jun 16 17:19
Yeah, we're all Sternold now
Mar 26 13:17
@SPArcheon-onstrike And it's April 1st too, couldn't be more on brand.
Mar 5 19:21
@Sterno I know what that links to
Feb 28 17:38
It's actually probably a short in the pot, or the wiper is shorting more windings than expected.
Feb 28 17:30
To be fair, Hall effect sensors still need calibration from time to time. However, once calibrated they shouldn't see any noticeable drift during a single gaming session.
Jan 30 16:37
So what you're saying is I should finally pick up NMS since it's on sale for ~$31CAD on Steam.
Jan 16 13:32
@DaemonsMercy I think that trend probably holds true for most sites on the network.
Jan 10 18:34
@Wipqozn I hate you
6
Dec 12, 2024 21:13
Wow, I made 12.2 a lot harder for myself before realizing the right approach.
Dec 10, 2024 18:47
At least I've got the infrastructure ready to be able to solve the problems at compile time.
Dec 10, 2024 18:34
I am soooo close to getting Day 04 solved at compile time. Works for the sample input, but the real input is too big.
Dec 10, 2024 16:10
Okay, I didn't have to completely rework my solution for part 2.
Dec 10, 2024 15:35
Bah, I basically implemented 10.1 using BFS (albeit from each individual trail head), but 10.2 needs DFS.
Dec 9, 2024 20:42
I am having fun learning the <ranges> library though.
Dec 9, 2024 20:42
but release takes less than a second, so all good.
Dec 9, 2024 20:40
Hmm, 9.2 is taking me more than 8 seconds, albeit on my work laptop and in debug.
Dec 8, 2024 03:07
Okay, if I really want to optimize this, I need to fix my deque copies (and maybe use a different data structure), and also do the checks @Ronan suggested. But it runs in reasonable time (at least in release), so I'm not going to fix it.
Dec 8, 2024 03:02
Yeah, using a proper thread pool class library has cut it down to 1.5 seconds. I can probably reduce it further by not producing the part 1 answer.
Dec 8, 2024 02:58
simply spawning async functions slows it down due to context switching.
Dec 8, 2024 02:57
3.6 seconds in release mode. Still not great, but I'm still doing a bunch of copying and haven't implemented parallelization
Dec 8, 2024 02:45
But it's also not linking in release for some reason because it can't find the definition of an operator overload.
Dec 8, 2024 02:44
I think another thing is bounds checking in STL containers when in release.
Dec 7, 2024 21:09
I think it's mostly due to copying the values
Dec 7, 2024 21:06
38 seconds.
Dec 7, 2024 16:37
But I got the answer, which is good enough
Dec 7, 2024 16:36
Time: 38217ms
There's probably some more optimizations I can make. I haven't parallelized it yet for instance.
Dec 5, 2024 18:37
My solution is not fast, at least for a week 1 problem, but especially so since I think I should be able to solve it at compile time. But that would take some extra doing to set up. I really want to try to solve at least one problem at compile time.
Dec 5, 2024 16:41
@Wipqozn I'm also using Conan this year, mainly so I can use compile-time-regular-expressions, but it also lets me use this python package that automatically downloads my input.
Dec 5, 2024 16:24
Yeah, I should have just created a comparison functor to begin with since I need to sort the pages anyway.
Dec 5, 2024 15:43
(he says before knowing what part 2 will entail)
Dec 5, 2024 15:41
and I think I might not be using the best data structures, but the performance difference shouldn't be significant for this.
Dec 5, 2024 15:41
Yeah
Dec 5, 2024 15:31
So I've got my Day 5 input into data structures...
Dec 4, 2024 16:58
That is not where I thought AoC 4.2 was going to go
Nov 26, 2024 15:46
Although the default layout probably needs to be updated, we have folders within the build folder for different compilers so when it comes time to do cross platform work we don't have to worry about multiple configurations stepping on each other.
Nov 26, 2024 15:44
If last night is any indication, the workflow is actually going to be pretty easy: conan install . [-pr x64d] and then open the folder in VS.
Nov 26, 2024 15:41
@Ronan I'm using this year to learn the workflow of Conan2, CMake, and Visual Studio. I encountered some issues setting up my repo, but I think those are mostly resolved. We also haven't migrated to Conan2 yet at work, which is what I'll be spending a chunk of my December on.
Nov 26, 2024 15:37
But what I really get out of that is compile-time-regular-expressions, which not only allows me to generate the regex at compile time (something desperately needed by the standard library version), but also evaluating a regex at compile time.
Nov 26, 2024 15:35
I'm branching out this year and using the Conan package manager (which is what I use at work) so that I can also easily use the Python package advent-of-code-data. (Conan is written in Python, and package description files are also written in Python.)
Nov 26, 2024 14:46
I wonder how many AoC problems I'll be able to solve at compile time this year. That would mean adding in some framework stuff to generate a header with the input, but that's fairly easy to do with CMake. I already have Conan and advent-of-code-data automatically downloading my input files.
Nov 6, 2024 14:09
Hey GoG, why are you suddenly sending me emails in Polish?
 

 This Is Fine

The news discussion offshoot of the Bridge. Stars reserved for...
Dec 3, 2024 19:55
so crisis averted?
Dec 3, 2024 19:05
Controlling party in parliament are liberals, the president is conservative
Nov 22, 2024 16:54
@Wipqozn A good take I heard (from an Ontario cousin I think) was that Doug just wants to be mayor of Toronto, and so is writing legislation that explicitly targets Toronto city hall.
Nov 22, 2024 16:52
@User1865345 Not surprised, just disappointed
Nov 6, 2024 19:52
@Wipqozn And we let these people vote? (Only a slight twinge of sarcasm.)
Oct 30, 2024 14:45
You still living in one of the apartment buildings near there?
Oct 30, 2024 14:44
Yeah, I know where they are, my cousin-in-law used to work there.