Live data from Hacker News

Advent of Code 2023 is nigh

adventofcode.com

81–90 of 319 posts

Re: Advent of Code 2023 is nigh

#81
post #24

Part two was exceptionally hard. Many people on reddit reporting they were hit by one edge case that's not covered in the examples. But my implementation passed these edge cases too. I was hit by another edge case. So there are at least two edge-cases (which are in the actual data) that aren't covered in the examples or the description.

[deleted]

Re: Advent of Code 2023 is nigh

#83
post #74

Genuinely curios why people are so into AoC ... Feels leetcode-y

A few reasons I like them: 1. The goal is to come up with a workable solution - not to try to fold your brain inside out to optimize them like leetcode. They feel a little more "real-world" (though still firmly in the domain of programming puzzle) 2. There is a community that all solve them at once. At my company, we have a leaderboard and a Slack channel discussing them every day. And then there is the Reddit and everything else that makes it feel more "fun" 3. They are bound (only 1 problem a day). Some days are longer, but I don't get overwhelmed like I do with leetcode where you can lose hours just churning through problems.

IMO, they are a fun community programming puzzle tradition. I would still turn to leetcode for interview practice. But AoC is awesome for me when I don't want to grind leetcode for some interview I don't want right now.

Re: Advent of Code 2023 is nigh

#85

Shameless Plug: If anybody is doing Advent of Code and wants to win tickets to the 2024 Carolina Code Conference (Greenville, SC in August) we're doing a ticket challenge. 22 tickets up for grabs with lots of ways to win. Entry details here. https://blog.carolina.codes/p/advent-of-carolina-code-ticket...

[deleted]

Re: Advent of Code 2023 is nigh

#87

I think I’d like to try this year’s in a language I haven’t touched before. What languages should I consider if I want something paradigmatically different from Go, Python, etc?

I used it last year to exercise my utterly novice clojure skills and found that very enjoyable and educational.

I especially enjoy using Clojure for these puzzles since the REPL makes interactively checking your ideas fast.

Re: Advent of Code 2023 is nigh

#89
post #76

Day one part 2 was relatively rough. Things I learned from it: rust regex crate doesn't support look-ahead, rust onig crate is currently broken in many ways and shouldn't be used (the version in crates.io doesn't compile and the version on GitHub is failing tests and look-ahead isn't working). It was a very frustrating time for me. After 2 hours of troubleshooting the above I used the same approach in python and it t…

Easy mode for this use-case is to match on a reversed version of the regex on a reversed version of the string, but yeah, negative lookahead would be great.

Re: Advent of Code 2023 is nigh

#90

I think I’d like to try this year’s in a language I haven’t touched before. What languages should I consider if I want something paradigmatically different from Go, Python, etc?

Last year I did my run in J (Jsoftware.com) and it was very interesting. This year my initial desire is to do it in raku, which seems suited to the first task at least (although I haven't managed to get to it). I did another year in common lisp. All in all I really can recommend doing them in non-typical languages, it expands your mind.

I can recommend raku. Always fun.
Post reply on HN