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.
cppcon2023.sched.com/event/e7e
@cppcon

@sched

Rud boosted

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: indii.org/blog/revisited-combi #cpp #cplusplus #programming #clang #gcc

Rud boosted
Rud boosted

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.

#systemsThinking

@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

HA HA HA HA.

The Super Pac already bought the politicians they want. They don’t need to vote.

@freemo @trinsec

Yes, it does, as I stated.

I don't think you are serious in this discussion. Just stirring the pot.

@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.

@freemo @trinsec No, this is poor reasoning.

Setting a minimum wage fixes the problem that people cannot live on that wage. The fact that it introduces another problem doesn't negate the good done.

The next step is to address the problem of displaced, under-educated workers.

@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.

Rud boosted

@PeterSommerlad @simontoth

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”?

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.

@CppDiscuss

I saw the dog fountain picture on your profile (?). Were you at CppNorth? I did a talk on Ranges.

Show more
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.