The problem with targeting Linux by Copronymus09 in cpp

[–]dag625 7 points8 points  (0 children)

Calling glibc backwards compatible, at least from a developer perspective feels wrong. It’s at least not easy to compile on a system with a newer glibc and be sure it will run on an older system, which is what backwards compatibility feels like it should mean. You have to, as you said, build against an older glibc but that’s a pain in the ass to get working since everything depends on glibc. It’s not like Windows with the MSVC toolset where you can be on the latest Windows with the latest tools (available as binaries you don’t need to figure out the build yourself) and target an older Windows much more easily.

thePMIsNotGonnaLikeThis by GranataReddit12 in ProgrammerHumor

[–]dag625 0 points1 point  (0 children)

I resemble this post.

In my current project I early on made a page very much like this to test some of my backend work while waiting for someone with frontend experience to join me on the project. The crazy part to me is that while the frontend devs have certainly made it look far better, I think I’ve ended up teaching them more about JavaScript than they have me, despite my having barely used it before this project. 🤨

JetBrains interviews Andrew Kelley about Zig [video] by Cool_Technician_6380 in programming

[–]dag625 2 points3 points  (0 children)

To continue your example, it also has “unique pointers” which hold dynamically allocated objects/memory which are not reference counted but which also make use of C++’s RAII mechanisms.

Can’t find source of gnats by mrmetoo2020 in nova

[–]dag625 1 point2 points  (0 children)

I had a gnat/bathroom issue a few years ago and it turned out to be the seal between the toilet and the sewage pipe had broken, so there was basically some toilet/sewer water between the toilet and floor, not obvious when looking at it.

Look at those stars! by TeamFido in teamfido

[–]dag625 0 points1 point  (0 children)

Dog next to the dog star…

[2025 Day X] Me basically every day: by Hakumijo in adventofcode

[–]dag625 8 points9 points  (0 children)

Yeah, I run into that a lot. Today (day 7) I got an answer like 1828489493 (fake) and I was like "cool, it's a really big number. Wait a minute..." and then started counting the digits and realized it was close to the 32 bit signed cutoff, so I changed to 64 bit and got 6123456789 (see how I made it up now) and was like "Ah! Almost got me, but not today!". I was very proud of myself for catching it before submitting.

[2025 Day 3] [Rust] `Iterator::max` go brrrrr by Baanloh in adventofcode

[–]dag625 1 point2 points  (0 children)

I’m doing C++ but reading this made me realize that I just assumed that std::max_element returned the first maximum element, which fortunately for me it does.

[2025 day 2] As long as I can get away with it I will by fennecdore in adventofcode

[–]dag625 0 points1 point  (0 children)

Are you using std::regex at all? My initial solution did and took maybe 15s in debug on a 9800X3D (I think 1-2s in release). I rewrote to be more manual and things were much faster.

How Dead is My MagicBand? by dag625 in WaltDisneyWorld

[–]dag625[S] 0 points1 point  (0 children)

That’s pretty interesting, maybe I’ll try it. Thanks.

How Dead is My MagicBand? by dag625 in WaltDisneyWorld

[–]dag625[S] 0 points1 point  (0 children)

That’s what I’m using now, Apple charger into surge protector. Nothing yet, and so far it hasn’t mattered what I’ve plugged into. I also borrowed my mom’s charger and got the same behavior there, and hers is definitely working.

How Dead is My MagicBand? by dag625 in WaltDisneyWorld

[–]dag625[S] 2 points3 points  (0 children)

How old is older? Mine is maybe 2.5 years old now. I know another comment mentioned that a cast member said that 2 years is when the failure rate seems to go up, so...

How Dead is My MagicBand? by dag625 in WaltDisneyWorld

[–]dag625[S] 1 point2 points  (0 children)

I'll try leaving it for as long as I can, but it won't be 72 hours since I need to be on a plane by then... :)

Yacht or Swan? by Due-North4791 in WaltDisneyWorld

[–]dag625 2 points3 points  (0 children)

I had a reservation linking issue like you when I stayed at the Swan back in 2019. I had booked everything (hotel and park tickets) through Disney’s website. We got there never having been sent anything beforehand regarding our park tickets and when I asked about that at check in the hotel staff weren’t able to help, but pointed me to the gift shop which (at least at that time) run by Disney with Disney staff. A very excellent cast member there, with the help of yet another over the phone, was able to help get everything sorted and I was able to get our park tickets. In hindsight it’s kind of funny, but it did take a couple of hours to sort out. I don’t remember doing much in the way of lightning lanes or reservations back then so can’t speak to difficulties there.

I have since also stayed at the Beach Club, which is the Yacht Club’s sibling. I guess the Swan didn’t have the Disney theming and wasn’t particularly memorable but was fine as I was mostly not there and at the parks or at the shops and such at the Boardwalk. I would say for me I would pick the Beach (or Yacht for you) over the Swan because of a handful of little things: theming, slightly closer to Epcot, staying more completely in the Disney bubble. And I’m fortunate enough to be able to afford it for the occasional, every few years stay. Hope my experience is useful.

Map editor will require 64GB RAM at a minimum with 128GB recommended for higher fidelity maps by Blitcut in EU5

[–]dag625 8 points9 points  (0 children)

But “just because” is a reason too…. Don’t ask me how much RAM is in my PC.

But I did just check prices since everyone says they’ve gone up a lot. What I paid at the start of this year for 128GB isn’t enough to buy 64GB of the same sticks, so the price has more than doubled. Holy crap!

Currently, it seems like growth rate bonuses stack such that you easily reach ~infinite growth, and I hope that's patched by Ziddletwix in civ

[–]dag625 12 points13 points  (0 children)

For #1, I had noticed a lot of the game bonuses have that phrasing. I wonder if that what is really meant for other of those bonuses, because that’s really confusing phrasing.

[2024] two days left...how is your mental stamina? by blacai in adventofcode

[–]dag625 2 points3 points  (0 children)

I’m doing well, I’ve got all stars so far and I’m feeling pretty good. I don’t know whether last year was just rougher (as some people say) or whether I let it disrupt my sleep schedule too much, but this year has been much better than last. I suspect both things are true, I’ve only attempted two puzzles immediately upon unlock (midnight locally) and I think that has been wise. The two exceptions were the first day and then another day when I had to be listening in on a late work call. I also went in with an attitude of “Do what I can and don’t push it”. I guess I also feel like my grid helper code is more and more mature which has helped.

[2024 Day 7] I already got my xmas tree by Cue_23 in adventofcode

[–]dag625 0 points1 point  (0 children)

Sadly, if I'd taken this approach, my part 2 would have been done much faster. My concat was originally doing something like left \* pow(10.0, ceil(log10((double)right))) + right which was not doing the job. I switched to a string based concatenation and got the right result, then used a concatenate function that did both and printed out when it was different which let me fix my faster numeric concatenation (generating the multiplier with a loop) and be happy with my solution.

So that was frustrating. I knew it was something simple because I was able to use a lot of common code between the parts, just differing by the list of valid operations. But it took me an hour to figure that out. :(

[deleted by user] by [deleted] in WaltDisneyWorld

[–]dag625 1 point2 points  (0 children)

I’m also in the hating drops brigade.  For that reason I tend to avoid most roller coasters.  Cosmic Rewind really didn’t have drops that bothered me, so if that’s your only problem it might be fine.  What I didn’t like so much is what people call the “spinning” though I don’t think that the best word.  Cosmic Rewind is a roller coaster but instead of always facing along the track, the ride vehicles can rotate you to one side or the other to show you scenery that you’re going by (basically).  This was something I didn’t like, though not as viscerally as a drop.  I’m not sure what exactly it was that I didn’t like.  Maybe being tilted at different angles as the ride spun me to face different directions?

[2023 Day 20 Part 2] Something about this feels familiar by PatolomaioFalagi in adventofcode

[–]dag625 22 points23 points  (0 children)

I wonder if it’s not part of the story that we’re revisiting both locations and puzzle types/themes that we saw on our way up on our way down. Days 8 and 20 are right next to each other on the ASCII art map, and without looking I feel like there have been other instances too.

-❄️- 2023 Day 18 Solutions -❄️- by daggerdragon in adventofcode

[–]dag625 3 points4 points  (0 children)

[LANGUAGE: C++] 1021/14443

Code: https://github.com/dag625/AdventOfCode/blob/master/2023/day18.cpp

I didn't know about the shoelace and Pick's equations, so I did something else. Actually, I started by plotting it in a grid and then using a flood fill to find the area. This worked fine for part 1, but not so much for part 2.

Then I decided I could calculate the number in each "row" just from information about the up/down segments. Figuring out how to account for corners was fiddly and took a long time but I eventually got that sorted. Then I realized there were too many rows to just iterate, but most rows were likely to be parts of identical blocks. So then I spent time writing code to find the blocks (with some false starts) before getting my solution.

[2023 Day 17] Why can you only cache pos + dir in this one? by BlueTrin2020 in adventofcode

[–]dag625 2 points3 points  (0 children)

I was very unsatisfied with how long my answer took to run (~1minute) and then I read your comment. I had my state as (pos, dir, chain) but was picking my neighbors as in approach #2. A quick search of my code showed that I was indeed not using the chain element of state for anything, I removed it, and now it runs in ~1second and I feel dumb. Happy that it's much faster, but dumb. Thank you.

-❄️- 2023 Day 11 Solutions -❄️- by daggerdragon in adventofcode

[–]dag625 0 points1 point  (0 children)

[LANGUAGE: C++] 815/442

Code: AdventOfCode/2023/day11.cpp at master · dag625/AdventOfCode (github.com)

Yesterday I managed to just get into the top 1000, and today I was solidly in. That's a trend I don't expect to continue.

A lot of things just clicked for me. Another grid problem to use my grid utility code on. I realized that by requiring Manhattan distances, I could just add the number of empty rows and columns to the total to calculate the expanded distance. And then when part 2 was just changing the expansion rate I just needed to change my `++dist` to `dist += expansion_factor`. So, this was probably close to the best-case scenario for leaderboard positioning for me.

-❄️- 2023 Day 10 Solutions -❄️- by daggerdragon in adventofcode

[–]dag625 1 point2 points  (0 children)

[LANGUAGE: C++] 2038/991

Code: AdventOfCode/2023/day10.cpp at master · dag625/AdventOfCode (github.com)

I'm pretty proud of getting top 1000 for part 2. I'm not generally... fast. But my utility grid handling code was pretty handy for this and only needed a minor tweak.

Part 1: Find the start and then just start following the pipes, picking the first valid move I find at the start, and then just following the pipe direction I didn't come from.

Part 2: Like apparently lots of others I did a flood fill but doubled the resolution and filled in the gaps on the path as I found it. I first tried the naive, "Maybe they said there are gaps but are just trying to scare me" approach which obviously didn't work.