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
Performance Engineer or RL Engineer

Dear all, I have an experience in performance optimization. I have worked in this field for a few years. I also have experience in C++ for many years.
Now I got an offer in RL field in a big company. It is confident.

Experience in performance opens a lot of doors. I can work in many big-techs.
But ML is growing now. And LLM probably can remove doors for C++ engineers.

Should I change my direction? I'm 30 years old now.

UPD: RL is Reinforcement Learning

https://redd.it/1pp7sxm
@r_cpp
Hey all I want a suggestion

So i'm in a private college pursuing B.tech in CS. I am currently in 1st semester but i want to do competitive programming , can anyone experienced help me with a roadmap that will actually work and i won't be wasting my time. I'm currently doing pattern printing so i'm beginner in C++

https://redd.it/1pph4sc
@r_cpp
Sorting Comparator function how they works internally ?

static bool cmp(int a, int b){
        return tostring(a) + tostring(b) >
               tostring(b) + tostring(a);
    }

https://redd.it/1pqdtxp
@r_cpp
Latest News From Upcoming C++ Conferences (2025-12-19)

OPEN CALL FOR SPEAKERS

CppCon Academy 2026 – CppCon Academy is asking for instructors to submit proposals for pre- and post-conference classes and/or workshops to be taught in conjunction with next year’s CppCon 2026.
Workshops can be online or onsite and interested instructors have until January 30th to submit their workshops. Find out more including how to submit your proposal at https://cppcon.org/cfp-for-2026-classes/
ACCU on Sea 2026 – Interested speakers have until January 11th to submit their talks which is scheduled to take place on 17th – 20th June. Find out more including how to submit your proposal at [https://accuconference.org/callforspeakers](https://accuconference.org/callforspeakers)

OTHER OPEN CALLS

(NEW) C++Online
(NEW) Call For Online Volunteers – Attend C++Online 2026 FOR FREE by becoming an online volunteer! Find out more including how to apply at [https://cpponline.uk/call-for-volunteers/](https://cpponline.uk/call-for-volunteers/)
(NEW) Call For Online Posters – Get a FREE ticket to C++Online 2026 by presenting an online poster in their virtual venue which can be on any C++ or C++ adjacent topic. Find out more and apply at https://cpponline.uk/posters
(NEW) Call For Open Content – Get a FREE ticket to C++Online 2026 by…
Presenting a talk, demo or workshop as open content at the start or end of each day of the event. Find out more and apply at https://cpponline.uk/call-for-open-content/
Running a meetup or host a social event like a pub quiz or a tetris tournament.  Find out more and apply at [https://cpponline.uk/call-for-meetups/](https://cpponline.uk/call-for-meetups/)
If you run a meetup, then discounted entry will be given for other members of your meetup. 

TICKETS AVAILABLE TO PURCHASE

The following conferences currently have tickets available to purchase

ACCU on Sea (15th – 20th June) – You can buy super early bird tickets at [https://accuconference.org/booking](https://accuconference.org/booking) with discounts available for ACCU members.

OTHER NEWS

(NEW) C++Online 2026 Announced (11th – 13th March) – The C++Online 2026 Conference has been announced and will run as an online only conference and will also include post-conference workshops (separate registration required). Find out more at https://cpponline.uk/announcing-cpponline-2026-11th-13th-march/
(NEW) C++Now 2026 Announced (4th – 8th May) – The C++Now 2026 Conference has been announced and will run as an in-person only conference in Aspen, Colorado. Find out more at [https://cppnow.org/announcements/2025/12/announcing-cppnow-2026/](https://cppnow.org/announcements/2025/12/announcing-cppnow-2026/)
C++Online 2026 Call For Reviews Open – The C++Online team are looking for people to review talks that were submitted to be considered for the C++ Online 2026 programme. Please visit https://speak.cpponline.uk/ and login or make an account to review the talks with reviews accepted until December 22nd.

https://redd.it/1pqpv7p
@r_cpp
Ways to generate crash dumps for crash handling?

Hi there!
I was interested in generating crash minidumps cross platform for debugging-- I've found them to be a useful tool for debugging. I know you can use SEH on Windows, but that's exclusive to windows, and cannot be mixed with C++ exception handling. Is there a way to write an exception handler that can grab what the state of memory looked like, as well as the call stack in order to generate a crash report/crash dump? I know there's also like google breakpad/crashpad but it seemed like I'd need to add in chromium to my project, and there's also Sentry, but I wanted to see what other options I have.

https://redd.it/1pqy1hm
@r_cpp
POC of custom conditional warnings exploiting C++26's expansion statements and deprecated attribute for compile-time debugging

I came up with this hacky trick for custom compiler warnings (not errors) that are conditional on a compile-time known bool. I know it is not the prettiest error message but it at least has all the relevant information to be useful for compile-time (print) debugging. Thought it would be cool to share here and please let me know if there is a better way to achieve this or if it can be achieved in C++23 or prior. Check it out here: https://godbolt.org/z/br6vGdvex

https://redd.it/1pr7dpm
@r_cpp
5hrs spent debugging just to find out i forgot to initialize to 0 in class.

Yup, it finally happened.

I am making a voxel terrain generation project to learn OpenGL. It was my abstraction of vertex arrays. Initially, when I created this class, it generated an ID in the constructor, but then when I introduced multithreading, I needed to stop doing that in the constructor (bad design, I know—need to study design patterns). So I introduced a boolean to initialize it when the first call to Bind() is made. But I didn't set it to false at that time. I saw chunks rendering, but there were gaps between them. So I started debugging, and honestly, the VertexArray class wasn't even on my mind. I just printed the VAO values in the output along with some other data. Although the values were somewhat random, I ignored it because OpenGL only guarantees unique unused values, not how they're generated. But then in the middle, I saw some were small and continuous like 1, 2, ..., 10. Then I put a print statement in the Generate() function of VertexArray and realized it wasn't even being called.

Yup, that's my rant. And here's the ugly code I wrote:

cpp

class VertexArray {
public:
explicit VertexArray(bool lazy = false);
~VertexArray();

// Returns the vertex array ID
GLuint id() const { return arrayid; }
void Generate();

// Binds this vertex array
void Bind();
void UnBind();

// Adds and enables the attribute
void AddAttribute(Attribute attribute);

private:
GLuint arrayid{};
};

https://redd.it/1prafjr
@r_cpp
Implicit contract assertions: systematizing eliminating all undefined behavior for C++

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3100r5.pdf

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