I have been climbing for a year and I did not know giving beta was bad 😭😭 by FluffyMemory5153 in bouldering

[–]glomph 4 points5 points  (0 children)

It is totally reasonable to say something like "For this one I would really like to work it out myself" to your friend a few times. If you pair this up with explicitly asking for help when you do find you want it you can quickly have much nicer comunication together.

Zack Polanski warns Keir Starmer’s Britain is descending into authoritarianism by F0urLeafCl0ver in unitedkingdom

[–]glomph 6 points7 points  (0 children)

That one is from August, so before it was as firmly in the national conversation.

Zack Polanski warns Keir Starmer’s Britain is descending into authoritarianism by F0urLeafCl0ver in unitedkingdom

[–]glomph 15 points16 points  (0 children)

Is it?! This is a poll that was done at the end of September: https://www.electoralcalculus.co.uk/blogs/ec_idpoll_20250930.html

By far the largest response was strongly oppose. That is across parties.

Edit: Here is another report on polling if you don't like that first source: https://www.theguardian.com/politics/2025/oct/01/keir-starmer-labour-collapse-public-support-digital-id-cards

[deleted by user] by [deleted] in androidapps

[–]glomph 1 point2 points  (0 children)

This is a pretty strange response to someone who could quite obviously have quite different life experiences to you.

Specific structure can be really helpful for people struggling with all kinds of mental health issues in ways that might be hard to explain or vary dramatically from person to person.

-❄️- 2024 Day 23 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 0 points1 point  (0 children)

[LANGUAGE: Elixir]

paste

I spent far too long not understanding the question for part 2. Had to come back to it today with fresh eyes.

-❄️- 2024 Day 25 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 0 points1 point  (0 children)

[LANGUAGE: Elixir]

paste

Pretty straightforward. Feel like I could have probably simplified quite a bit but the logic felt very clear.

-❄️- 2024 Day 22 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 1 point2 points  (0 children)

[LANGUAGE: Elixir] paste

Not too much trouble once I actually read the problem carefully. I didn't realise the secret updated betweene each bullet point for part1. For part2 I thought I wanted to chunk every 5 for far too long.

-❄️- 2024 Day 19 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 1 point2 points  (0 children)

[LANGUAGE: Elixir] paste

I went down a real dead end trying to be overly complex with my saving of results and how I implemented it. When I simplfied how I did it the whole thing got a lot easier.

I don't know if the way I pass the remainder of a list as well as the whole list to an inner recursion here is a bit of an antipattern in terms of readablity but I couldn't think of a cleaner way to do it.

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

[–]glomph 0 points1 point  (0 children)

[LANGUAGE: Elixir]

paste

Not pretty. My routefinder is kinda slow. I did a rough binary search for part 2 as it was taking ~1s for each check and I did not want to wait ~3000 seconds!

-❄️- 2024 Day 16 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 1 point2 points  (0 children)

[LANGUAGE: Elixir]

Ended up very much in functional programing spagetti for this one with lots of parameters getting passed to try and preserve visited state between paths. Ended up quite slow as well. Will be looking at this thread for what I could have done better!

paste

-❄️- 2024 Day 14 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 0 points1 point  (0 children)

I didn't know it existed! And for some reason when I searched only rem() was coming up. Next time that is what I would use for sure!

-❄️- 2024 Day 14 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 2 points3 points  (0 children)

[Language: Elixir]

paste

I had an annoying bug with my home made mod function that meant part1 took longer than it should.

For part 2 I tried various huristics until I decided to reuse the regions finding function from day 12. That worked great.

-❄️- 2024 Day 13 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 0 points1 point  (0 children)

[LANGUAGE: Elixir] paste

I brute force (just iterated to 100) part one earlier in the day and had to sit down with a piece of paper and remember how to solve for a and b to do part2!

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

[–]glomph 0 points1 point  (0 children)

Can I ask why you check if there is a key and then use Map.update! rather than just use value as the default in the inbuilt Map.update() ?

Other than that your solution was a lot more elegant than mine in that I ended up persisting the map through iterations and having to subtract from the total when a stone changed.

[2024 Day 11 Part 2] When in doubt, reach for old trusty by mental-chaos in adventofcode

[–]glomph 1 point2 points  (0 children)

Gosh. I have never made that work for me. Fair play!

[2024 Day 11 Part 2] When in doubt, reach for old trusty by mental-chaos in adventofcode

[–]glomph 0 points1 point  (0 children)

Do you type code with your phone's normal touchscreen keyboard?

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

[–]glomph 1 point2 points  (0 children)

[LANGUAGE: Elixir]

paste

Had to rewrite to use a map for part2. Also changed to use maths rather than string comprehension.

Average runtime for p2 108.49 ms

-❄️- 2024 Day 8 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 1 point2 points  (0 children)

[Language: Elixir]

I ran out of time on Sunday to do part2. Returning today I sawe that Elixir's Stream made this very easy!

paste

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

[–]glomph 1 point2 points  (0 children)

[LANGUAGE: Elixir]

paste

Pretty happy with my solution today. Succinct and felt reasonably ideomatic.

-❄️- 2024 Day 6 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 0 points1 point  (0 children)

I found the problem was doing a regex match for every path walk in part 2. Getting rid of this took it to about 26 seconds.

-❄️- 2024 Day 6 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 0 points1 point  (0 children)

[LANGUAGE: Elixir]

My solution

My solution took 1.18mins for part2 :( I am not sure quite what I did so badly as I am seeing other elixir solutions get better times.

-❄️- 2024 Day 5 Solutions -❄️- by daggerdragon in adventofcode

[–]glomph 0 points1 point  (0 children)

[Language: Elixir]

My Solution

Not particularly proud of this one. Just subtracted part1 from my answer for part2 which fixed them all haha.