Advent of Code 2017


#1

I’m curious if anyone else is doing Advent of Code 2017 in Julia. If so it would be interesting to compare approaches! :slight_smile:

I did a few problems from AoC 2016 and it was useful as a source of (small, simple) problems to learn some basics of Julia.


#2

I am too. I did 2016 fully on Julia also.


#3

Very interesting competition, thank you. For me problem now that Julia is too powerful, so these tasks can be easily solved with brute force without much thinking and optimization :slight_smile:


#4

The last problems usually can’t be done with simple brute force. But if you still feel like it’s too easy, then I recommend trying to get the high scores.


#5

I created a private leaderboard, code 191838-201bb994 if anyone wants to join that :slight_smile:


#6

Me too. I’m not particularly proud of all my code but it’s a fun diversion. I’m curious what other people came up with for day 8; seems like a place where many features of julia can really shine (metaprogramming, generic functions, interfaces) but I found it to be surprisingly tricky to get the syntax right for building expressions with :() and ended up just using Expr everywhere: https://github.com/kleinschmidt/advent-of-code-2017/blob/master/day08.jl


#7

Here is my day 8: https://gist.github.com/SimonDanisch/5e28555d1c15b3c7497c935a6dde92e7#file-advent8-jl


#8

I really like, how new puzzles force you to use knowledge from previous days! Day 16 is a real great example of that.

By the way, does anybody know, is there any specific name for problem in Day 13? I mean Day 12 for example about graphs and DFS algorithms, and Day 11 about measure metric on hex grid. But Day 13 is a mystery for me, but I have a feeling that it is a known problem in computer science.


#9

My congratulations to everyone participating! It was really fun and challenging!