Quentin
qsantos.fr
Quentin
@qsantos.fr
🇫🇷 French
🦀 Rust enthusiast
🇯🇵 Japanese learner (N1)
📻 Interested in amateur radio

Programming stuff (not just Rust): https://github.com/qsantos
🦀 I got surprised by calling last() on a DoubleEndedIterator. Now, it’s a Clippy lint!

qsantos.fr/2025/01/01/r...
Rust Gotcha: last() on DoubleEndedIterator - Quentin Santos
tl;dr: don’t call last() on a DoubleEndedIterator Edit: And, now it is a Clippy lint! How do you efficiently get the last part of a space-separated string in Rust? It will be obvious to some, but the ...
qsantos.fr
January 6, 2025 at 5:49 PM
Why is it so hard to buy things that work well?
danluu.com
December 16, 2024 at 8:19 PM
My current computer is about as powerful as the 500th most powerful supercomputer in 2004.
December 14, 2024 at 7:53 AM
I have often seen confusion between str and String in #Rustlang. Maybe this will help.
Rust Strings for C Programmers - Quentin Santos
This article will quickly explain the Rust types [T; N], &[T; N], &[T], Vec<T>, &Vec<T> with C code, and what the str, &str, String, OsString and CString add. Arrays and Slices Rust C [T; N] (array)Ex...
qsantos.fr
December 9, 2024 at 3:07 PM
Did you know that #RustLang lets you move !Unpin values?
You can move !Unpin - Quentin Santos
Although I am now mostly comfortable with Rust, some concepts still elude me. One of them is the exact meaning of Unpin. The documentation says: The documentation of Unpin says: Types that do not requ...
qsantos.fr
December 4, 2024 at 6:51 AM
Checking typos with #ChatGPT 4o feels a bit magical:

> "Poll::Read(()),"should be "Poll::Ready(())."
December 4, 2024 at 6:44 AM
Solved #AdventOfCode day 3 part 1 in one pass in #Rustlang. That code is so ugly. Part 2 is worse. And not passing for my input yet. Oh, well, I'll make it work. _Someway_
December 3, 2024 at 8:48 AM
The first days of #AdventOfCode are supposed to be easy. So, of course, I am over engineering to aim for best performance #rustlang
December 2, 2024 at 2:15 PM
Don’t forget to open your #AdventOfCode today! #rustlang
Advent of Code 2024
adventofcode.com
December 1, 2024 at 9:33 AM
If you want to prepare for this year's #AdventOfCode, take a look at my article on dynamic programming, it will probably be useful for some of the later puzzles! qsantos.fr/2024/01/04/d...
Dynamic Programming is not Black Magic - Quentin Santos
This year’s Advent of Code has been brutal (compare the stats of 2023 with that of 2022, especially day 1 part 1 vs. day 1 part 2). It included a problem to solve with dynamic programming as soon as d...
qsantos.fr
November 30, 2024 at 5:36 PM