Wednesday December 1st at 5 a.m. UTC will mark the start of the seventh incarnation of Advent of Code, popular programming contest started back in 2015. The author describes Advent of Code (AoC) as "a series of small programming puzzles for a variety of skill sets and skill levels in any programming language you like".
The rules of AoC are quite simple. Starting from December 1st until Christmas, every day at 5 a.m. UTC a new task is released. The tasks consist of two parts, where second part is revealed after you solve the first part, and it is a continuation and/or variation of the first part. You don't submit your code, just the result of your calculation.
The participation in AoC is free (although, if you like it, consider donating), all you need to do is log in with your Github, Google, Twitter, or Reddit account.
If you have never participated in AoC before or you want to prepare yourself for the start of the competition by solving some tasks, take a look at the previous events. To bring you up to speed, we recommend solving any of first 10 tasks of any year, as those are usually easier and can be solved relatively fast.
Advent of Code offers private leadearboards, and Nim has not only one but two of them.
The original Nim private leaderboard has filled up last year to the maximum of 200 users. We have opened a new private leaderboard, which you can join by using 681448-60235f8f code on this link.
If you have joined one of these leaderboards in previous years, there's no need to do it again -- you're already in.
In this thread you can post links to your AoC repositories, share your solutions, ask for help, discuss the tasks, etc.
People usually share their solutions on r/adventofcode subreddit and we encourage you to share your Nim solutions there too and showcase the beauty of Nim.
If you're sharing your solutions via Twitter, use #AdventOfNim hashtag and/or mention @nim_lang.
You can also use Nim IRC/Gitter/Discord channel if you have some Nim-related problem, but have in mind that your snippets might contain spoilers for other who haven't solved the task yet -- not everybody will be able to solve the tasks at 5 a.m. UTC. Consider waiting at least couple of hours before asking for help (in that time, try it some more to see if you can solve it by yourself :)).
Have fun!
as last year, I will try to blog about my solutions every day. Unlikely to keep it up for many days, but let's see: https://pietroppeter.github.io/adventofnim/2021/day01.html
on top of that the idea would be to try and make visualization using cool nim libraries, but I am already hitting a problem on day 1...
So I'm trying this for the first time, so this is probably very naive, but at least it works :) As simple as it gets with no optimisations.
a generous Nim user who can share the contents of their nim based .vscode directory
I do not have any special set up for vs code. I have used Saem extension instead of Konstatin's but both should be fine.
This year I'm looking forward to using the new and exciting VBA replacement - twinbasic. However, I'd also like to try translating my twinBasic solutions to Nim
welcome and happy Advent of Code!
i put my solutions here: https://github.com/hamidb80/problem-solving/tree/main/advent-of-code/2021/
i also put Persian Translation here: https://virgool.io/CE-SHAHED-publication/@hamidb80
I guess I'll put my repo here too:
https://github.com/MichalMarsalek/Advent-of-code/tree/master/2021/Nim
Hello all! I've done past AoC with a different language each year, and this year I've picked Nim: https://github.com/h-j-k/advent21/
My solutions are more functional-like in nature, because that's how I usually orientate my problem-solving steps. No surprise then that I've used foldl daily so far, with a bit of sugar sprinkled too.
new blogpost for day07 with visualization based on nanim! I had issues with the video and I was finally able to produce the final videos for Crab Dance 🦀🕺 using an accumulation of wrong fixes...
eventually (hopefully) it will al be fixed!
Thanks @miran for compiling the list of these awesome repositories. I started learning Nim with this year's Advent of Code and this is really helpful. Wish I found this thread sooner.
My solutions are at https://github.com/piyushrungta25/advent-of-code-2021
Spent some time to write my solving process for days 18, 19 and 23 for this year. You'll find the links to the full Nim solution too!
Day 18: https://github.com/h-j-k/advent21/blob/master/walkthrough/day18.md
Day 19: https://github.com/h-j-k/advent21/blob/master/walkthrough/day19.md
Day 23: https://github.com/h-j-k/advent21/blob/master/walkthrough/day23.md