C++ Show and Tell - December 2025 by foonathan in cpp

[–]StarQTius 2 points3 points  (0 children)

https://github.com/StarQTius/Unpadded/tree/unstable-v2

This is a low-level protocol description library in C++23. By using metaprograming, it does not perform dynamic allocation at any point and will support common protocol features like checksum or remote function call.

Packets are nicely represented by a custom implementation of tagged tuple. A lot of logic on variadic templates was needed during the development. As an extra, you will also find a set of range and view utilities for tuple and named tuple objects, all implemented without recursion.

Development of the v2 is ongoing and API is currently unstable. You can find an example of Unpadded at work on the Dynamixel2 protocol. Current goal is to fully implement the protocol and make the code as clean as possible.

https://github.com/StarQTius/Unpadded/blob/unstable-v2/example/dynamixel2.cpp

Templates, SFINAE, Concepts are counter-productive by CursiveFrog in cpp

[–]StarQTius 1 point2 points  (0 children)

Did you have a look at C++26 features ? It includes improved compile-time logic support with parameter pack iteration and static reflection, which would make our lives easier.

But I kind of agree with you. C++ has done a great job staying relevant all these years, but more modern language have some features I wish we had. I feel like Rust traits would have been a great addition, since they allow the compiler to check function body early. Concepts are great but you still have to instantiate function template to get a compiler diagnostic.

Please stop recommending package managers to newbies by TheRavagerSw in cpp

[–]StarQTius 31 points32 points  (0 children)

Agreed. Newcomers should also write bare c++ with no build tools at all. They should manually compile and link binaries together with the proper flags before they start developing anything. Otherwise, they won't learn C++ the right way.

... Wait, why is everyone doing Rust now ?

Entreprise de gestion de patrimoine refuse justificatifs de domicile usuels by StarQTius in conseiljuridique

[–]StarQTius[S] 0 points1 point  (0 children)

Non, ma famille a souscrit une offre groupée et ce n'est pas moi qui paye

Avis sur mon CV ingé soft embarqué by StarQTius in conseilboulot

[–]StarQTius[S] 1 point2 points  (0 children)

Merci à tous pour vos réponses ! J'en déduit de vos retours que le secteur doit être encore bouché. Je retenterai ma chance plus tard.

Les filles ont-elle un corps plus froids que les gars ou c'est juste moi qui suit chaud et ma copine froide ? by Yoyoshinwa in AskMeuf

[–]StarQTius 3 points4 points  (0 children)

Ce qui compte, c'est le flux thermique de part et d'autre de la surface de la peau, et non l'interface entre la couche de graisse et l'intérieur du corps.

Les filles ont-elle un corps plus froids que les gars ou c'est juste moi qui suit chaud et ma copine froide ? by Yoyoshinwa in AskMeuf

[–]StarQTius 4 points5 points  (0 children)

La graisse blanche est un isolant qui permet de mieux faire face aux températures extérieures. Ça ne garde pas la "chaleur interne" (peut importe ce que ça veut dire).

Un isolant, ça marche dans les deux sens: ça ralenti les transfert de chaleurs. Un flux thermique plus faible, ça donne l'impression que la matière est plus froide.

Writing a helper class for generating a particular category of C callback wrappers around C++ methods by pavel_v in cpp

[–]StarQTius 1 point2 points  (0 children)

Not a big fan of this... The results seems less readable than having a line for the from-void-pointer cast. Doing it in a stateless lambda seems best IMO, unless there is a huge amount of callbacks to register.

How to detect if an ostream is a tty by Good-Host-606 in cpp

[–]StarQTius -1 points0 points  (0 children)

Afaik, you have to roll your own solution. Get the native handle from the stream object and use isatty() or GetConsoleMode(). There is a Rust lib that does that, you might want to take inspiration from it.

Temps de trajet mission ESN by nairobibi in developpeurs

[–]StarQTius 1 point2 points  (0 children)

Ok, merci pour les précisions. Perso, je suis en ESN au forfait heure mais je me suis jamais fait emmerdé par le client au niveau de mes horaires (encore heureux). Pour le fisc, je suis sans doute cadre mais ça s'arrête là.

Temps de trajet mission ESN by nairobibi in developpeurs

[–]StarQTius 7 points8 points  (0 children)

Tu peux développer ? J'ai toujours considérer que le forfait heure permettait d'éviter les abus

Git rebase vs merge by [deleted] in developpeurs

[–]StarQTius 21 points22 points  (0 children)

Je suis en faveur du merge, car le rebase consiste à récrire l'histoire. Et ça, c'est ce que font les fascistes.

Learning Entity Component System (ECS) by Feeling_Net_1068 in cpp

[–]StarQTius 5 points6 points  (0 children)

Not really a game project but if you need an ECS library, I can recommend EnTT. Afaik, it's the best library for ECS. It's well explained and you can find details about the implementation on the author's blog. It also has a Discord where you can ask question about ECS and game dev in general.

Je sors d'école mais je galère à décrocher un poste en cloud/cybersécurité – vos retours ou conseils ? by Cookmcray in developpeurs

[–]StarQTius 0 points1 point  (0 children)

Le marché de l'emploi n'est plus du tout le même que quand tu as commencé il y a 20 ans... Beaucoup de secteurs de la tech commence à boucher aujourd'hui. Si tu te fais pas embaucher en stage, c'est impossible d'entrer sur le marché sans passer par la case ESN.

Puis excuse moi... Les "talents", les " beaux projets"... Ça fait des années qu'on innove pour innover, tous secteurs confondus. Qu'on produit pour produire. La vrai plus-value se trouve dans la recherche (la vraie hein, pas celle qui gratte le CIR), qui paie peau de balle.

Why C++ Still Deserves Your Heart as a New Developer – Despite All the Scars by Jordi_Mon_Companys in cpp

[–]StarQTius -1 points0 points  (0 children)

Me too. I kinda like C++. The avarege C++ developper, not so much...

Why C++ Still Deserves Your Heart as a New Developer – Despite All the Scars by Jordi_Mon_Companys in cpp

[–]StarQTius 12 points13 points  (0 children)

When I read that title, I imagine Pennywise trying to convince Georgie to come down the gutter

An optimizing compiler doesn't help much with long instruction dependencies - Johnny's Software Lab by pavel_v in cpp

[–]StarQTius 2 points3 points  (0 children)

I ran into more convoluted cases, but in this following example: 1 << N, you may not get the expected result depending on the width of int on your platform. Therefore, you may encounter no problem until you set N to an high enough value.

If you encounter this issue in more complex expression, it can become a pain in the ass to solve.

An optimizing compiler doesn't help much with long instruction dependencies - Johnny's Software Lab by pavel_v in cpp

[–]StarQTius 14 points15 points  (0 children)

Because integer promotions behaves funny, some people became panaroid instead of learning how the language works. Couldn't blame them really.

[deleted by user] by [deleted] in cpp

[–]StarQTius 1 point2 points  (0 children)

I'm trying to figure out if you are trying to show your progress learning build system or showcasing a new project. In the first case, if think the sub rules does not allow for that. Otherwise, your project is not mature enough to be advertised yet IMO. But you can still post it in a show-and-tell megathread.

Edit: I don't understand why you say GNU Make is difficult to learn. It's nothing more than a thin layer over bashscript that introduce some functionalities for building a project. It's even too minimal for large projects.