Our great sponsors
-
adventofcode
Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala (by sim642)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Elixir is a functional programming language, but with a very different style. I have a couple conveniences for my Advent of Code setup this year. I don't anticipate being one of the fastest solvers by any means, but it's nice to be able to fetch the input file instead of copying and pasting into a file. I'm also using a library I made called pex which provides an alternative pipe operator for happy case programming. Truthfully, I don't think I'll need to add much error handling anyway, since the goal is simply to get the answer, but it still helps unwrap the occasional ok tuple.
This year, I am attempting to solve Advent of Code in Elixir. Last year, I attempted to solve Advent of Code in both Haskell and JavaScript as a challenge to learn and teach functional programming in JavaScript, but I didn't make it very far. I hope to post every day (for as far as I can get), but I'll only be sharing the code and highlighting the couple tricks I used to solve the problem.