Advent of Nim 2021

2021-12-31 Thread bluequartz
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: 

Day 19: 

Day 23: 


Advent of Nim 2021

2021-12-28 Thread bluequartz
Welp managed to use `foldl` for all except the last day... Still, all in good 
fun!


Advent of Nim 2021

2021-12-13 Thread miran
With AoC halfway over, here are my personal highlights of Advent of Nim (I'm 
probably not aware of lots of other cool stuff, but feel free to make your 
list):

  * @PMunch's streams: 
  * @pietroppeter's notebooks: /
  * @MichalMarsalek cool and elegant solutions: 





Advent of Nim 2021

2021-12-09 Thread guaracy
Ok, an opportunity to learn Nim.




Advent of Nim 2021

2021-12-09 Thread pointystick
Here's my repo:




Advent of Nim 2021

2021-12-07 Thread pietroppeter
new blogpost for day07 with visualization based on 
[nanim](https://github.com/EriKWDev/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!


Advent of Nim 2021

2021-12-07 Thread ErikSchierboom
Hi all! I decided to try Nim this year with Aoc, and so far I really like it! 
Nim is very readable and easy to understand. My code can be found here: 



Advent of Nim 2021

2021-12-07 Thread bluequartz
Hello all! I've done past AoC with a different language each year, and this 
year I've picked Nim: /

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.


Advent of Nim 2021

2021-12-07 Thread loczaj
Thanks @Zoom ! Yes, the parsing became simple, still it took too much time 
writing it.  I am new to Nim, "chunk iterator extension for zero_functional" 
sounds frightening. 

Thanks for sharing you repo and the Matrix link. 


Advent of Nim 2021

2021-12-05 Thread lscrd
My repository is here: 


Advent of Nim 2021

2021-12-05 Thread Zoom
I like how simple your parsing for the boards in day 4 is. I spent too much 
time writing a "buffered/chunk" iterator extension for zero_functional and 
failed! :D

Here's my repo: 

I'm not sure I'll be able to keep the tempo, but we'll see.

For those using Matrix, the bridged room is 
[#nim-aoc:matrix.org](https://matrix.to/#/#nim-aoc:matrix.org)


Advent of Nim 2021

2021-12-04 Thread auxym
Welp, can't help myself even though I have about 1000 other things I should be 
spending my free time on:



2020 was the first time I finished all days, though a bit late in January. 
Let's see where it goes this year, but so far the problems were pretty quick to 
finish.


Advent of Nim 2021

2021-12-03 Thread jyapayne
My (very tiredly written) aoc repo: 


Advent of Nim 2021

2021-12-03 Thread moigagoo
I'll never get tired of your excellent blog posts :-) You should start a 
podcast or something.

And the experiment with paramidi and nimibook is just beautiful!


Advent of Nim 2021

2021-12-03 Thread pietroppeter
It has been a long night but I have realized a dream I had from last year: 
listening to a puzzle input (using 
[paramidi](https://github.com/paranim/paramidi), thanks @sekao!). Enjoy [Whale 
Music 
](https://pietroppeter.github.io/adventofnim/2021/day03.html#whale_music)!


Advent of Nim 2021

2021-12-03 Thread loczaj
Wow!


Advent of Nim 2021

2021-12-03 Thread loczaj
My repo: 

Day 1: 4 (!) lines of code

Day 2: 13 lines of code

Thanks for Nim, I enjoy It very much! 


Advent of Nim 2021

2021-12-03 Thread DavideGalilei
Here's my repo:  :D


Advent of Nim 2021

2021-12-02 Thread ynfle
Include is REALY COOL!


Advent of Nim 2021

2021-12-02 Thread bg
Hi all! Sharing my repo too: 


Advent of Nim 2021

2021-12-02 Thread pietroppeter
published the blogpost for day 2 (which tells the story of the magic `include` 
trick for parsing 勞): 


I remembered also that we should add our nim repos to the usual [awesome advent 
of code repo](https://github.com/Bogdanp/awesome-advent-of-code)


Advent of Nim 2021

2021-12-02 Thread PMunch
Here is my repository: . I also hope to 
stream as many of my solutions as possible, link in the repository.


Advent of Nim 2021

2021-12-02 Thread erde74
Hi,

my repo 

i am a Nim beginner don't expect idiomatic Nim code ;)


Advent of Nim 2021

2021-12-02 Thread remix
Yet another repo: 


Advent of Nim 2021

2021-12-01 Thread al1ranger
My attempts at solving the problems using Nim can be found at 



Advent of Nim 2021

2021-12-01 Thread MichalMarsalek
I guess I'll put my repo here too:




Advent of Nim 2021

2021-12-01 Thread freeflow
Here are my efforts.




Advent of Nim 2021

2021-12-01 Thread hamidrb80
i put my solutions here: 
/

i also put Persian Translation here: 



Advent of Nim 2021

2021-12-01 Thread pietroppeter
> 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!


Advent of Nim 2021

2021-12-01 Thread sotolf
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.




Advent of Nim 2021

2021-11-30 Thread pietroppeter
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: 


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...


Advent of Nim 2021

2021-11-29 Thread foldl
Oh, Jesus. Another year is ending.


Advent of Nim 2021

2021-11-26 Thread miran
## Advent of Code 2021

Wednesday December 1st at 5 a.m. UTC will mark the start of the seventh 
incarnation of [Advent of Code](https://adventofcode.com/), 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](https://adventofcode.com/2021/support)), 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](https://adventofcode.com/2021/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.

## Nim leaderboards

Advent of Code offers private leadearboards, and Nim has not only one but two 
of them.

[The original Nim private 
leaderboard](https://adventofcode.com/2021/leaderboard/private/view/40415) has 
filled up last year to the maximum of 200 users. We have opened [a new private 
leaderboard](https://adventofcode.com/2021/leaderboard/private/view/681448), 
which you can join by using `681448-60235f8f` code on [this 
link](https://adventofcode.com/2021/leaderboard/private).

If you have joined one of these leaderboards in previous years, there's no need 
to do it again -- you're already in.

## Sharing solutions and asking for help

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](https://old.reddit.com/r/adventofcode/) 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! 


Advent of Nim 2021

2021-11-26 Thread miran
Previous Advent of Nim threads:

  * [AoC 2018](https://forum.nim-lang.org/t/4416)
  * [AoC 2019](https://forum.nim-lang.org/t/5588)
  * [Aoc 2020](https://forum.nim-lang.org/t/7162)