Frectonz
Only manged to do part 1 today. I couldn't get part 2 to work, maybe i will try it again in the weekends or sth. I did today's puzzle in Rust. [Part 1 Solution] [Unfinished Part 2 Solution]
I did part 2 after watching this video. It is still the bruteforce solution but i used rayon to parallelise it, and used indicatif to show a progress bar.
YouTube
Day 05 - Advent of Code
Advent of Code day 05 in Rustlang
A bunch of new crates get introduced today. nom_supreme, tracing, rayon, and indicatif!
GitHub: https://github.com/ChristopherBiscardi/advent-of-code/tree/8dfb5eff0c8a07f1ad9eaf7a3943bfa2e2d38e95/2023/rust/day-04/src
*…
A bunch of new crates get introduced today. nom_supreme, tracing, rayon, and indicatif!
GitHub: https://github.com/ChristopherBiscardi/advent-of-code/tree/8dfb5eff0c8a07f1ad9eaf7a3943bfa2e2d38e95/2023/rust/day-04/src
*…
Frectonz
Jeff Dean on Gemini
YouTube
This is changing the way scientists research | Gemini
Gemini — Google’s newest and most capable AI model.
200,000 scientific papers with crucial science information gets read, understood, and filtered by Gemini all in one lunch break. Join DeepMind Research Scientist Sebastian Nowozin and Software Engineer…
200,000 scientific papers with crucial science information gets read, understood, and filtered by Gemini all in one lunch break. Join DeepMind Research Scientist Sebastian Nowozin and Software Engineer…
Frectonz
https://youtu.be/sPiOP_CB54A
YouTube
Using AI to solve complex problems | Gemini
Watch as AI solves complex problems with Google DeepMind Research Engineer Gabriela Surita – using Gemini’s advanced coding abilities, including quickly prototyping a web app to explore London’s train stations. Gemini is Google’s newest and most capable AI…
👍1
Frectonz
https://youtu.be/UIZAiXYceBI
YouTube
Personalized AI for you | Gemini
Google’s newest and most capable AI model – Gemini.
Join Google Research Engineering Director Palash Nandy as he showcases Gemini’s advanced reasoning and coding abilities, all while exploring ideas for a birthday party.
The model understands his intent…
Join Google Research Engineering Director Palash Nandy as he showcases Gemini’s advanced reasoning and coding abilities, all while exploring ideas for a birthday party.
The model understands his intent…
Frectonz
I did part 2 after watching this video. It is still the bruteforce solution but i used rayon to parallelise it, and used indicatif to show a progress bar.
I've completed "Wait For It" - Day 6 - Advent of Code 2023
This one was an easy one. I did it in Rust.
[Part 1 Solution] [Part 2 Solution]
This one was an easy one. I did it in Rust.
[Part 1 Solution] [Part 2 Solution]
🔥1
I just completed "Camel Cards" - Day 7 - Advent of Code 2023
Of course since today's puzzle was called "Camel Cards", i did it in OCaml 🐫. Determining the hand type for the cards was very difficult.
[Part 1 Solution] [Part 2 Solution]
Of course since today's puzzle was called "Camel Cards", i did it in OCaml 🐫. Determining the hand type for the cards was very difficult.
[Part 1 Solution] [Part 2 Solution]
👍2
Frectonz
I just completed "Camel Cards" - Day 7 - Advent of Code 2023 Of course since today's puzzle was called "Camel Cards", i did it in OCaml 🐫. Determining the hand type for the cards was very difficult. [Part 1 Solution] [Part 2 Solution]
OCaml supports throwing exceptions, so you don't have to carry around a Result type everywhere.
The error objects are not some opaque value that can't be inspected at the caller site, instead they are typed values that can be checked by the caller.
For example if we see the
The error objects are not some opaque value that can't be inspected at the caller site, instead they are typed values that can be checked by the caller.
For example if we see the
parse method on Card and we want to parse the character '1' to be the card type A (aces), we can do the followingtry Card.parse '1'
with Card.UnknownCard -> Card.A;;
Forwarded from The Beno Logs
With great power comes great responsibility.
But it also works the other way around.
With great responsibility comes great power.
The more blame you take for your life the more power you have over it.
But it also works the other way around.
With great responsibility comes great power.
The more blame you take for your life the more power you have over it.
🔥10👍5