A week from now, on Wednesday, 10/4/23, I'm talking about std::any (nay!), std::variant (yeah!), the Overload Idiom (again, yeah!), and CRTP (more, yeah!). Don't miss the special guest appearance of std::tuple.
https://cppcon2023.sched.com/event/e7e9ddb6b5bf4f994033d742e90ab166
@cppcon
#cppcon
@sched
This idea of instantiating C++ templates with std::variant turns out to be more complicated than I thought once compiler optimizations are enabled, but function attributes provide the fix. The example code now looks like this. Full write up here: https://indii.org/blog/revisited-combinatorial-instantiation-of-templates-with-std-variant/ #cpp #cplusplus #programming #clang #gcc
Our job is not what we do, it is what we enable others to do.
Whether by developing and operating useful software,
or by running a program in Marketing,
It is not our activities that define the job, but the capabilities we provide. To customers or the rest of the company.
@freemo I recall a report that the younger children in a household develop better language usage than the older siblings. The reason is they have many older speakers to learn from.
@freemo @trinsec Let me put it another way.
I worked on software that had a bug. I found the problem and thought I'd fixed it. Nope, the bug still appeared. I found another place and fixed that bug. Since the first one didn't work, I reverted the change. Bug is still there.
Both fixes were needed to fix the bug.
That's analogous to the issue of minimum-wate. There are two bugs. A group that should be able to earn a living wage but can't. Then another group that is somehow unable to work to earn a minimum wage.
Fix the second bug.
@freemo @trinsec You aren't paying attention.
There is a group of people who don't get enough money to live.
You get a group of them enough to live. That solves part of the problem.
Now discuss how to get the other people enough to live. Basic income? Instead of tossing out minimum wage think about how to help the other live.
@freemo @trinsec While unions are 'legal' they are hamstrung in states with "right to work" laws.
You state that businesses don't vote but they fund Super Pacs that determine who runs. They don't need to vote. They have economic power that matches or exceeds the political power of the populace.
Unions are an attempt to match the economic power of business.
@olives Why is revealing the information bad? There is a lot of publicly available information about people. I'm an amateur radio operator; my address is in the FCC database.
New blog post: Experimenting with modules in Flux
@bjorn_fahller Invite them to contribute.
From cppreference:
**
Relative order of the elements that remain is preserved and the physical size of the container is unchanged. Iterators pointing to an element between the new logical end and the physical end of the range are still dereferenceable, but the elements themselves have unspecified values (as per MoveAssignable post-condition) (since C++11).
**
Doesn't the last sentence say the state of the [last, end) is invalid, i.e., unusable? That they are in a "moved-from state"?
Want a fun romp through FizzBuzz? It even uses Ranges so it's Functional Programming! Wow! #cpp #cplusplus
https://medium.com/one-stop-c-plus-plus/c-23-ranges-good-bad-ugly-fizzbuzz-27b2cc06c919
I am presenting at @CppCon
this October. The title of the talk is "A Journey into Non-Virtual Polymorphism." It is an introduction to polymorphism that doesn't rely on inheritance.
I hope to see y'all of there, especially those from @CppNorth.
@outofcontrol @CppDiscuss @grafikrobot @anthonywilliams @taxorubio
https://fedi.tips/how-to-use-groups-on-the-fediverse/ is the explanation I followed.
You can see all the posts at https://chirp.social/@CppDiscuss/shared?page=1¤t
I am a retired software developer. Wrote my first FORTRAN IV in 1968. I am still writing C++. I have worked in embedded systems. I have done amateur robotics (non-destructive), including competing in NASA Centennial Challenges. The header image is from the Space Robotics Challenge.
Wrote for Hackaday.com for a few years about C++ with a focus on Arduino and Pi.
I am an Amateur Radio Operator, or Ham, licensed as K5RUD by the US FCC. That means I can build a transmitter without the FCC checking my build. Nobody but hams can do this.
Father of 2, although I lost my son in 2014. Grandfather of 3 (2m, 1f) and g-grandfather of 1 male.
I follow C++, legal, political, SF authors, and general random discussions.