Hacker News Re-Imagined

Advent of Code 2021

  • 236 points
  • 5 hours ago

  • @amenghra
  • Created a post
  • • 57 comments

Advent of Code 2021


@aquova 4 hours

Replying to @amenghra 🎙

It's nearly upon us once again!

I've (somewhat) participated the last few years, more as a way to learn new languages, I've never actually made it through all the puzzles yet. I got fairly close with Rust last year, before getting burned out by the end. I'm currently debating either doing it with Nim or Ruby, of which I've never written a single line of in my life, but I'm curious to try out.

Reply


@porknubbins 1 hour

Replying to @amenghra 🎙

Now that I finally learned what a modulo multiplicative inverse and how to compute one is it will probably be the year that it doesn’t come up.

Reply


@Torkel 4 hours

Replying to @amenghra 🎙

Best advent of code I’ve done was the ”int-code computer” one. So good - one recurring theme of making a computer and in the end running games on it! Super excited for this year’s edition :)

Reply


@dunefox 3 hours

Replying to @amenghra 🎙

I'm torn between F# and Common Lisp (maybe even Raku for one or two puzzles). Julia is my fallback, as always. I think this year I want to solve all puzzles (got to 3/4 last year) and have all of them run in under one second, collectively. A tall order but interesting and fun!

Reply


@s0rr0wskill 36 minutes

Replying to @amenghra 🎙

I've heard of AoC but never participated in it before

How hard would it be for someone to finish the entire thing? I'm planning to use this as an opportunity to learn Python. I have some programming experience in Java, C, and JS but not that much.

Reply


@forrestthewoods 4 hours

Replying to @amenghra 🎙

One of my favorite times of year!

A couple of years ago I used Advent of Code to learn Rust. This year I’m going to use it to learn Zig.

Reply


@mrtweetyhack 2 hours

Replying to @amenghra 🎙

Fuck you Microsoft

Reply


@acheron 2 hours

Replying to @amenghra 🎙

Did they remove the requirement to link an external account yet?

Reply


@jodrellblank 21 minutes

Replying to @amenghra 🎙

NB. there's an Advent of Code subreddit and every day has a 'solutions' thread where people post their code in all kinds of languages, and discussions of different approaches, which is interesting to browse.

e.g. 2020 Day 1:

https://old.reddit.com/r/adventofcode/comments/k4e4lm/2020_d...

Reply


@gameswithgo 3 hours

Replying to @amenghra 🎙

Good way to learn Rust, F#, Nim, Zig or Lisp! or anything but those are all worth a look

Reply


@vavooom 3 hours

Replying to @amenghra 🎙

Would people reccomend this as a way to cement an understanding of Python / OOP in general? I’m typically more geared towards data science style scripting use cases and want to explore more problem focused programming.

Reply


@jypepin 1 hour

Replying to @amenghra 🎙

I hope that Peter Norvig participates this year again!

Reply


@nemo1618 8 minutes

Replying to @amenghra 🎙

I've done AoC in Go every year, with a few good leaderboard placings, but this year I'm trying something new: a custom competitive programming language, optimized for solving AoC problems as quickly as possible. Will it be powerful enough to solve all of the problems? Certainly not. But hopefully, on the problems it can solve, it will enable me to solve them much faster than Go would. :)

Reply


@xyproto 3 hours

Replying to @amenghra 🎙

Time to learn Zig!

Reply


@mikewarot 2 hours

Replying to @amenghra 🎙

I've still got my Lazarus/Free Pascal installation warmed up from Google Kickstart, so I'm ready.

Reply


@keyle 3 hours

Replying to @amenghra 🎙

The scoring should adjust based on your chosen language of choice and mental demise ;)

I look forward to it!

Reply


@pxx 3 hours

Replying to @amenghra 🎙

It was only so long ago somebody asked "[Whatever happened to Wolfram Alpha](https://news.ycombinator.com/item?id=29131931)". As somebody who didn't have Mathematica installed at the time, cheesing a problem with Wolfram Alpha was for sure one of the best applications I've had with it.

this year I guess I should probably have mathematica installed

Reply


@beached_whale 4 hours

Replying to @amenghra 🎙

It's a trap... :) This site is the biggest nerd snipe https://xkcd.com/356/

Love it and excited for 2021

Reply


@david2ndaccount 1 hour

Replying to @amenghra 🎙

I’ll probably end up doing it in C again.

Reply


@steinuil 2 hours

Replying to @amenghra 🎙

I should probably finish last year's. I did all parts mostly in time except for day 20, I couldn't figure out part 2 and just refused to do it.

Reply


About Us

site design / logo © 2021 Box Piper