day 11 - advent of code 2024 in rust

  Рет қаралды 1,150

chris biscardi

chris biscardi

Күн бұрын

Пікірлер: 12
@HirschyKiss
@HirschyKiss 16 күн бұрын
Nice! the Either was a cool thing to show off. Also showcasing how you optimized was neat. I did recursion for this. Not something I remember ever touching on before, so learning the proper way to do that was pretty fun.
@flwi
@flwi 16 күн бұрын
Nice one! I was worried the recording might crash because you ran oom ;-) I came up with the same solution - really annoying that the problem statement was misleading. Mine is a bit slower, because I clone the hashmap at the beginning of the iteration (which is unnecessary) and I also didn't know about div_rem_euclid. Looking forward to a session where you need to run a profiler to find the bottleneck, since I've never done that in the rust world.
@chrisbiscardi
@chrisbiscardi 16 күн бұрын
@@flwi haha yeah I definitely double checked the recording when that happened. I record to .mkv though so worst case is that the recording cuts off and I restart it (then have to edit two files). The whole file isn't lost. For AoC I usually use dhat for heap profiling and have run flamegraphs and such before in videos. Was there a particular kind of profiling you were interested in seeing?
@reversev9778
@reversev9778 16 күн бұрын
I created a vector of tuples with each value and how many times it appears. At the start of every blink, I would combine all tuples of the same value by adding the amount of times each appears. Ran very fast but I’m new to rust so I haven’t made any proper benchmarking yet
@reversev9778
@reversev9778 16 күн бұрын
Did basically the same thing as you for part 1 tho
@aderakin5395
@aderakin5395 16 күн бұрын
Nice solution! Can i know what terminal are you using and how do i get the terminal to move the side like that
@chrisbiscardi
@chrisbiscardi 16 күн бұрын
I use alacritty+nushell, but the window behavior is driven by yabai, which is a macos window manager with binary space partitioning layout.
@praveenpp2929
@praveenpp2929 16 күн бұрын
i used cached crate to optimize
@chrisbiscardi
@chrisbiscardi 16 күн бұрын
oh that looks very interesting! I hadn't seen it before, thanks for pointing it out.
@dobleuber
@dobleuber 16 күн бұрын
Pretty clever, thanks
day 12 - advent of code 2024
35:43
chris biscardi
Рет қаралды 1,1 М.
day 14 - advent of code 2024 in rust
27:02
chris biscardi
Рет қаралды 1 М.
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
day 13   advent of code 2024 in rust
24:31
chris biscardi
Рет қаралды 792
Why Can't We Make Simple Software? - Peter van Hardenberg
41:34
Handmade Cities
Рет қаралды 170 М.
Making a Better Particle Simulation in C++ (Part 2)
25:05
Keyframe Codes
Рет қаралды 12 М.
day 15   advent of code 2024 in rust
1:06:06
chris biscardi
Рет қаралды 770
Creating a window - Software from Scratch
1:04:12
Muukid
Рет қаралды 170 М.
The SQLite Rewrite In Rust
22:15
ThePrimeTime
Рет қаралды 175 М.
day 17 part 1 - advent of code 2024
48:35
chris biscardi
Рет қаралды 781
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 942 М.
Factorio teaches you software engineering, seriously.
21:27
Tony Zhu
Рет қаралды 2 МЛН
day 16 - advent of code 2024 in rust
28:02
chris biscardi
Рет қаралды 908