home.social

#adventofcode2022 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #adventofcode2022, aggregated by home.social.

fetched live
  1. #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:
    github.com/nharrer/AdventOfCod

    #AdventOfCode #AoC #typescript

  2. #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:
    github.com/nharrer/AdventOfCod

    #AdventOfCode #AoC #typescript

  3. @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:

  4. @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:

  5. 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 😁

    bielsnohr.github.io/2023/02/18

  6. 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…
  7. 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. 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:

    cohost.org/sol-hsa/post/994951
    #AdventOfCode #AdventOfCode2022 #AoC #programming #puzzle

  9. 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:

    cohost.org/sol-hsa/post/994951
    #AdventOfCode #AdventOfCode2022 #AoC #programming #puzzle

  10. 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!

  11. @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.

  12. @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.

  13. After having spent 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!

  14. 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 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

  15. 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)

  16. 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)

  17. 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 :) snap.berkeley.edu/snap/snap.ht


  18. 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.

  19. 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.

  20. 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]!

  21. 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?

  22. 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?

  23. 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'1

    It's over. It's done. Whew!

    Not exactly elegant but it works. I might revisit it at a later time!

    #AdventOfCode #apljk #apl #AdventOfCode2022

  24. 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'1

    It's over. It's done. Whew!

    Not exactly elegant but it works. I might revisit it at a later time!

    #AdventOfCode #apljk #apl #AdventOfCode2022

  25. 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.

    #AdventOfCode #AdventOfCode2022

  26. #AdventOfCode2022 Day 14 -- Watching the cave slowly fill up with sand one grain at a time

  27. @vy

    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 😁)

  28. 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

  29. 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!

    #adventofcode #adventofcode22 #AdventOfCode2022

  30. 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!

    #AdventOfCode

    github.com/tvanantwerp/advent-

  31. 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.

    #Infosec

  32. 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.

    #AdventOfCode #AdventOfCode2022 #aoc2022 #aoc

    github.com/JamieB226/aoc2022

  33. 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