Is anyone else doing Advent Of Code in Nix?
Is anyone else doing Advent Of Code in Nix?
Trying to do advent of code in Nix this year because I want to get more comfortable with Nix. Let's see how far I get! - fhoekstra/advent_of_code_2024
Recently got started with Nix and Home-Manager. I thought Advent Of Code would be a good way to get more comfortable with the Nix language.
I don't think I ever made it beyond Day 6 though, even in my most comfortable language (Python) so no idea where this will strand.
I am learning a lot about Nix though!
Have you used the Nix language outside of configuration? Let's share and discuss!
What's an advent of code? Interested if it will help me learn more!
4 1 ReplyAn advent calendar of coding puzzles. Dec 1-25 you get a new puzzle every day
6 0 Reply
I definitely am: https://git.sr.ht/~kintrix/aoc2024
(The README is wrong, just copied it over from last year)
3 0 ReplyLove the structure of your code. Exposing a part1 and part2 result from the same source file is a great idea
2 0 Reply
If I can make the time, I will. But I know @ellyse is doing it. 🎅 👩💻
She did one last night live on stream.2 0 Reply@gavin @F04118F yup! thats a link to a 2019 AoC, but here's my video for day 1 this year https://www.youtube.com/live/P_3rUzAN0vw?si=W0qxiwKeDHVN_2aQ
the code is here: https://github.com/ellyxir/advent_of_code/tree/main/2024/nix/day01i looked at your solution, good work!
1 0 ReplyYour code looks awesome, I'm definitely going to steal some ideas from that, especially the
lib.pipe
really cleans up a lot of unnecessary bindings I did.Doing a
with import ./utils.nix
is also a lot cleaner than nesting let statements.1 0 ReplyThat looks very lispy, is that intentional?
1 0 Reply