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

Rud boosted

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

Near as I can tell, it is the same as a user you can follow. It consolidates all the messages.

Out of Control :laravel: 🇨🇦  
@rmerriam @CppDiscuss As a Mastodon newbie, is a Mastodon `group` something special, or just a normal account that we can follow and mention?
Rud boosted

📢 Episode 140 is out! 📢 In this episode, @code_report and @ben_deane interview speakers live from 🇨🇦 @cppnorth 🇨🇦 2023:

* @vincent4096 (Vincent Zalzal)
* @ciura_victor
* @tristanbrindle
* @derghulbus (Andreas Weis)

This episode was a blast!

adspthepodcast.com/2023/07/28/

Based on the comments here and another private one, I’ll accept that function overloading and similar techniques are polymorphism. That defines the term as “type-based dispatch”, or, in more C++ terms, “type-based invocation”. I can work with that. The main focus will be on the override pattern, CRTP, and other approaches I’ve yet to discern.

Show thread

@mpuckett I am trying to create a group but it isn’t showing up. Any suggestions? The group is @DiscussCPlusCPlus@chirp.social

Show thread

Testing if the group @DiscussCPlusPlus@chirp.social is working. I just created it for and discussions.

Thinking about a conference talk on non-virtual polymorphism. I did an article on Medium with the overload pattern so I have the material. But the definition of “polymorphism” is slippery. For example, is function overloading polymorphism? I don’t think so but if polymorphism is type-based dispatch it kind of fits. 🤔 🤔

Any thoughts?

Rud boosted

An exploration of FizzBuzz using standard functions and the Ranges library, specifically views and pipelines.

medium.com/one-stop-c-plus-plu

I decided to tackle the Dutch Code problem in C++ and write about it.

medium.com/…/visiting-the-dutch-code-in-c…

Looking into learning more about functional programming, especially with . I have the Cukic and Bolboaca books. Just started reading the latter. Unfortunately, they are not in alignment with 20 and obviously not with 23.

I am interested in FP, but I haven’t seen anything that seems current or not focused on other languages.

Please reply if interested and we’ll see if there are enough to start a discussion.

(Is there a hashtag for FP? Creating a tag for discussions.)

Show more
Qoto Mastodon

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