C++ - Reddit – Telegram
C++ - Reddit
226 subscribers
48 photos
8 videos
24.3K links
Stay up-to-date with everything C++!
Content directly fetched from the subreddit just for you.

Join our group for discussions : @programminginc

Powered by : @r_channels
Download Telegram
C++26 Reflection appreciation post

I have been tinkering with reflection on some concrete side project for some times, (using the Clang experimental implementation : https://github.com/bloomberg/clang-p2996 ) and I am quite stunned by how well everything clicks together.
The whole this is a bliss to work with. It feels like every corner case has been accounted for. Every hurdle I come across, I take a look at one of the paper and find out a solution already exists.

It takes a bit of getting used to this new way of mixing constant and runtime context, but even outside of papers strictly about reflection, new papers have been integrated to smooth things a lot !

I want to give my sincere thanks and congratulations to everyone involved with each and every paper related to reflection, directly or indirectly.

I am really stunned and hyped by the work done.

https://redd.it/1pl7t3p
@r_cpp
How to make my C++ project portable.

So about 15 years ago when I was at ITT Tech, I made a simple project. Basically a Mega Man 2 BGM selection menu. I ran into 2 issues when I actually presented my project.

\#1 I tried to be clever and assign the file directory to my thumb drive. At the time it was my D: drive. When I went to present the project, the computer reassigned my thumb drive's letter because the presenting computer (unbeknownst to me) already had a D: drive. So the program broke because it couldn't reference the locations of the music files it was playing. Ok no problem. I grab my own laptop and continue on.

\#2 A few weeks ago, I go back and take a look at the program. My son is taking a computer science class in high school, and I want to show him what I was doing when I started getting into programming. Kinda an inspiration, idea jogging type of thing. So I go to load the program. I start researching how to fix the reference issue. Ok I got that. Cool so I can now send my program to him, and my own high school buddy who is getting into programming himself a little bit.

They get the file and try to run the exe. They get 4 errors:
\-"The code execution cannot proceed because MSVCP140D.dll was not found. Reinstalling the program may fix this problem."

\-"The code execution cannot proceed because VCRUNTIME140D.dll was not found. Reinstalling the program may fix this problem."

\-"The code execution cannot proceed because VCRUNTIME140_1D.dll was not found. Reinstalling the program may fix this problem."

\-"The code execution cannot proceed because ucertbased.dll was not found. Reinstalling the program may fix this problem."


There's nothing to install. It's just an executable compiled by Visual Basic compiler. Maybe that's the problem. How do I get these 4 files, and how can I send them in such a way that my program can be run (or installed to run) on another computer. I'm guessing I have the files on my laptop because they came with Visual Basic? I'm not sure, but it seems like a big ask to have end users download Visual Basic just to run an exe.

https://redd.it/1plcbb1
@r_cpp
Boost::MSM New C++17 back-end with significantly improved compilation times and new features

Hi reddit,

I'm excited to announce that a new back-end has been released for MSM in Boost version 1.90!

This new back-end requires C++17, below are the most noteworthy features:

Significantly improved compilation times and RAM usage
It compiles up to 10x faster and uses up to 10x less RAM for compilation than the old back-end by utilizing Boost's Mp11 library, which provides excellent support for metaprogramming with variadic templates.
In my benchmarks it even surpasses the compile time of SML, compiling up to 7 times faster and using up to 4 times less memory when building large hierarchical state machines.

Support for dependency injection
It allows the configuration of a context, of which an instance can be passed to the state machine at construction time. This context can be used for dependency injection, and in case of hierarchical state machines it is accessible from all sub state machines.

Access the root state machine from any sub state machine
When hierarchical state machines are used, we often have the need to access the upper-most, "root" state machine from any sub state machine. For example to trigger the processing of events further up in our state machine hierarchy.
For this need the back-end supports the configuration of the upper-most state machine as a root_sm. Similar to the context, the root state machine is accessible from all sub state machines.

New universal visitor API
The visitor functionality has been reworked, the result being a universal visitor API that supports various modes to traverse through a state machine's states:

Ability to select either only the currently active states or all states
Visit the sub state machines recursively (in DFS mode) or visit only the immediate sub states & sub machines without recursion

This API can be utilized for many advanced use cases, and the back-end uses it extensively in its own implementation. For example for the initialization of the context parameter in all sub state machines.

Benchmarks, the denoscription of further features and instructions how to use the new MSM back-end are available in the MSM documentation.

https://redd.it/1plfg9b
@r_cpp
looking for a technical person to build an open-source CAD prototype.

im a final year undergrad mechanical engineer working on a small and open-source parametric CAD prototype software for the past 1 year. some stuff which I have built have attracted small MSMEs and other founders who are working on text-to-CAD and generative CAD.

the goal is not a solidworks or any other CAD software replacement, but a clean and a fundamental approach to CAD. some of the features include parametric design and gd&t etc. i need someone who has a bit of CAD knowledge and the problems faced in the CAD software industry also some other stuff mentioned below.

current focus:
- parametric solid modeling (small scope)
- clean geometry core (likely opencascade / c++ or rust)
- simple architecture

i’m looking for a technical/core contributor who enjoys:
- computational geometry
- cad kernels / brep / csg
- c++ or rust systems work
- building things from first principles

this is open-source first, no hype and no guaranteed money in the beginning.

if this sounds interesting, comment or dm me with:
what you’ve built
what part you’d like to work on
happy to share more details privately.

ps: this is not just some text-to-CAD idea or where you inject AI/LLMs wherever you get to in this. i need someone who is really interested in building from scratch and especially who focuses on their fundamentals.

https://redd.it/1plgecz
@r_cpp
A response to the question "Does Microsoft still support C++?": (Quote) ".... still the largest single team of C++ toolset engineers employed by any one company."
https://www.reddit.com/r/cpp/comments/1pl7t3p/comment/ntsak6s/

https://redd.it/1plpzv8
@r_cpp
Certificates for c++

Hello guys I learned c++ but never had anything like a certificate. So I wanted to ask if I could get somewhere one for free for completing a course or so. Thx for replies.

https://redd.it/1pm2tlr
@r_cpp
Guildeline for becoming a pro c++ developer

Hey everyone,
I’d really appreciate some guidance from experienced engineers, especially those working at strong tech or trading firms (like Optiver, Squarepoint, Da Vinci, Rubrik, etc.).

I’m currently trying to improve my C++ skills and would love to understand how seasoned engineers approached mastering it. If you’re comfortable sharing, what kind of roadmap or focus areas helped you grow into a strong C++ engineer and become competitive for such roles?

Any advice or perspective would be very helpful. Thank you!

https://redd.it/1pm9su3
@r_cpp
Exploring macro-free testing in modern C++

Some time ago I wrote about a basic C++ unit-testing library I made that aimed to use no macros. I got some great feedback after that and decided to improve the library and release it as a standalone project. It's not intended to stand up to the giants, but is more of a fun little experiment on what a library like this could look like.

Library: https://github.com/anupyldd/nmtest

Blogpost: https://outdoordoor.bearblog.dev/exploring-macro-free-testing-in-modern-cpp/

https://redd.it/1pmflde
@r_cpp
C++ Module Packaging Should Standardize on .pcm Files, Not Sources

Some libraries, such as fmt, ship their module sources at install time. This approach is problematic for several reasons:

If a library is developed using a modules-only approach (i.e., no headers), this forces the library to declare and ship every API in module source files. That largely defeats the purpose of modules: you end up maintaining two parallel representations of the same interface—something we are already painfully familiar with from the header/source model.
It is often argued that pcm files are unstable. But does that actually matter? Operating system packages should not rely on C++ APIs directly anyway, and how a package builds its internal dependencies is irrelevant to consumers. In a sane world, everything except libc and user-mode drivers would be statically linked. This is exactly the approach taken by many other system-level languages.

I believe pcm files should be the primary distribution format for C++ module dependencies, and consumers should be aware of the compiler flags used to build those dependencies. Shipping sources is simply re-introducing headers in a more awkward form—it’s just doing headers again, but worse

https://redd.it/1pmh814
@r_cpp
Blog: Why C++ project setup is still painful in 2025 (and my attempt to fix it)
https://cpx-dev.vercel.app/blog#blog/why-i-built-this

https://redd.it/1pmmm5g
@r_cpp
Building GCC on Windows

I want to test GCC reflection in my setup outside of Compiler Explorer, but trying to build it with MSYS2 seems extremely cumbersome, even with AI, which couldn't help much with all the errors and edge cases due to Windows. What's the expected path for me to do this?

https://redd.it/1pmtq1j
@r_cpp
Recent comments regarding Microsoft's support for C++

Under the recent posting "C++26 Reflection appreciation post", u/STL made some very interesting statements regarding Microsoft's support for C++.

I wouldn't myself expect to find such comments inside a discussion about Reflection, but alas, this is reddit.

I do appreciate these insights a lot and I am convinced that these comments deserve to be highlighted in a separate posting. This is my second try at doing this. Let's see how this one goes.

u/bizwig asked:

>Does Microsoft still support C++? There was some press reporting implying MS was going to stop further development on non-proprietary development tools and concentrate on C#.

u/STL responded:

>Yes. The compiler (front-end, back-end, static analysis), standard library, and Address Sanitizer are being actively developed by what I believe is still the largest single team of C++ toolset engineers employed by any one company.

(emphasis mine)

u/STL gave a number of other interesting insights into the state of affairs re C++ at Microsoft. I recommend to read his comments at the posting linked at the top.

Please note that u/STL is not making statements on behalf of Microsoft (as I understand it), but he is a highly respected member of r/cpp, a moderator of this subreddit and the implementer of the MSVC C++ Standard Library.

I'm not related to Microsoft in any way (other than being a user of their products and their C++ toolchain) and I'm not interested in collecting reddit karma (as someone suspected at my last try).

Thank you for not reporting this posting as SPAM (it clearly isn't).

https://redd.it/1pn3a6t
@r_cpp
[ANN] Boost.OpenMethod overview — open multi‑methods in Boost 1.90
https://www.boost.org/outreach/program_page/openmethod/

https://redd.it/1pn8zqj
@r_cpp
New C++ Conference Videos Released This Month - December 2025 (Updated To Include Videos Released 08/12/25 - 14/12/25)

**CppCon**

2025-12-08 - 2025-12-14

* Back to Basics: How to Refactor C++ Code - Amir Kirsh - [https://youtu.be/jDpvZtdGpj8](https://youtu.be/jDpvZtdGpj8)
* Is The Future of C++ Refactoring Declarative? - Andy Soffer - [https://youtu.be/NuzWd3HAUko](https://youtu.be/NuzWd3HAUko)
* Can C++ Data Oriented Design Be ONE MILLION Times Faster? - [https://youtu.be/IO7jl1rjRvA](https://youtu.be/IO7jl1rjRvA)
* The Declarative Programming SECRETS to More Readable C++ - Richard Powell - [https://youtu.be/xu4pI72zlO4](https://youtu.be/xu4pI72zlO4)
* Crafting the Code You Don’t Write: Sculpting Software in an AI World - Daisy Hollman - [https://youtu.be/v6OyVjQpjjc](https://youtu.be/v6OyVjQpjjc)

2025-12-01 - 2025-12-07

* Optimize Automatic Differentiation Performance in C++ - Steve Bronder - [https://youtu.be/\_YCbGWXkOuo](https://youtu.be/_YCbGWXkOuo)
* Is Your C++ Code Leaking Memory? Discover the Power of Ownership-Aware Profiling - Alecto Irene Perez - [https://youtu.be/U23WkMWIkkE](https://youtu.be/U23WkMWIkkE)
* The Dangers of C++: How to Mitigate Them and Write Safe C++ - Assaf Tzur-El - [https://youtu.be/6eYCMcOYbYA](https://youtu.be/6eYCMcOYbYA)
* Implementing Your Own C++ Atomics - Ben Saks - CppCon 2025 - [https://youtu.be/LtwQ7xZZIF4](https://youtu.be/LtwQ7xZZIF4)
* Building Secure C++ Applications: A Practical End-to-End Approach - Chandranath Bhattacharyya & Bharat Kumar - [https://youtu.be/GtYD-AIXBHk](https://youtu.be/GtYD-AIXBHk)

**C++Now**

2025-12-08 - 2025-12-14

* Lightning Talk: Printf in 1ns Using the Lightweight Logging Library - Greg Law - [https://youtu.be/nH1YT1mrPt0](https://youtu.be/nH1YT1mrPt0)
* Lightning Talk: C++ Rvalue Ranges Aren’t Always Yours - Robert Leahy - C++Now 2025 - [https://youtu.be/\_WiP71KPnU8](https://youtu.be/_WiP71KPnU8)
* Lightning Talk: Implementing an Observable with Friend Injection in C++ - Patrick Roberts - C++Now 2025 - [https://youtu.be/APtmRDBem20](https://youtu.be/APtmRDBem20)

2025-12-01 - 2025-12-07

* Lightning Talk: I Now Maybe Understand C++ Hazard Pointers - Denis Yaroshevskiy - [https://youtu.be/VKbfinz6D04](https://youtu.be/VKbfinz6D04)
* Lightning Talk: constexpr Copyright - Ben Deane - [https://youtu.be/WHgZIC-lsiU](https://youtu.be/WHgZIC-lsiU)
* Lightning Talk: Replace Git With JJ - Your New Version Control & DevOps Solution - Matt Kulukundis - [https://youtu.be/mbK8szLJ-2w](https://youtu.be/mbK8szLJ-2w)

**ACCU**

2025-12-08 - 2025-12-14

* Agentic Debugging Using Time Travel - Greg Law - ACCU York - [https://youtu.be/Hn7vihunjSk](https://youtu.be/Hn7vihunjSk)
* Automate! - Gail Ollis - ACCU 2025 Short Talks - [https://youtu.be/XZUsX6SeA5I](https://youtu.be/XZUsX6SeA5I)
* Do Something: Mindfulness & Mental Health for Software Engineers - Patrick Martin - ACCU Short Talks - [https://youtu.be/zl4HVtkO\_II](https://youtu.be/zl4HVtkO_II)
* Can You Use AWS To Deploy a Serverless Function in Under an Hour? - Paul Grenyer - ACCU York - [https://youtu.be/yK1UpigHU8s](https://youtu.be/yK1UpigHU8s)
* UB Forte - Hilarious Programming Humor - Chris Oldwood - ACCU 2025 Short Talks - [https://youtu.be/hBYWiQfG4Gs](https://youtu.be/hBYWiQfG4Gs)

2025-12-01 - 2025-12-07

* Programming Puzzles - Programming Challenge - Pete Goodliffe - ACCU 2025 Short Talks - [https://youtu.be/jq\_dJPSi\_3M](https://youtu.be/jq_dJPSi_3M)
* C++20 Ranges - The Stuff of Science Fiction - Stewart Becker - ACCU 2025 Short Talks - [https://youtu.be/Key-bfvDHcE](https://youtu.be/Key-bfvDHcE)
* C++ Keywords Speak for Themselves - Jon Kalb - ACCU 2025 Short Talks - [https://youtu.be/zv9eTr1dCU0](https://youtu.be/zv9eTr1dCU0)

**C++ on Sea**

2025-12-08 - 2025-12-14

* Lightning Talk: Naming is Hard - A Field Study - Tina Ulbrich - C++ on Sea 2025 - [https://youtu.be/PPTLeZhuB1E](https://youtu.be/PPTLeZhuB1E)
* Lightning Talk: It Is a Pipe, but Should It Be? (Sorry Magritte) - Björn Fahller - C++ on Sea 2025 - [https://youtu.be/XKVyoWvPCCw](https://youtu.be/XKVyoWvPCCw)
* Lightning
Talk: From Wide to Wrong - Spotting Dangerous Conversions in C++ - Nico Eichhorn - C++ on Sea 2025 - [https://youtu.be/-Qx7L5iv8Hw](https://youtu.be/-Qx7L5iv8Hw)

2025-12-01 - 2025-12-07

* Lightning Talk: Pólya Performance Thinking - Andrew Drakeford - [https://youtu.be/qZPBr\_jhE1o](https://youtu.be/qZPBr_jhE1o)
* Lightning Talk: Teaching the NES - What 6502 Assembly Reveals About Modern C++ - Tom Tesch - [https://youtu.be/gCM5t0Txf8U](https://youtu.be/gCM5t0Txf8U)
* Lightning Talk: Terminating Your Bugs With Time Travel and AI - Rashmi Khetan - [https://youtu.be/-OrJyN2Mw7s](https://youtu.be/-OrJyN2Mw7s)

**Meeting C++**

2025-12-08 - 2025-12-14

* Meet Qt - Ganesh Rengasamy - Meeting C++ 2025 Lightning talks - [https://www.youtube.com/watch?v=dVwQG2zS4zE](https://www.youtube.com/watch?v=dVwQG2zS4zE)
* Start teaching C++ (to beginners!) - Hannah Lenk - Meeting C++ 2025 lighning talks - [https://www.youtube.com/watch?v=f6fEB2N1i00](https://www.youtube.com/watch?v=f6fEB2N1i00)

2025-12-01 - 2025-12-07

* Our Most Treacherous Adversary - James McNellis - Meeting C++ 2025 lightning talks - [https://www.youtube.com/watch?v=zC\_uwGqSLqQ](https://www.youtube.com/watch?v=zC_uwGqSLqQ)
* Let them eat cake - Rahel Natalie Engel - Meeting C++ 2025 lightning talks - [https://www.youtube.com/watch?v=gQ6grpbhW8k](https://www.youtube.com/watch?v=gQ6grpbhW8k)
* Vector to Array - Robin Savonen Söderholm - Meeting C++ 2025 - [https://www.youtube.com/watch?v=TdL2rvtOGos](https://www.youtube.com/watch?v=TdL2rvtOGos)

https://redd.it/1pner3w
@r_cpp