toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

319
active users

Fédé française de Calvinball

That was fun! (<200ms for both parts in Rust, compiled in debug mode, i5-6300U)

I've completed "Plutonian Pebbles" - Day 11 - Advent of Code 2024 adventofcode.com/2024/day/11

adventofcode.comDay 11 - Advent of Code 2024

@thblt I don't think you can compare debug builds easily, because they have insanely different behaviours on different platforms. But, if you insist: 80ms for both parts, on an M1 Pro :)

@teotwaki It wasn't more than an order of magnitude, I don't play for pure performance — I haven't replaced the slow default [that data structure we probably both used], for example.

@jartigag @thblt That was my debug build, which is slow on purpose.

github.com/teotwaki/aoc

But trying to be “fast” in every metric of AOC is a recipe for disappointment.

@jartigag @thblt @teotwaki I did end up optimizing for runtime, because I enjoy that. All 25 days, part 2s, total 0.649s on an M1 MacBook Air, or total 0.462s on an M4 Mac Mini.

@gregtitus @jartigag @thblt That’s amazing. Does that include IO and parsing?

Which Mac mini is that? Which one do you recommend?

@teotwaki @jartigag @thblt That includes IO (to 25 local files containing the inputs) and parsing, yes. This is in Swift, and playing a lot with optimizing data structures, but otherwise nothing crazy. Code is at <github.com/gregomni/aoc2022>.

It's the base model M4 Mac mini, except with the RAM bumped up to 24GB (which I think probably doesn't make any difference here, but for general development I think is helpful). I am very happy with it!

GitHubGitHub - gregomni/aoc2022Contribute to gregomni/aoc2022 development by creating an account on GitHub.