Advent of Code - adventofcode.com

Posted on
Page
of 21
First Prev
/ 21
  • Next year I'll remove myself from the leaderboards and learn Rust. Maybe.

  • Or just start another account that authenticates using one of the other ways.

    I've got another AoC account tied to my github account that I was using to make videos about learning Go, but lost momentum.

    My repo is private at the moment as it also has solutions for some other programming challenges (Euler, Valladolid, etc) so I shouldn't make it public.

    Eric (AoC creator) has also asked that individual puzzle inputs are not (re-)published: https://www.reddit.com/r/adventofcode/wiki/faqs/copyright/inputs/ which is another reason for not making my repo public.

    ISTR there used to be a challenge on the subreddit to make a puzzle input generator for each day. I think it got squished by Eric as he didn't want this to happen as it makes it easier for someone to make a knock-off version of AoC.

  • git rm's input files

  • Finally got the time to finish day 2 (still in Z80 assembler): https://github.com/rhowe/aoc/blob/main/2023/02/part2.S

  • git rm's input files

    Not that it really matters, and I'm sure you already know, but that doesn't scrub the files from your git repo, they'll still be in the history.

    But (yes) it's better than them being visible in the current repo view.

  • Yeah I'm not gonna go through and rewrite history just for that

  • You are a nutter!

  • Day 21 part 2 was "fun".

  • It has been said

  • 21 days done. 4 days to go. Cumulative runtime for all days is 0.501s so far.

  • Spent at least an hour hunting off-by-one errors :(
    That one was a real grind.

  • Really happy to have made it through to the end. Glad it's over though. Bit like the festive 500

  • Ha. Only just caught up today as I was busy/pissed most of the 24th/25th/26th.

    Have to redo Days 22, 23, 24 and 25 properly but that can wait.

  • Not long to go for 2024...

    Still haven't gone back and redone all of the previous years properly/fast.

  • Rust, CUE or CHICKEN scheme? Choices, choices. I think I might try CUE.

  • Still in awe of the jsonnet effort.

    I use it at work occasionally and I have a standoffish relationship with it at best. Maybe I need to just cosy up to it and get it sorted...

    Although, to be fair, I did do one year in both C and perl for the fun of it.

  • I don't think I have the stomach for it this year

  • Someone at work did it in jq last year

  • Have they been put on the register?

  • Wasn't there someone on here doing it in assembler last year? Mental.

    Looking back it was @rhowe - great effort

  • I'm not ready

  • All of 2.5 days' worth!

  • Don't think I'll be able to do many this year but did a bit of JS golf with the first day

    code ``` let g=n=>document.body.textContent.trim().split('\n').map(i=>+i.split(' ')[n]).sort() g(0).map((i,x)=>Math.abs(i-g(1)[x])).reduce((a,i)=>a+i,0) let g=n=>document.body.textContent.trim().split('\n').map(i=>+i.split(' ')[n]) g(0).reduce((a,i)=>(g(1).filter(j=>j==i).length*i)+a,0) ```
  • First day where part2 wasn't obvious/easy.

    Chugging along, but doing them quickly in perl and then forgetting about things. Will redo in golang at some point over the holidays when I'm off work.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Advent of Code - adventofcode.com

Posted by Avatar for Drakien @Drakien

Actions