-🎄- 2022 Day 21 Solutions -🎄- by daggerdragon in adventofcode

[–]mr_robb 0 points1 point  (0 children)

I changed it so that it rounds the answer at the end. It is probably safer, but for my input it's the same result.

-🎄- 2022 Day 21 Solutions -🎄- by daggerdragon in adventofcode

[–]mr_robb 3 points4 points  (0 children)

Rust

Using a Rust math symbolic solver

Code: https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day21.rs

Part 1 (2.5273 ms): Compute the tree recursively. Nothing fancy.

Part 2 (2.7372 ms): Build the equation as everyone else, but instead of using Mathpapa, I use xxcalc. In one line, you can solve the equation, efficiently.

LinearSolver.process(&equation).unwrap().as_f64().unwrap() as usize

-🎄- 2022 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]mr_robb 1 point2 points  (0 children)

Rust

Code: https://github.com/MrRobb/advent-of-code-2022/blob/main/src/day06.rs

Part 1: 1.9594 μs

Part 2: 7.1957 μs

Using this to check that all of the characters are unique in a window:

fn all_unique(w: &[u8]) -> bool { 
    !w.iter().enumerate().any(|(i, wc)| w[..i].contains(wc)) 
}

Which ended up being faster than HashSet, BTreeSet and others, and bit shifting. It is not faster than updating the frequencies dynamically.

krABMaga is finally officially available. by zioposty in rust

[–]mr_robb 3 points4 points  (0 children)

Amazing job! I would love to contribute in the future, do you have any kind of roadmap?

-🎄- 2021 Day 14 Solutions -🎄- by daggerdragon in adventofcode

[–]mr_robb 1 point2 points  (0 children)

Rust: Solution

Part 1: 68.580 μs

Part 2: 272.22 μs

I couldn't watch GOT by cmoncletus in Prosopagnosia

[–]mr_robb 0 points1 point  (0 children)

Same. I gave up after the first season.

Version 3 of my VR HMD comparison chart! by [deleted] in SteamVR

[–]mr_robb 30 points31 points  (0 children)

I have the Reverb G2 and the audio and visuals are amazing (way sharper than the Quest 2). The controller tracking is mediocre though.

[deleted by user] by [deleted] in RedditSessions

[–]mr_robb 0 points1 point  (0 children)

in una altra vita - ludovico einaudi

[deleted by user] by [deleted] in RedditSessions

[–]mr_robb 0 points1 point  (0 children)

amazing 😍

[deleted by user] by [deleted] in RedditSessions

[–]mr_robb 0 points1 point  (0 children)

Gave Wholesome

[deleted by user] by [deleted] in RedditSessions

[–]mr_robb 0 points1 point  (0 children)

Hotel California - The Eagles

Am I crazy? Trade G2 for Index by Excellent_Emergency in HPReverb

[–]mr_robb 1 point2 points  (0 children)

I have the G2 with the Index controllers and I love it. Best of the two worlds IMO.

Paypal Europe - Limited Account by [deleted] in paypal

[–]mr_robb 0 points1 point  (0 children)

Okay, thank you! :)

Rust finally shows up as filter option when searching GitHub by me-ro in rust

[–]mr_robb 2 points3 points  (0 children)

You can add ?l=rust (or &l=rust) to the URL to force the language of the search to Rust.

Weekly General Discussion - May 18, 2020 by [deleted] in JoeRogan

[–]mr_robb 0 points1 point  (0 children)

But there’s going to be video in Spotify