What are the Cppx, Cppx-Blue, and Cppx-Gold languages on Compiler Explorer
Reddit » C++
by /u/Similar-Artichoke-64
6h ago
I was trying to search this on Google, but the only thing I came across is Lock3 Software's Clang fork that supports blue and gold (https://github.com/lock3/cppx). What exactly are these languages? I know they are modifications to vanilla C++ adding support for things like reflection and metaclasses, but that is all I know. submitted by /u/Similar-Artichoke-64 [visit reddit] [comments ..read more
Visit website
C++ Show and Tell - May 2024
Reddit » C++
by /u/foonathan
6h ago
Use this thread to share anything you've written in C++. This includes: a tool you've written a game you've been working on your first non-trivial C++ program The rules of this thread are very straight forward: The project must involve C++ in some way. It must be something you (alone or with others) have done. Please share a link, if applicable. Please post images, if applicable. If you're working on a C++ library, you can also share new releases or major updates in a dedicated post as before. The line we're drawing is between "written in C++" and "useful for C++ programmers specifically ..read more
Visit website
Making a faster std::function, a different way to type erase
Reddit » C++
by /u/sir_manshu
6h ago
link : https://godbolt.org/z/9TT4846xo Experimented with a function wrapper with no inheritance and virtual methods. This is not a complete function wrapper implementation but it can serve as a reference. This implementation does not need to allocate if constructed with a function pointer but for lambdas, an allocation happens and function pointers are used to store type information. This seems to perform better than std::function especially with non-optimized builds, optimized builds speed up on the other hand varies from compiler to compiler. Clang18.1 and GCC13.2 for example can optimize o ..read more
Visit website
Johan Berg : Using C callbacks in C++
Reddit » C++
by /u/_a4z
6h ago
submitted by /u/_a4z [visit reddit] [comments ..read more
Visit website
Awaiting a set of handles with a timeout, part 2: Continuing with two
Reddit » C++
by /u/cherry-pie123
19h ago
https://devblogs.microsoft.com/oldnewthing/20240501-00/?p=109718 submitted by /u/cherry-pie123 [visit reddit] [comments ..read more
Visit website
Question about mass-refactor tools
Reddit » C++
by /u/fapablaza
19h ago
Hi I have some code bases with lots of sub-optimal programming practices, due from being legacy code, and from time-pressure causes. A lot of those issues can be easly solved by using refactoring tools, for example: Changing symbol style (for example mixed snake case with pascal case) Moving non-trivial method implementation from header to source files. Formatting issues, among others. Is there any tool that can be used for performing these refactors across the entire code base? submitted by /u/fapablaza [visit reddit] [comments ..read more
Visit website
How do you get into High-Performance Computing?
Reddit » C++
by /u/ElusiveTau
19h ago
I would like to have a career in High Performance Computing but I don't know how to develop the skills that'll make me employable. I'm going to make an educated guess and say that the primarily applications of HPC can be found in academia (e.g., astronomy, physics), finance (high-frequency trading), AI, and defense (radar, DSP, communication systems). Do SW devs who work in High Performance Computing pick up a general technical skillset and are hired in any industry? Or do they first specialize in one industry and jump to other industries (e.g., start out in defense doing DSP HPC for communic ..read more
Visit website
What is the most disgusting compiler error you have ever gotten?
Reddit » C++
by /u/scatraxx651
19h ago
I'm just curious. Often I get very long compiler errors, where the substance is actually just a mere 1 line somewhere in that output. For example if I forget to include a forward declared type within a vector / shared_ptr good luck. What is the nastiest error you had ? submitted by /u/scatraxx651 [visit reddit] [comments ..read more
Visit website
What's the point with the MISRA guidelines for C++?
Reddit » C++
by /u/reza_132
1d ago
https://www.perforce.com/resources/qac/misra-c-cpp MISRA is a set of guidelines for C++ for embedded systems, there are strange rules like (from the link): Rule 14.9 An if (expression) construct shall be followed by a compound statement. The else keyword shall be followed by either a compound statement, or another if statement. Rule 14.10 All if … else if constructs shall be terminated with an else clause.Rule 14.9 Rule 59 The statement forming the body of an "if", "else if", "else", "while", "do ... while", or "for" statement shall always be enclosed in braces what's the point with these ..read more
Visit website
C++ fstream
Reddit » C++
by /u/Early-Ad-9901
1d ago
Does anyone know how to solve the problem of entering Cyrillic characters in a file input stream? When I try to enter Russian characters into a file, I get scribbles. submitted by /u/Early-Ad-9901 [visit reddit] [comments ..read more
Visit website

Follow Reddit » C++ on FeedSpot

Continue with Google
Continue with Apple
OR