Doing Modern C++ things in Embedded Systems and other stuff.
Opinions are my own, and may be horribly wrong.
If I use "😛", I'm not being serious.
He/him.
New blog post! 🔥
For the first time, focusing on how we can help improve Embedded APIs using C++!
Also for the first time, something using C!
And with 10x more exclamation marks!
(and a large twitter-friendly thumbnail!)
https://t.co/Df22BM9ceU
@AlexisPaques@hankadusikova Been hoping for something similar for a while, as well.
The hacks necessary to try to output an error message at compile time nowadays are just sad 😕
@hankadusikova I do dabble in metaprogramming, so C with class templates! 😛
E.g. my current project has a component-based architecture with an event dispatcher set at compile time.
Also, libraries like ETL can help when static allocation + noexcept replacements for the STL are needed...
I played https://t.co/If5JiW2wwD (Jan 23, 2024) and won in 7 guesses! - 🪢 5
🟩❌🍀🟪🟦🟧🟨
---
This one was brutal, I even had to use a hint.
And I made the game with a friend during the New Year's break, so I guess this share counts as a soft launch 😅
@horenmar_ctu I believe I read on cppreference that it had some guarantees for the 0 and 1 cases, besides floating point stabilities, but I'm not completely familiar with any practical issues...
Saw that libcxx implements an extra condition for when signs differ, but that was about it.
Practicing a foreign language with ChatGPT has actually been very interesting:
1. It understands you when you make a mistake
2. It can explain you concepts and what you did wrong
3. It can swap between languages when you need it
4. And, most importantly, it won't judge you!
@nosenkow@shafikyaghmour@pati_gallardo The name has zero-width whitespaces around it, not in the middle (so it doesn't ruin searches for my name).
So you need to drag before AND after the zero-width whitespace boundaries to copy both.
Double-clicking the name and copying it doesn't copy the spaces, for instance.
@olafurw This reminds me of the "Pardon my Icelandic" stand-up special...
There's a bit on it exactly about how many "Per Capita" things are weird in Iceland 😅
But I do agree; GDP per capita, for example, reflects very little to how rich average people are in a country... No sense 🤷🏻♂️
@vzverovich You sneeze at one array, it decays into a pointer.
Also, there is no difference between a pointer to object and a pointer to the first object in a contiguous sequence.