#adventofcode2022 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #adventofcode2022, aggregated by home.social.
-
2022 Day 20: Grove Positioning System
2022 Day 21: Monkey Math
2022 Day 22: Monkey MapI 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 -
2022 Day 20: Grove Positioning System
2022 Day 21: Monkey Math
2022 Day 22: Monkey MapI 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 -
@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 :blobfoxfloofcofe: -
@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 :blobfoxfloofcofe: -
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
-
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… -
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… -
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 -
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 -
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!
-
@RonJeffries Did you take a look at #AdventOfCode2022 in #Kotlin ? I’m on day 13 and I am loving a) how natural I am finding it to “think in Kotlin” for the puzzles, and b) how I am discovering language and library features as I go along by trying to solve the puzzles and then simplify them into idiomatic Kotlin. Would love to compare notes.
-
@RonJeffries Did you take a look at #AdventOfCode2022 in #Kotlin ? I’m on day 13 and I am loving a) how natural I am finding it to “think in Kotlin” for the puzzles, and b) how I am discovering language and library features as I go along by trying to solve the puzzles and then simplify them into idiomatic Kotlin. Would love to compare notes.
-
After having spent #AdventOfCode2022 solving problems in C, I definitely feel like I have a much better understanding of the language. It was definitely interesting coding while trying to avoid unsafe functions so as not to pick up bad habits. I still can't believe I implemented a hash table for the first time without too much trouble. Still need to finish the last 9 remaining, but definitely have noticed an improvement since day 1!
-
My To-Do list has grown so much in December, but I haven't actually managed to do anything.
Rough To-Do list for January and February (in no particular order):
1. Spiderfire Rewrite Merge + Lots of Documentation
2. Upgrade to Iced 0.5 for die-yield-calculator
3. Finish Day 21 to 25 of #AdventOfCode2022
4. Try SvelteKit out for https://silicon.redfire.dev/ (Currently using Gatsby)
5. Improve the UI and UX of a (private) GUI software
6. Learn some HDL, either Verilog or (higher-level) Chisel -
Lol #AdventOfCode2022 day 7 has been kicking my butt. Figured out how to do tree recursion in a #Scheme though (apparently you still need to use a loop in your recursive function)
-
Lol #AdventOfCode2022 day 7 has been kicking my butt. Figured out how to do tree recursion in a #Scheme though (apparently you still need to use a loop in your recursive function)
-
Having basically bailed out at day 14, I decided to try and get 1st part of Day 25 and have done it in @SnapCloud - I'm finished now for the year :) https://snap.berkeley.edu/snap/snap.html#present:Username=cymplecy&ProjectName=aoc22Day25&editMode
-
Having basically bailed out at day 14, I decided to try and get 1st part of Day 25 and have done it in @SnapCloud - I'm finished now for the year :) https://snap.berkeley.edu/snap/snap.html#present:Username=cymplecy&ProjectName=aoc22Day25&editMode
-
My adventures in writing my own #Scheme #Lisp interpreter has actually succeeded in teaching me something about how to use the language. Since discovering my original mental model of the language didn't include improper lists, I've had to figure out how they work in order to implement them and I wound up realizing they were an appropriate data structure for a couple of the #AdventOfCode2022 problems I've solved so far.
-
Up to day five of #AdventOfCode2022 in #Guile #Scheme. I might get a week or 10 days done before the holiday is over and I'm too busy to keep doing them again :ms_sweat_smile:
So far this is a lot more fun that when I started doing these in #Rust at the beginning of the month, though I think that's partly bc I was trying to over-engineer a CLI for choosing which day, part, and data set to run.
-
Only got around to the final day's (easy) problem today...but now wrapped up #AdventOfCode2022. And proud to once again regain standing as one of the #AdventOfCode completionists. Thanks for another great year, @[email protected]!
-
So, say I used #AdventOfCode2022 to get better at #Rust. It worked great, but now I want to go further. What's something I can do with Rust to get to the next step?
-
So, say I used #AdventOfCode2022 to get better at #Rust. It worked great, but now I want to go further. What's something I can do with Rust to get to the next step?
-
That's it for Advent of Code gifs from me for this year.
If you want to check them all out, they're all here: https://cohost.org/sol-hsa
#AdventOfCode #AdventOfCode2022 #gif #animation #visualization #motiongraphics #hashtag #wtfbbq -
The final day of #AdventOfCode2022 is here, and we are trying to feed some SNAFU to Bob.
Solution: https://gist.github.com/HappyCerberus/1fe81ac6bb7949b9e29e041e8e2b021b
For a commented solution check, my mailing list https://simontoth.substack.com
-
The final day of #AdventOfCode2022 is here, and we are trying to feed some SNAFU to Bob.
Solution: https://gist.github.com/HappyCerberus/1fe81ac6bb7949b9e29e041e8e2b021b
For a commented solution check, my mailing list https://simontoth.substack.com
-
CW: Advent of Code Day 25 - APL
d←{⌊5÷⍨⍵+⍺}
g←{⍵=0:''⋄r←5|⍵⋄r=3:'=',∇2d⍵⋄r=4:'-',∇1d⍵⋄(⍕r),∇0d⍵}
⌽1↓g+/∊{((⊂'210-='⍳⌽⍵)⌷3-⍳5)×5*⍳⍴⍵}¨⊃⎕NGET'input'1It's over. It's done. Whew!
Not exactly elegant but it works. I might revisit it at a later time!
-
CW: Advent of Code Day 25 - APL
d←{⌊5÷⍨⍵+⍺}
g←{⍵=0:''⋄r←5|⍵⋄r=3:'=',∇2d⍵⋄r=4:'-',∇1d⍵⋄(⍕r),∇0d⍵}
⌽1↓g+/∊{((⊂'210-='⍳⌽⍵)⌷3-⍳5)×5*⍳⍴⍵}¨⊃⎕NGET'input'1It's over. It's done. Whew!
Not exactly elegant but it works. I might revisit it at a later time!
-
Sadly, gave up on AoC at Day 12. (Ran out of time, not wherewithal.) But I'm really glad to did it. I wrote 12 programs in Python, including a few that used Python 3.x features I hadn't studied too much before (dataclasses, typing, match/case, etc.). I also wrote 5 of these programs in Zig, so 17 programs total in 12 days. Fun, fun. Definitely doing this again next year. And might even take a look at days 13-25 sometime soon.
-
#AdventOfCode2022 Day 14 -- Watching the cave slowly fill up with sand one grain at a time
-
P.S. I can't see a K&R book in someone's profile pic and not follow 😂
Re-learning C with the #AdventOfCode2022 now (still on day one, ha. Started late, progressing slowly but surely 😁)
-
Today is the twenty-first day of #AdventOfCode2022 and we are trying to guess what the monkeys are up to.
Part one: https://gist.github.com/HappyCerberus/8f86b61a5f49fc0a2ce0cca4e73155c5
Part two: https://gist.github.com/HappyCerberus/0e0a773ea34fb86d817c4e0155c1f86fFor a fully commented solution check my mailing list https://simontoth.substack.com/
-
Things becoming more interesting in Aocla land. (Aocla = Advent Of Code inspired LAnguage, since I started modifying the day 13 puzzle to see where it would bring). #AdventOfCode2022
-
Part 1 of Day21 #AdventOfCode2022 could be implemented simply: 🙂
Part 2 required something different. 😟
https://github.com/corneil/aoc-2022-in-kotlin/blob/main/src/main/kotlin/day21/day21.kt -
Every year I start Advent of Code with the ambition of getting of as far as a I possibly can. This year was no different, 2 stars for the first 6 days, then nothing.
I just ran out of steam and time, there's just doesn't seem to be enough hours in the day to do everything!
-
Last year, I got stuck at day 16 and never got around to finishing it. So I'm very pleased to have written a working solution to day 16 for #AdventOfCode2022!
https://github.com/tvanantwerp/advent-of-code/blob/master/2022/day-16/index.ts
-
Day 10 is done. Not sure I'll catch up by the 24th. Still 8 days back.
-
I remain behind on the #TryHackMe #AdventOfCode2022 challenge, but I am not giving up.
Yesterday, I completed days 15 and 16 which both focused on secure web application programming.
Day 15 uses unrestricted web uploads to pop a #Metaspoit #Meterpreter remote shell.
Day 16 focuses on #SQLInjection.and includes an integrated mitigation exercise for #PHP, which was a nice surprise.
-
Day 9 was a pain in the neck mostly because I tried a little too much code reuse from part #1 Still 8 days back.
-
Congratulations to Iman khoshabi, who is topping the #AdventOfCode2022 Dart leaderboard with just a week to go. It's getting tough at the top: only 5 out of 140+ have completed all 17 days so far. Respect to you all! 🫡 #Dart