home.social

#adventofcode2022 — Public Fediverse posts

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

  1. I completed #Day14 of #AdventOfCode2022.

    #Medium difficulty, because of the #ASCIIArt (I'm not using libs for that) and of the careful design of the program (to avoid most subtle bugs, thus loss of time). About 5 hours, total, between design, coding, and testing. Tiring, but not tricky.

    I really need a good package of #iterable classes and methods; the standard #JavaScript classes are good, but not enough.

    #AdventOfCode

  2. CW: Advent of code

    I just completed "Distress Signal" - Day 13 - Advent of Code 2022 #AdventOfCode adventofcode.com/2022/day/13

    Today is also the first day, I use external libraries. Using a real parsing library made things so much easier.

    Additionally I started an "Aoc" Library of useful Aoc related functions, like `splitOn :: a -> [a] -> [[a]]`, that divides a list by some a.

    Code is here: git.k-fortytwo.de/christofstee

    #haskell #earley #adventofcode #adventofcode2022 #coding #code

  3. I completed #Day11 of #AdventOfCode2022. It was the hardest of the #AdventOfCode problems, for now: almost 5 hours to solve!

    Difficulty: #Medium.

    Part 1 was easy-to-medium: code to the specs, take care of the always-mutating array lengths during the loops.

    When, at part 2, numbers started overflowing, the difficulty shot up right to Medium: I had to use #BigInt. Then, even it overflowed!

    (Spoiler in the reply...)

  4. Racket meet-up Saturday 3 December at 18:00 UTC :racket:

    The 'Racket Room': gather.town/app/wH1EDG3McffLjr

    At this meet-up:

    • Advent of Code
    • Show and tell
    • News & rumours
    • AOB

    Meet-up time at your location

    Racket meet-ups are on the first Saturday of EVERY Month at 18:00 UTC

    Discourse and Discord are the most active places for Racketeers.


    Pacific Time, PT Sat, 3 Dec 2022 at 10:00 PST
    Mountain Time, MT Sat, 3 Dec 2022 at 11:00 MST
    Central Time, CT Sat, 3 Dec 2022 at 12:00 CST
    Eastern Time, ET Sat, 3 Dec 2022 at 13:00 EST
    London, United Kingdom Sat, 3 Dec 2022 at 18:00 GMT
    Prague, Czechia Sat, 3 Dec 2022 at 19:00 CET
    Taipei, Taiwan Sun, 4 Dec 2022 at 02:00 CST

    And remember - showing up at Racket Meetups helps you learn the news of the Racket world as they happen! It is informative, it is interesting, it is helpful, it is greatly appreciated by everyone involved and it is fun!

    30 minutes but can overrun (it usually lasts ~1hr)

    EVERYONE WELCOME

    Stephen

    ![Racket Discourse](img.shields.io/discourse/users)

    ![Racket Discord](img.shields.io/discord/5710404)

    #Racket #RacketLang #RacketLanguage #RacketMeetUp #FunctionalProgramming #AdventOfCode #AdventOfCode2022 #LanguageOrientedProgramming #lopmi

  5. CW: re: Racket Advent of Code leaderboard (long)

    Discussion is welcome on the Racket Discourse: racket.discourse.group/

    If you prefer chat the Racket Discord has a dedicated #advent-of-code channel discord.gg/6Zq8sH5

    EVERYONE WELCOME

    #Racket #RacketLang #RacketLanguage #AdventOfCode #AdventOfCode2022 #LanguageOrientedProgramming #LOP

    PS maybe try #lang plait 😁

    “The Plait language syntactically resembles the plai language, which is based on racket, but the type system is close to that of ML.”

    docs.racket-lang.org/plait/ind

  6. CW: Racket Advent of Code leaderboard (long)

    Thanks to
    @samphillips we have an inclusive Racket leaderboard for AoC

    Sam posted the details here:
    racket.discourse.group/t/adven (not a walled garden so you don need an account to view the page).

    Why inclusive?
    Any language in the Racket ecosystem is allowed on our leaderboard, including languages that target other platforms like Urlang (aka Javascript with sane (parenthetical) syntax)

    You could try

    Choose the language(s) that suits the problem - you don’t have to pick just one.

    OR take the ‘Language-Oriented Programming’ approach and make your own language(s): beautifulracket.com/appendix/w

    Thanks to @Eutro for the advent-of-code package to download puzzle inputs and post solutions:

    HAVE FUN
    :racket:​:racket_running:​

    #Racket #RacketLang #RacketLanguage #AdventOfCode #AdventOfCode2022 #LanguageOrientedProgramming #LOP