Rules: no spoilers.

The other rules are made up as we go along.

Share code by link to a forge, home page, pastebin (Eric Wastl has one here) or code section in a comment.

  • @swlabr
    link
    English
    110 months ago

    Seeing you implement gcd/lcm makes me think about the people who are gunning for the AoC leaderboards. What do they have that I don’t?

    Asking out of general interest and not any sort of feelings of inadequacy (I swear, behind a face of gritted teeth and obvious seethe).

    Like, do they have cron scripts to scrape the prompt and input as soon as it comes out? Libraries of util functions accrued from years of AoC participation? That’s all I’ve thought of and honestly it doesn’t sound implausible if you are hypercompetitive. Like I imagine they just have a raiders of the lost ark warehouse of boilerplate indexed in their memory palace to draw from. And I don’t have that and I am totally not envious at all.

    • @geriksonOP
      link
      English
      310 months ago

      Re: LCM, I figured my favorite Perl library ntheory had it, and I was right! This a godsend for Project Euler, too.

      (The first year of AoC leaned heavily on these kinds of problems, and Python itertools utterly destroyed the puzzles.)

      Re: leaderboard participants - I believe many of them are involved in programming contests, generally, and if you do enough of these, you recognize patterns, and you have routines for a lot of stuff. Also there are tools to download the puzzle inputs automatically.

      My personal take on how to do AoC: https://gerikson.com/blog/comp/adventofcode/Howto-AoC.html (maybe already posted, I don’t care)

      • @swlabr
        link
        English
        310 months ago

        Thanks for the insight. I haven’t done much AoC, and this largely confirms the vibes I’ve been getting this time around.

        • @geriksonOP
          link
          English
          410 months ago

          Much like a high IQ score doesn’t show intelligence, but rather the aptitude to take IQ tests, being good at AoC does not show you are a good programmer, but rather that you are good at programming challenges.

    • @zogwarg
      link
      English
      39 months ago

      Ah! Thanks for making my notice the GCM -> GCD typo. I’m not gunning for the leaderboards myself, it’s pretty hopeless ^^. Yes i am assuming based off of experience and utility tools.

      I myself have tools to automatically get the inputs, and submit outputs, but that’s more because it pleases me than to actually be fast: https://github.com/zogwarg/advent-of-code/blob/main/functions.sh

      (Also completely pointlessly have a functions to extract the session cookie from chrome storage from the CLI, despite being long-lived, and therefore much simpler to simply copy-paste from debugger window)

      • @swlabr
        link
        English
        39 months ago

        hey dawg, doing pointless scripting to automate things you don’t need to automate is how we grow as programmers/how the basilisk gets made