Show newer

One of the ways I disagree with many of my esteemed fellow Rust people is that I think #async #RustLang is great. Switching #nextest over to #asynchronous Rust has yielded incredible dividends, including but not limited to what I described in sunshowers.io/posts/nextest-an.

The ability to write cross-platform heterogenous selects provides an extraordinary amount of power.

BTW, now that I'm at @oxidecomputer, I've been trying out nextest on #illumos and it works with zero (0) code changes!

Day 4: "Camp Cleanup"

This was one of the easier puzzles so far. Didn't bother with tests this time around... might go back and add them in a refactor.

Puzzle:
adventofcode.com/2022/day/4

Solution : github.com/haruska/aoc22/blob/

Show thread

Day 3: "Rucksack Reorganization"

Finding the common item in the group of rucksacks sent me down a rabbit hole of trying to find an efficient intersection of multiple HashSets in Rust.

Puzzle:
adventofcode.com/2022/day/3

Solution: github.com/haruska/aoc22/blob/

Dall-E interpretation of elves and rucksacks 🙂

Show thread

Day 2: "Rock Paper Scissors"

First good use of enums, structs and traits. Code was more test-driven today. The change in input meaning for part two presented some challenge to code organization for the combined solution.

Puzzle: adventofcode.com/2022/day/2

Solution: github.com/haruska/aoc22/blob/

Show thread

Day 1: "Calorie Counting"

Interesting first puzzle. Most of the time was spent on input parsing. Tests were written after the fact but were helpful in refactoring.

Puzzle: adventofcode.com/2022/day/1

Solution: github.com/haruska/aoc22/blob/

Show thread

✨ Participating in this year using as the implementation language.

Daily updates will be under replies. Let's see how far we can get this season 😅

Solutions posted to GH Repo: github.com/haruska/aoc22

Tracked down why rustc might be installed by homebrew. I was playing with cargo-nextest as an alternate test runner. The recommended install path was to use homebrew. That package has a dependency on homebrew rust.

To remove:
homebrew remove cargo-nextest rust

Show thread

Ran into an issue where clippy was complaining about a crate being compiled against a wrong rustc even though "cargo check" ran successfully.

Turns out if you have a rust version installed via homebrew clippy can choose the incorrect one.

GH Issue: github.com/rust-lang/rust-clip

Haruska Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!