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.
New blog post: Experimenting with modules in Flux
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.
Near as I can tell, it is the same as a user you can follow. It consolidates all the messages.
@freemo How do I create a group?
📢 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!
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.
@mpuckett I am trying to create a group but it isn't showing up. Any suggestions? The group is @DiscussCPlusCPlus@chirp.social
Testing if the group @DiscussCPlusPlus@chirp.social is working. I just created it for #cpp and #CPlusCplus 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?
An article exploring how to return the status from a function.
#cplusplus #CPP #cpp20
https://medium.com/one-stop-c-plus-plus/c-return-any-optional-or-variant-3c2222dbf787
C++ Conference in Toronto, July 17-19, 2023
Discussions: https://discu.eu/q/https://cppnorth.ca
An exploration of FizzBuzz using standard functions and the Ranges library, specifically views and pipelines.
https://medium.com/one-stop-c-plus-plus/c-23-ranges-good-bad-ugly-fizzbuzz-27b2cc06c919
I decided to tackle the Dutch Code problem in C++ and write about it.
Looking into learning more about functional programming, especially with #CPlusCplus. I have the Cukic and Bolboaca books. Just started reading the latter. Unfortunately, they are not in alignment with #Cpp 20 and obviously not with #Cpp 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 #CPlusCplusFP tag for discussions.)
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.