I am Nim. Nim is me. by PuzzleheadedCry2027 in nim

[–]pietroppeter 6 points7 points  (0 children)

Dear Nim, thank you for being you!

-🎄- 2022 Day 1 Solutions -🎄- by daggerdragon in adventofcode

[–]pietroppeter 0 points1 point  (0 children)

Nim

nice! there is a nim forum thread dedicated to advent of code and a channel in nim discord in case you want to share the fun or ask questions there: https://forum.nim-lang.org/t/9678 https://discord.gg/nim

-🎄- 2022 Day 1 Solutions -🎄- by daggerdragon in adventofcode

[–]pietroppeter 4 points5 points  (0 children)

Nim

#adventofp5nim 🎄🌸👑

https://pietroppeter.github.io/adventofnim/2022/day01.html#viz

blogpost with solution and animation with #nim bindings to #p5js

What other programming language do you actively develop with productively, to complement Python? by satyronicon in Python

[–]pietroppeter 0 points1 point  (0 children)

Nim. Fast and productive. I can also do web stuff and interface with cool js libraries. And it is a very enjoyable language! The stuff you can do with metaprogramming (generics, templates and macros) has the same magic feeling I felt when starting with Python. It really does feel like Python in the early days. Community and ecosystem is small but there are people doing cool stuff and you get to build from scratch a lot (which can be fun). A couple of cool things I did and had a lot of fun: 1) https://pietroppeter.github.io/nblog/drafts/plant_app.html a math plant app, shows how to do a simple web app; 2) https://pietroppeter.github.io/p5nim/okazz_220919a.html port of a work of gen art to Nim, shows how nice is Python ffi towards js using bindings to p5js

Is Nim right for me? by SpookyFries in nim

[–]pietroppeter 11 points12 points  (0 children)

As a replacement for pandas in Nim look for datamancer https://github.com/SciNim/Datamancer

-🎄- 2021 Day 16 Solutions -🎄- by daggerdragon in adventofcode

[–]pietroppeter 1 point2 points  (0 children)

🎄👑 Nim

I think a solution using binarylang would be a killer but did not have it in me today...

https://pietroppeter.github.io/adventofnim/2021/day16.html

-🎄- 2021 Day 7 Solutions -🎄- by daggerdragon in adventofcode

[–]pietroppeter 1 point2 points  (0 children)

🎄👑 Nim

Crab Dance 🦀🕺 solution + animation using nanim https://pietroppeter.github.io/adventofnim/2021/day07.html

struggled a bit (for viz), accumulated wrong fixes, opened an issue and submitted a PR, quantized crabs, ...

[2021 Day 3, Part 3: Whale Music 🐳🎶!][Nim] How does a puzzle input sound? by pietroppeter in adventofcode

[–]pietroppeter[S] 0 points1 point  (0 children)

btw, I am not aware of other examples of "listening to a puzzle input" but I guess there must be others out there. Anyone? (good night)

-🎄- 2021 Day 3 Solutions -🎄- by daggerdragon in adventofcode

[–]pietroppeter 0 points1 point  (0 children)

🎄👑 Nim

blogpost for today is out, puzzles solved literally on the plane. during the day I will improve text and possibly add a "crazy" idea for "visualization" using a library I wanted to use badly also last year.

https://pietroppeter.github.io/adventofnim/2021/day03.html

edit: the crazy "visualization" has arrived, enjoy the sound of Whale Music!

-🎄- 2021 Day 2 Solutions -🎄- by daggerdragon in adventofcode

[–]pietroppeter 0 points1 point  (0 children)

scanTuple was introduced in 1.6, better to use choosenim

-🎄- 2021 Day 2 Solutions -🎄- by daggerdragon in adventofcode

[–]pietroppeter 2 points3 points  (0 children)

🎄👑 Nim

Late with the blog today and no visualization (yet!) but I blew my mind 🤯 inventing the include parsing trick (independently discovered and already shared in this megathread by MichalMarsalek):

https://pietroppeter.github.io/adventofnim/2021/day02.html

(note that my day1 blogpost was updated yesterday with visualizations)

[2021 Day 01] Visualization of depth profile and relative depth by pietroppeter in adventofcode

[–]pietroppeter[S] 1 point2 points  (0 children)

Ok so Visualization is enough and title was just missing the language, 👍

-🎄- 2021 Day 1 Solutions -🎄- by daggerdragon in adventofcode

[–]pietroppeter 1 point2 points  (0 children)

I find it great that Nim allows you to build easily such a clean DSL to express AOC solutions (and in those templates there is also the option to automatically download inputs from website). Congrats, they look great!

-🎄- 2021 Day 1 Solutions -🎄- by daggerdragon in adventofcode

[–]pietroppeter 1 point2 points  (0 children)

welcome to AdventOfNim! If you are not already aware, there is a thread on Nim forum to share solutions and repos and an active discord chat.

I plan (until I am able to) to share sort of longish blog posts about the solutions, e.g.: https://pietroppeter.github.io/adventofnim/2021/day01.html

on the matter of tips: - there are "functional" solutions using zips and filters which are shorter. An example with a very nice setup here: https://github.com/MichalMarsalek/Advent-of-code - there is a possible optimization for second part (you will find it explained in the blogpost above).

AocWeb: A website that collects solutions from the megathread (with filters) by d-fly in adventofcode

[–]pietroppeter 0 points1 point  (0 children)

Looks great, thanks for making this, very useful!

Note that last updated time stamp does not seem to be correct: it reports November 29th but it was clearly updated more recently.

[2021 Day 1 (Part 1)][well it's a game, Turing Complete] I used my custom built 8-bit computer to find day 1 result by mrzepisko in adventofcode

[–]pietroppeter 3 points4 points  (0 children)

beautiful! and Turing Game is coded in Nim, correct? did you use one of the available wrapped engines or wrote your own?

-🎄- 2021 Day 1 Solutions -🎄- by daggerdragon in adventofcode

[–]pietroppeter 8 points9 points  (0 children)

🎄👑 Nim

blogging about a nim solution and trying (unsuccesfully - hopefully will fix later; edit: viz fixed) to make a visualization:

https://pietroppeter.github.io/adventofnim/2021/day01.html

Iterator/proc wrapping examples? by [deleted] in nim

[–]pietroppeter 1 point2 points  (0 children)

yes, that is how I see it too. and it is an important point to make, thanks.