this post was submitted on 13 Nov 2023
5 points (85.7% liked)

Advent of Code

289 readers
1 users here now

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

https://adventofcode.com

founded 1 year ago
MODERATORS
 

Does anyone have any goals they are hoping to achieve this year?

I'm planning to try and learn Raku but probably not use it as my primary solution language. I always prefer to do a secondary implementation in the new language so I'm not stuck on syntax and how to solve the problem.

As always my goal is to finish all the stars ✨🌟✨

you are viewing a single comment's thread
view the rest of the comments
[–] mykl 2 points 1 year ago (1 children)

Thanks, I’m not that familiar with Clojure, but I can read it okay. How fast did that run for you? I tried it in an online Clojure editor and it took more than 10 seconds for me, which from memory is comparable with my solution before I started hacking in some terrible shortcuts…

[–] hal9001 2 points 1 year ago (1 children)

Running on my computer part 1 takes ~850ms and part 2 takes ~1300ms

[–] mykl 2 points 1 year ago (1 children)

Haha, I bit the bullet and installed Clojure… and Calva… and Leiningrad… and eventually got it to run locally. Looks like it's quite slow via the REPL, but I get similar times to you when I run it with plain old "clojure -M”. That looks like a nice REPL though. I might pick through your code a bit more and see if I can improve my solution before Sunday!

[–] hal9001 2 points 1 year ago (1 children)

If you are interested I wrote an AoC helper last year for clojure. https://github.com/jjcomer/aoc-helper

I started with the idea of using babashka for everything, but I ran into some namespace issues.

[–] mykl 2 points 1 year ago

That's probably going to be a bit much for me to get my head around any time soon, but it actually inspired me to complete the automation around my own solutions :-)