Click here to Skip to main content
15,881,380 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Things I find buried in the C++ reference Pin
Greg Utas13-Mar-21 15:00
professionalGreg Utas13-Mar-21 15:00 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn14-Mar-21 2:28
professionalEspen Harlinn14-Mar-21 2:28 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch13-Mar-21 16:22
mvahoney the codewitch13-Mar-21 16:22 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn14-Mar-21 4:04
professionalEspen Harlinn14-Mar-21 4:04 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch14-Mar-21 6:19
mvahoney the codewitch14-Mar-21 6:19 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn14-Mar-21 10:38
professionalEspen Harlinn14-Mar-21 10:38 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch14-Mar-21 10:52
mvahoney the codewitch14-Mar-21 10:52 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn14-Mar-21 12:42
professionalEspen Harlinn14-Mar-21 12:42 
While I haven't looked at the implementation of your templates, the generated assembly speaks for itself. Cool Thumbs Up | :thumbsup:

Quote:
I'm excited to hack my toolchain to enable C++20 but I just haven't gotten to it yet.

I like clang and LLVM, but haven't dived into the internals. It is possible to do interesting things with them without knowing much about the internals.

Quote:
I just now caught up to C++11 variadic templates which allows me to do a lot more metaprogramming (or at least more easily) than I used to be able to do.

There are interesting projects implemented using C++ 11 meta-template programming, but I find that much of the code is pretty hard to follow.

Quote:
I'm doing it for now, without using STL for it just because I want to make sure I get the mechanics of any of the library I rely on.

Good for you, and it is also a great way to discover that any occurrence of code-bloat has little (if anything?) to do with the C++ language.

Apart from RTTI and exceptions there should be no overhead compared to C. Personally I use exceptions extensively for error handling, and also I like to think that I write fast code, so I have tried to determine if there is a real performance hit incurred by enabling exception and found that at long as an exception is not thrown, it makes no measurable difference to the performance of the code. On the other hand, I have found that several layers of:
auto rc = SomeFunction();
if( rc != NO_ERROR )
{
    return rc;
}

have a negative impact on performance. Usually not much, but measurable. It also makes code a lot less readable.

Quote:
I'm not using iostreams

Neither am I …

Quote:
Anyway, I'm still working on it, but what I have so far incurs no overhead for anything.

Cool, keep up the good work Big Grin | :-D
Espen Harlinn
Senior Architect - Ulriken Consulting AS

The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague.Edsger W.Dijkstra

GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch14-Mar-21 12:54
mvahoney the codewitch14-Mar-21 12:54 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn15-Mar-21 11:29
professionalEspen Harlinn15-Mar-21 11:29 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch15-Mar-21 11:57
mvahoney the codewitch15-Mar-21 11:57 
GeneralRe: Things I find buried in the C++ reference Pin
Stuart Dootson15-Mar-21 1:09
professionalStuart Dootson15-Mar-21 1:09 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch15-Mar-21 2:22
mvahoney the codewitch15-Mar-21 2:22 
GeneralRe: Things I find buried in the C++ reference Pin
Stuart Dootson15-Mar-21 3:31
professionalStuart Dootson15-Mar-21 3:31 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch15-Mar-21 3:52
mvahoney the codewitch15-Mar-21 3:52 
GeneralRe: Things I find buried in the C++ reference Pin
James Curran15-Mar-21 4:43
James Curran15-Mar-21 4:43 
GeneralOh no! Pin
Jörgen Andersson12-Mar-21 9:45
professionalJörgen Andersson12-Mar-21 9:45 
GeneralRe: Oh no! Pin
NotTodayYo12-Mar-21 10:09
NotTodayYo12-Mar-21 10:09 
GeneralRe: Oh no! Pin
RickZeeland12-Mar-21 21:04
mveRickZeeland12-Mar-21 21:04 
GeneralExploding Plastic Pin
honey the codewitch12-Mar-21 9:08
mvahoney the codewitch12-Mar-21 9:08 
GeneralRe: Exploding Plastic Pin
OriginalGriff12-Mar-21 11:17
mveOriginalGriff12-Mar-21 11:17 
GeneralThought of the Day Pin
OriginalGriff12-Mar-21 4:44
mveOriginalGriff12-Mar-21 4:44 
GeneralRe: Thought of the Day Pin
W Balboos, GHB12-Mar-21 5:22
W Balboos, GHB12-Mar-21 5:22 
GeneralThis was sent to me today ... Pin
CHill6012-Mar-21 3:29
mveCHill6012-Mar-21 3:29 
GeneralRe: This was sent to me today ... Pin
PIEBALDconsult12-Mar-21 3:32
mvePIEBALDconsult12-Mar-21 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.