Marc Planard's latest activity
Marc Planard announced a note
10 months
Solving leetcode in C++ and Rust in parallel (two solutions for every problem, switching the language you use first) seems to be an interesting and useful experience.
The contrast and language differences is highlighted as never: you see how much easier and compact is a binary tree traversal in C++, and you see how many possible issues are prevented by Rust compiler which enforces you to check and recheck every step in the very same function.
At the moment I've got quite a number of segfaults for corner cases in C++ solutions and still waiting for the first Rust one :)
Still not sure if the leetcode (or other competitive programming problems) are connected to our daily coding experience, but my personal feeling "In C++ you compile it right away and then fight with gdb to make it run; in Rust you fight with compiler and then happily use it right after it's compiled" is confirmed again.
…See more
Solving leetcode in C++ and Rust in parallel (two solutions for every problem, switching the language you use first) seems to be an interesting and useful experience.
The contrast and language differences is highlighted as never: you see how much easier and compact is a binary tree traversal in C++, and you see how many possible issues are prevented by Rust compiler which enforces you to check and recheck every step in the very same function.
At the moment I've got quite a number of segfaults for corner cases in C++ solutions and still waiting for the first Rust one :)
Still not sure if the leetcode (or other competitive programming problems) are connected to our daily coding experience, but my personal feeling "In C++ you compile it right away and then fight with gdb to make it run; in Rust you fight with compiler and then happily use it right after it's compiled" is confirmed again.
See less
Solving leetcode in C++ and Rust in parallel (two solutions for every problem, switching the language you use first) seems to be an interesting and useful experience.
The contrast and language differences is highlighted as never: you see how much easier and compact is a binary tree traversal in C++, and you see how many possible issues are prevented by Rust compiler which enforces you to check and recheck every step in the very same function.
At the moment I've got quite a number of segfaults for corner cases in C++ solutions and still waiting for the first Rust one :)
Still not sure if the leetcode (or other competitive programming problems) are connected to our daily coding experience, but my personal feeling "In C++ you compile it right away and then fight with gdb to make it run; in Rust you fight with compiler and then happily use it right after it's compiled" is confirmed again.
Solving leetcode in C++ and Rust in parallel (two solutions for every problem, switching the language you use first) seems to be an interesting and useful experience.
The contrast and language differences is highlighted as never: you see how much easier and compact is a binary tree traversal in C++, and you see how many possible issues are prevented by Rust compiler which enforces you to check and recheck every step in the very same function.
At the moment I've got quite a number of segfaults for corner cases in C++ solutions and still waiting for the first Rust one :)
Still not sure if the leetcode (or other competitive programming problems) are connected to our daily coding experience, but my personal feeling "In C++ you compile it right away and then fight with gdb to make it run; in Rust you fight with compiler and then happily use it right after it's compiled" is confirmed again.
@mo8it I recognized the imitation, and I'm familiar neither with the English nor with the German version :)
…See more
@mo8it I recognized the imitation, and I'm familiar neither with the English nor with the German version :)
See less
@mo8it I recognized the imitation, and I'm familiar neither with the English nor with the German version :)
@mo8it I recognized the imitation, and I'm familiar neither with the English nor with the German version :)
…See more
See less
@LaurentChemla c'est cohérent avec le temps ici, on se paye les giboulées de Mars en ce moment.
…See more
@LaurentChemla c'est cohérent avec le temps ici, on se paye les giboulées de Mars en ce moment.
See less
@LaurentChemla c'est cohérent avec le temps ici, on se paye les giboulées de Mars en ce moment.
@LaurentChemla c'est cohérent avec le temps ici, on se paye les giboulées de Mars en ce moment.
…See more
See less
Marc Planard announced a note
10 months- 10mo ·
-
Public·
-
twit.social
The best case for #Rust's async-await comes from embedded:
"Rust's async/await allows for unprecedently easy and efficient multitasking in embedded systems. Tasks get transformed at compile time into state machines that get run cooperatively. It requires no dynamic memory allocation, and runs on a single stack, so no per-task stack size tuning is required. It obsoletes the need for a traditional RTOS with kernel context switching, and is faster and smaller than one!"
https://github.com/embassy-rs/embassy?tab=readme-ov-file#rust--async-%EF%B8%8F-embedded
…See more
The best case for #Rust's async-await comes from embedded:
"Rust's async/await allows for unprecedently easy and efficient multitasking in embedded systems. Tasks get transformed at compile time into state machines that get run cooperatively. It requires no dynamic memory allocation, and runs on a single stack, so no per-task stack size tuning is required. It obsoletes the need for a traditional RTOS with kernel context switching, and is faster and smaller than one!"
https://github.com/embassy-rs/embassy?tab=readme-ov-file#rust--async-%EF%B8%8F-embedded
See less
The best case for #Rust's async-await comes from embedded:
"Rust's async/await allows for unprecedently easy and efficient multitasking in embedded systems. Tasks get transformed at compile time into state machines that get run cooperatively. It requires no dynamic memory allocation, and runs on a single stack, so no per-task stack size tuning is required. It obsoletes the need for a traditional RTOS with kernel context switching, and is faster and smaller than one!"
https://github.com/embassy-rs/embassy?tab=readme-ov-file#rust--async-%EF%B8%8F-embedded
The best case for #Rust's async-await comes from embedded:
"Rust's async/await allows for unprecedently easy and efficient multitasking in embedded systems. Tasks get transformed at compile time into state machines that get run cooperatively. It requires no dynamic memory allocation, and runs on a single stack, so no per-task stack size tuning is required. It obsoletes the need for a traditional RTOS with kernel context switching, and is faster and smaller than one!"
https://github.com/embassy-rs/embassy?tab=readme-ov-file#rust--async-%EF%B8%8F-embedded
@jehansanspour @danahilliot @slaettaratindur @Erdrokan heureusement que j'ai lu les commentaires, j'allais mordre.
…See more
@jehansanspour @danahilliot @slaettaratindur @Erdrokan heureusement que j'ai lu les commentaires, j'allais mordre.
See less
@jehansanspour @danahilliot @slaettaratindur @Erdrokan heureusement que j'ai lu les commentaires, j'allais mordre.
@jehansanspour @danahilliot @slaettaratindur @Erdrokan heureusement que j'ai lu les commentaires, j'allais mordre.
…See more
See less
…See more
@teromene yeah I did that but all this is not very satisfying, and it adds an indirection... Thanks for the help though.
…See more
@teromene yeah I did that but all this is not very satisfying, and it adds an indirection... Thanks for the help though.
See less
@teromene yeah I did that but all this is not very satisfying, and it adds an indirection... Thanks for the help though.
@teromene yeah I did that but all this is not very satisfying, and it adds an indirection... Thanks for the help though.
…See more
See less
@teromene ha, thanks, that makes it marginally less awkward :) .
But of course, my actual field is in fact a Vec<NaiveDateTime> so a straightforward deserialize_with=... is not cutting it yet 😅
…See more
@teromene ha, thanks, that makes it marginally less awkward :) .
But of course, my actual field is in fact a Vec<NaiveDateTime> so a straightforward deserialize_with=... is not cutting it yet 😅
See less
@teromene ha, thanks, that makes it marginally less awkward :) .
But of course, my actual field is in fact a Vec<NaiveDateTime> so a straightforward deserialize_with=... is not cutting it yet 😅
@teromene ha, thanks, that makes it marginally less awkward :) .
But of course, my actual field is in fact a Vec<NaiveDateTime> so a straightforward deserialize_with=... is not cutting it yet 😅
…See more
See less
A little #rust #serde #chrono question: I have a json document storing datetime as "2024-01-23T09:50" . Deserialization with serde to chrono::NaiveDateTime fails because it expects seconds which are missing. Do I really have to implement my custom Deserializer module with #[serde(with = "my_date_format")] or is there a more straightforward way?
Edit: playground example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=bc65599ce17c4cab97a9c171632b0ed8
…See more
A little #rust #serde #chrono question: I have a json document storing datetime as "2024-01-23T09:50" . Deserialization with serde to chrono::NaiveDateTime fails because it expects seconds which are missing. Do I really have to implement my custom Deserializer module with #[serde(with = "my_date_format")] or is there a more straightforward way?
Edit: playground example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=bc65599ce17c4cab97a9c171632b0ed8
See less
A little #rust #serde #chrono question: I have a json document storing datetime as "2024-01-23T09:50" . Deserialization with serde to chrono::NaiveDateTime fails because it expects seconds which are missing. Do I really have to implement my custom Deserializer module with #[serde(with = "my_date_format")] or is there a more straightforward way?
Edit: playground example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=bc65599ce17c4cab97a9c171632b0ed8
A little #rust #serde #chrono question: I have a json document storing datetime as "2024-01-23T09:50" . Deserialization with serde to chrono::NaiveDateTime fails because it expects seconds which are missing. Do I really have to implement my custom Deserializer module with #[serde(with = "my_date_format")] or is there a more straightforward way?
Edit: playground example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=bc65599ce17c4cab97a9c171632b0ed8
Marc Planard announced a note
10 months- 10mo ·
-
Public·
-
social.vivaldi.net
I'm having a conversation with a designer about icons. Making a screenreader read "camera" or "microphone" when an icon is shown is trivial with aria-label. But screenreader users are massively outnumbered by sighted users who might be confused by the meaning of a tiny image/ icon. The mighty Paul Annett explains more:
…See more
I'm having a conversation with a designer about icons. Making a screenreader read "camera" or "microphone" when an icon is shown is trivial with aria-label. But screenreader users are massively outnumbered by sighted users who might be confused by the meaning of a tiny image/ icon. The mighty Paul Annett explains more:
See less
I'm having a conversation with a designer about icons. Making a screenreader read "camera" or "microphone" when an icon is shown is trivial with aria-label. But screenreader users are massively outnumbered by sighted users who might be confused by the meaning of a tiny image/ icon. The mighty Paul Annett explains more:
I'm having a conversation with a designer about icons. Making a screenreader read "camera" or "microphone" when an icon is shown is trivial with aria-label. But screenreader users are massively outnumbered by sighted users who might be confused by the meaning of a tiny image/ icon. The mighty Paul Annett explains more:
Marc Planard announced a question
10 months- 10mo ·
-
Public·
-
phpc.social
When you write end-to-end tests, if you fake the real database with something else (like Sqlite), can you still call it an end-to-end test?
…See more
When you write end-to-end tests, if you fake the real database with something else (like Sqlite), can you still call it an end-to-end test?
See less
When you write end-to-end tests, if you fake the real database with something else (like Sqlite), can you still call it an end-to-end test?
When you write end-to-end tests, if you fake the real database with something else (like Sqlite), can you still call it an end-to-end test?
-
Yes (4)
-
No (7)
-
Sometimes (4)
Marc Planard announced a note
10 months
@mart1oeil l'expérience client... Misère...
…See more
@mart1oeil l'expérience client... Misère...
See less
@mart1oeil l'expérience client... Misère...
@mart1oeil l'expérience client... Misère...
…See more
See less
@lefoodingue pour les gens un tout petit peu anxieux sur la géopolitique je recommande (pas) le téléfilm "Countdown to Looking Glass"...
…See more
@lefoodingue pour les gens un tout petit peu anxieux sur la géopolitique je recommande (pas) le téléfilm "Countdown to Looking Glass"...
See less
@lefoodingue pour les gens un tout petit peu anxieux sur la géopolitique je recommande (pas) le téléfilm "Countdown to Looking Glass"...
@lefoodingue pour les gens un tout petit peu anxieux sur la géopolitique je recommande (pas) le téléfilm "Countdown to Looking Glass"...
…See more
See less
Marc Planard announced a note
10 months- 10mo ·
-
Public·
-
ruby.social
Rust version 😁
I don't care if Monday's blue
Tuesday's gray
Wednesday too
Thursday I don't care about you
It's Friday I'm in love
…See more
Rust version 😁
I don't care if Monday's blue
Tuesday's gray
Wednesday too
Thursday I don't care about you
It's Friday I'm in love
See less
Rust version 😁
I don't care if Monday's blue
Tuesday's gray
Wednesday too
Thursday I don't care about you
It's Friday I'm in love
Rust version 😁
I don't care if Monday's blue
Tuesday's gray
Wednesday too
Thursday I don't care about you
It's Friday I'm in love
Marc Planard announced a note
10 months- 10mo ·
-
Public·
-
social.sciences.re
#Science #Informatique
« Structures de contrôle : de "goto" aux effets algébriques »
📌 Le cours du Pr Xavier Leroy, titulaire de la chaire Sciences du logiciel, commence la semaine prochaine.
⏰ Jeudi 25 janvier 2024
👉 https://www.college-de-france.fr/fr/agenda/cours/structures-de-controle-de-goto-aux-effets-algebriques
…See more
#Science #Informatique
« Structures de contrôle : de "goto" aux effets algébriques »
📌 Le cours du Pr Xavier Leroy, titulaire de la chaire Sciences du logiciel, commence la semaine prochaine.
⏰ Jeudi 25 janvier 2024
👉 https://www.college-de-france.fr/fr/agenda/cours/structures-de-controle-de-goto-aux-effets-algebriques
See less
#Science #Informatique
« Structures de contrôle : de "goto" aux effets algébriques »
📌 Le cours du Pr Xavier Leroy, titulaire de la chaire Sciences du logiciel, commence la semaine prochaine.
⏰ Jeudi 25 janvier 2024
👉 https://www.college-de-france.fr/fr/agenda/cours/structures-de-controle-de-goto-aux-effets-algebriques
#Science #Informatique
« Structures de contrôle : de "goto" aux effets algébriques »
📌 Le cours du Pr Xavier Leroy, titulaire de la chaire Sciences du logiciel, commence la semaine prochaine.
⏰ Jeudi 25 janvier 2024
👉 https://www.college-de-france.fr/fr/agenda/cours/structures-de-controle-de-goto-aux-effets-algebriques
…See more
See less
Marc Planard announced a note
10 months
Happy 40th Birthday to probably one of the most important and influential computer games ever written, Elite.
…See more
Happy 40th Birthday to probably one of the most important and influential computer games ever written, Elite.
See less
Happy 40th Birthday to probably one of the most important and influential computer games ever written, Elite.
Happy 40th Birthday to probably one of the most important and influential computer games ever written, Elite.
…See more
See less
@leozin bha c'est un classique :) si l'ordinateur détecte l'écran mais que l'écran n'affiche rien c'est souvent qu'on lui demande une résolution qui n'est pas supportée. La question c'est pourquoi l'auto-détection se passe mal, normalement ça devrait pas arriver...
…See more
@leozin bha c'est un classique :) si l'ordinateur détecte l'écran mais que l'écran n'affiche rien c'est souvent qu'on lui demande une résolution qui n'est pas supportée. La question c'est pourquoi l'auto-détection se passe mal, normalement ça devrait pas arriver...
See less
@leozin bha c'est un classique :) si l'ordinateur détecte l'écran mais que l'écran n'affiche rien c'est souvent qu'on lui demande une résolution qui n'est pas supportée. La question c'est pourquoi l'auto-détection se passe mal, normalement ça devrait pas arriver...
@leozin bha c'est un classique :) si l'ordinateur détecte l'écran mais que l'écran n'affiche rien c'est souvent qu'on lui demande une résolution qui n'est pas supportée. La question c'est pourquoi l'auto-détection se passe mal, normalement ça devrait pas arriver...