home.social

#adventofcodeunison — Public Fediverse posts

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

fetched live
  1. Advent of Code in Unison, Day 7

    share.unison-lang.org/@nathani

    This was _much_ smoother than day 6 for me. The solid block of characters made for an easy parser and the data structure I used for part 1 transitioned nicely into part 2.

    #unisonlang #adventofcode #adventofcodeunison

  2. Advent of Code in Unison, Day 6

    I made bad choices (or got unlucky) with my parser for this one and had to re-work it substantially for part 2, which is a shame because the parsing is the hard part on this one.

    share.unison-lang.org/@nathani

    #unisonlang #adventofcode #adventofcodeunison

  3. A hair late, but here's Advent of Code in Unison, Day 5!

    share.unison-lang.org/@nathani

    Range overlap ends up being pretty straightforward in Unison. I ended up implementing most of part 2 as a premature optimization for part 1. Take THAT Donny Knuth. 😛

    #adventofcode #adventofcodeunison #unisonlang

  4. Advent of Code in Unison, Day 4!

    share.unison-lang.org/@nathani

    Grid based puzzles are always a good time. My favourite trick for these is to use an associative data structure for the board instead of a nested array (shout out to _Clojure Programming_ for teaching me that trick).

    #unisonlang #adventofcode #adventofcodeunison

  5. Another day, another Advent of Code puzzle.

    share.unison-lang.org/@nathani

    Nothing terribly complicated here, though I did use streams instead of lists to avoid blowing up memory.

    #adventofcode #adventofcodeunison

  6. Day 1 of Advent of Code in Unison down!

    share.unison-lang.org/@nathani

    I feel like there might be a more elegant solution to Part2, but it's late and I'm biking both kids to school tomorrow, so this'll have to do for now.

    #adventofcode #adventofcodeunison