#AdventOfCode2022

2022 Day 20: Grove Positioning System
2022 Day 21: Monkey Math
2022 Day 22: Monkey Map

I did get stuck on day 19 of last year's AoC and never finished the remaining days.

While I am waiting for day 4 of this year, I had a go at days 20 - 22 of last year.

20 and 21 were not that hard.
But part 2 of day 22 was a bit tricky. Took me some time to figure out all the tile jumps and direction changes when crossing the cube edges.

The code is not very pretty. And the edge traversal stuff only works for a flattened cube pattern which is the same as my input 🤮​.

Code is here:
https://github.com/nharrer/AdventOfCode/blob/main/2022/day22/solve-day22.ts

#AdventOfCode #AoC #typescript

AdventOfCode/2022/day22/solve-day22.ts at main · nharrer/AdventOfCode

My Advent of Code solutions. Contribute to nharrer/AdventOfCode development by creating an account on GitHub.

GitHub
@ibboard I'm thinking of going with Python, as I did for the half a dozen exercises from #AdventOfCode2022
It's sort of my comfort language, it seems 
#30DayMapChallenge Day 28: Is this a chart or a map? Hypothetical trees in a grid, colored by height. Data from the #AdventOfCode2022 Day 8 challenge. Excited for #adventofcode2023 which starts December 1! Made with Python and GeoPandas.

I wrote this blog post about my #AdventOfCode2022 foray into #FunctionalProgramming using the #Elm 🌳 language and then completely forgot to share it! It was an interesting experience, with the main conclusion that I won't continue using Elm but that I want to keep investigating functional programming patterns and design.

Thoughts welcome 😁

https://bielsnohr.github.io/2023/02/18/elm-advent-of-code-2022.html

Using the Functional Programming Language Elm for Advent of Code 2022

It has been over a month now since the joyful time of Advent of Code 2022 has ended.1 In my third year of participation, I decided that I wanted to try completing the challenges in a functional programming paradigm. Functional programming is not something that has taken much foothold yet in scientific computing2, but I have been hearing about it more and more through some of the podcasts and blogs that I consume. Some of its selling points include verifiably correct software (through formal verification), enhanced testability, and robustness. If you aren’t familiar with “Advent of Code (AoC)”, it is an annual ↩ [This Computational Science StackExchange ↩

Programming with Plasma
While I had high hopes for finishing #AdventOfCode2022 I ended up bailing at Day 10. It was just starting to take too long. In the beginning I thought it'd be fun to maybe do it as a #RetroComputer challenge too but wanted to give myself best chance of success. Well @instantiator had the exact same idea using the BBC micro. He details the three weeks it took him to get the Day 11 challenge done. Very interesting. #BASIC instantiator.dev/post/8-bit-su…
8-bit Supercomputer

It took me 3 weeks to complete the day 11 puzzle for Advent of Code on a BBC Micro this year, and you’d be hard pressed to describe my solution as “proportionate” or “necessary”…

instantiator.dev

Thought about solving old Advent of Code puzzles, but don't have the motivation? Me too! Here's an idea: let's do one puzzle a week.

Deets:

https://cohost.org/sol-hsa/post/994951-old-advent-of-code-r
#AdventOfCode #AdventOfCode2022 #AoC #programming #puzzle

Old Advent of Code Runs

I tried solving some old advent of code years at some point, and get the itch to do so every year that I take part in AoC, but it just doesn't motivate me when it's not... "live". A couple days ago when I was discussing this on a discord someone said that one puzzle a week could work. Low-stress. And doing it in sync so that everyone (who's participating) does one puzzle a week, so we can discuss them, might keep the motivation up. So I'm proposing that next Monday, 13th of February 2033, it's 1st of December, 2015: https://adventofcode.com/2015/day/1 [https://adventofcode.com/2015/day/1] Who's with me? No time pressure, day won't change for a week.

Sol_HSA on cohost
Solving #AdventOfCode2022 day 15 in #golang with An Algorithm I Found on the Internet™ runs in 1700ms. Simplified based on the specific case (biggish change) -> 900ms. Split work into goroutines (easy) -> 300ms. Moved array allocation out of loop (easiest) -> 170ms. That'll do!

I decided to visualize the rope simulation from Advent of Code, day 9 on CodePen: https://codepen.io/DonKarlssonSan/full/wvxXVjp

It's movement is a bit weird in a fun way and the elasticity is very cool. Try it! (mouse or touch)

#adventofcode #adventofcode2022 #creativecoding

Advent of Code 2022 Rope Simulation (Dec 9)

...

CodePen
During #adventofcode2022, I became aware of Stable Diffusion [https://lnkd.in/eMZ-JzDD], despite not being at all interested in #generativeai #ai. After tinkering, the following are 2 images it generated in response to a concept I gave it from a particular song.
If you can tell me which song is behind the seed I gave Stable Diffusion, you win ... err... something.
Stable Diffusion en línea

Stable Diffusion es un modelo de aprendizaje profundo que genera imágenes a partir de descripciones de texto. Utilice Stable Diffusion en línea de forma gratuita.

adventOfCode2022/UnstableDiffusion.kt at master · sukes13/adventOfCode2022

Contribute to sukes13/adventOfCode2022 development by creating an account on GitHub.

GitHub