#CodingLife #rust
#CodingLife #rust
Missed finishing Part Two for Day 12 and Day 15. Need to start earlier—or maybe tackle it the night before. Frustrating, but onward! 🦀
Missed finishing Part Two for Day 12 and Day 15. Need to start earlier—or maybe tackle it the night before. Frustrating, but onward! 🦀
Part 1? Nailed it with a quick and dirty approach. Part 2? Let’s just say Google’s quantum chip wouldn’t have solved it before the universe ends. Buckled down, thought it through, and shipped the final solution: 99 lines of #rust, 78 without tests. 🦀💡
Part 1? Nailed it with a quick and dirty approach. Part 2? Let’s just say Google’s quantum chip wouldn’t have solved it before the universe ends. Buckled down, thought it through, and shipped the final solution: 99 lines of #rust, 78 without tests. 🦀💡
Taking a break from Day 8 to post Day 7. Optimized using perf, criterion & heaptrack till I tired of it. They're getting more fun to think through! Code runs fast; could be cleaner but, meh...you get what you pay for. 🤷🏽
github.com/rrrodzilla/a...
Taking a break from Day 8 to post Day 7. Optimized using perf, criterion & heaptrack till I tired of it. They're getting more fun to think through! Code runs fast; could be cleaner but, meh...you get what you pay for. 🤷🏽
github.com/rrrodzilla/a...
Solution evolution:
>6s runtime 🐢 - Vec/HashSet => poor cache & full-sized data types
0.65s 🐇 - Parallel with Rayon => still memory heavy
0.071s 🚀 - Bit-packing, small ints, better locality + parallel ~100x faster 🦀
github.com/rrrodzilla/a...
Solution evolution:
>6s runtime 🐢 - Vec/HashSet => poor cache & full-sized data types
0.65s 🐇 - Parallel with Rayon => still memory heavy
0.071s 🚀 - Bit-packing, small ints, better locality + parallel ~100x faster 🦀
github.com/rrrodzilla/a...
github.com/rrrodzilla/a...
github.com/rrrodzilla/a...
Fooled me twice, so I got spiteful and SIMD'd tf outta this, sprinkled in a little unsafe, then squeezed as much juice from it till I got bored. Final time stats: 20k file -
0.04s user 0.00s system 99% cpu 0.043s total.
github.com/rrrodzilla
Fooled me twice, so I got spiteful and SIMD'd tf outta this, sprinkled in a little unsafe, then squeezed as much juice from it till I got bored. Final time stats: 20k file -
0.04s user 0.00s system 99% cpu 0.043s total.
github.com/rrrodzilla
Today's challenge offered an opportunity to showcase Rust's zero-cost abstractions: built a heap-allocation-free solution using only std traits and newtype pattern. Type-safe, clean lifetimes, no external crates needed.
github.com/rrrodzilla/a...
Today's challenge offered an opportunity to showcase Rust's zero-cost abstractions: built a heap-allocation-free solution using only std traits and newtype pattern. Type-safe, clean lifetimes, no external crates needed.
github.com/rrrodzilla/a...
#AdventOfCode adventofcode.com/2024/day/1
First year participating. Definitely fun! I over-engineered the solution nice and proper by using my concurrent
#rustlang framework. That'll likely be my signature move this entire event. 🚀🦀
github.com/rrrodzilla/a...
#AdventOfCode adventofcode.com/2024/day/1
First year participating. Definitely fun! I over-engineered the solution nice and proper by using my concurrent
#rustlang framework. That'll likely be my signature move this entire event. 🚀🦀
github.com/rrrodzilla/a...
github.com/GovCraft/act...
github.com/GovCraft/act...