Live data from Hacker News

Advent of Code 2024

adventofcode.com

571–580 of 580 posts

Re: Advent of Code 2024

#571
post #542
post #138

I’m using sqlite this year. Hoping that there won’t be any computational geometry or trie problems. Kind of hoping for a graph problem solvable with recursive CTEs, that would be cool.

As every year, I try to solve it with 1 sql statement for every challenge, https://gitlab.com/feike/adventofcode/-/tree/master/2024 , likely going to get stuck again around day 12/13 or so!

[deleted]

Re: Advent of Code 2024

#572
post #536

Earlier quoted context omitted.

Here's your opportunity to learn something: Different people can get enjoyment from the same thing in different ways, and you can learn things about data structures and algorithms without learning the syntax of a particular language to implement them.

You don't need an ai to do any of that.

But you can use an AI to do all of it effectively. What's your point?

Re: Advent of Code 2024

#573

Earlier quoted context omitted.

AI coding assistants ruined the global leaderboard experience. AoC might as well nerf it by discarding the quickest x percent of submissions, or something...

It's not that bad. I'm sure there are more LLM'ers in there than the one, but you can tell that the majority of the day 1 leaderboard is made up of people who have historically performed well, even before LLMs were a thing. Compare https://adventofcode.com/2024/leaderboard/day/1 to e.g. https://fuglede.github.io/aoc-full-leaderboard/ There was also at least one instance of people working together where you would have…

Okay, I think I have to go ahead and retract my own comment. Day 5 appears to have been sufficiently tricky for humans to do quickly while still easy enough for the LLMs that it is clear that there is a very large amount of cheating going on.

Re: Advent of Code 2024

#576

I love AoC! Did it the last 2-3 years in Rust, hanging out in a discord where we all try to make the absolute fastest solutions. Learnt all kinds of crazy performance hacks and some advanced algorithms & SIMD that way. This time I'm trying to do them in Rust and Golang in an effort to either learn to like/tolerate Golang (because we use it at work) or prove my hypothesis that it sucks and never use it unless I have t…

[flagged]

Re: Advent of Code 2024

#577
post #506

Earlier quoted context omitted.

Can't edit my comment, here's another claiming 12.7 μs and 7 μs: https://old.reddit.com/r/adventofcode/comments/1h3vp6n/2024_... Another claiming 30μs and 32μs: https://old.reddit.com/r/adventofcode/comments/1h3vp6n/2024_...

For an interesting comparison, here's BQN, an array language, at 25.5μs (on an i3-4160) for both parts, including input parsing: https://github.com/dzaima/aoc/blob/master/2024/BQN/1_fast.bq...

That's very impressive.

Re: Advent of Code 2024

#578
post #487

Earlier quoted context omitted.

What if you don't get up?

If it's a work day and I don't wake up on time, I'll pick away at it over the course of the day - usually I'll get a chance to think about it on my tram ride to work and complete it at lunchtime If it's a weekend I'll just do it at my leisure at some point during the day when I have some time - maybe head to a nice cafe or something. I'm nowhere near the top 100 - closest has been iirc top 200 a few years back - so i…

I have trouble fitting this kind of thing in consistently. It's hard with work, chores, family, and then motivation to code after coding at work.

Re: Advent of Code 2024

#579

Earlier quoted context omitted.

While I personally wouldn't find it a ton of fun to solve the puzzles that way, that's pretty cool. Nice work. Is there a place where you're blogging this or at least aggregating the links so we can see how far you get with it as the puzzles get more challenging?

Fair enough! I'll document my progress at https://github.com/jmandel/advent-of-claude/tree/main , though I may not keep up.

Thanks for posting that. It's been entertaining to follow your progress.

Re: Advent of Code 2024

#580

Earlier quoted context omitted.

This is how most of the top of leaderboard works.

Do you have any evidence to support that claim? Competitive programmers (especially those with their own libraries ready to go) can be incredibly fast at solving coding challenges.

Also, LLMs already fail on the two-star problems.
Post reply on HN