we're still here edition>Advent of Code is an 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. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other.https://adventofcode.com//g/ leaderboard join code:224303-2c132471anonymous-only leaderboard:383378-dd1e2041See also: https://obonofcode.com/ (Summer 2026)previous >>107536609
official /aocg/ calendar
>>107570855How do you become this good at rust or programming in general?
>>107570870program exclusively in Rust for 15+ years
>>107570570Rust onboarding is stellar, actually.you won't start to dislike the language at all until you start to maintain code.
no new stuff for today?
>>107570855>>107570870>>107570912Attention seeking samefag.
>>107555399lmao
>>107572101what are you going to do about it? cry?
>>107570926>you won't start to dislike the language at all until you start to maintain code.Really? My anger at the borrowchecker and desire to use raw pointers and unsafe blocks for everything has only decreased over time
>>107570042anon... plz.use saturating subtraction and then you have no problems.
someone please talk to me...
>>107572469wtf, those are my posts. stop stealing my posts.
i'm sad I didn't do it this yeargot filtered by 1bi guess i could have just done the silver ones and kept up
>>107573507you still have like 8-9 more days to do a puzzle a day
need to get around to solving the previous years
chat dont let the thread die wtf
>>107575243It's over.You need to let go.
z3 is pretty interesting. Seems hard to tell WHEN to use it, though.
>>107572124I also did this in Zig (after solving it on paper lol). see >>107556558LLVM is pretty good desu. although I would imagine these are simple reductions for an optimizing compiler>>107575573I have never used it but "linear optimization" seems pretty clear. when you can write your problem as a set of linear equations (no modulo stuff) and you need to find a solution that minimizes or maximizes some parameter>>107572260doesn't solve the reverse iteration pattern since you can't put i>=0 as a condition for an unsigned type. what I did in a lot of aoc days is use wrapping sub and test only for upper bound. in grid puzzles when you write a loop for iterating over neighbors then you would do if (ni >= 0 and ni < m and ...same for nj...) this can be done with just if (ni < m and nj < n) since if there is a negative overflow then it will wrap go u32 max.
>>107570870I think idiomatic rust anon's ability to use the entire set of Iterator methods in each solution is pretty impressive lol. he even uses nightly features