Click here to Skip to main content
15,884,472 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: Is Xamarin Forms Dead? Pin
Kirk 1038982115-Mar-21 8:09
Kirk 1038982115-Mar-21 8:09 
GeneralRe: Is Xamarin Forms Dead? Pin
Eusebiu Marcu15-Mar-21 22:24
Eusebiu Marcu15-Mar-21 22:24 
GeneralRe: Is Xamarin Forms Dead? Pin
Eusebiu Marcu15-Mar-21 22:19
Eusebiu Marcu15-Mar-21 22:19 
GeneralRe: Is Xamarin Forms Dead? Pin
Avo Laande15-Mar-21 2:21
Avo Laande15-Mar-21 2:21 
GeneralRe: Is Xamarin Forms Dead? Pin
Daniel Will16-Mar-21 4:11
Daniel Will16-Mar-21 4:11 
JokeThings I find buried in the C++ reference Pin
honey the codewitch12-Mar-21 13:28
mvahoney the codewitch12-Mar-21 13:28 
GeneralRe: Things I find buried in the C++ reference Pin
Greg Utas13-Mar-21 0:27
professionalGreg Utas13-Mar-21 0:27 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn13-Mar-21 13:11
professionalEspen Harlinn13-Mar-21 13:11 
Quote:
it can eliminate virtual calls to a target class altogether if that virtual can be made constexpr?

That's about right. Peter Dimov and Vassil Vassilev started this one with: Allowing Virtual Function Calls in Constant Expressions

Their key argument was: Since in a constant expression the dynamic type of the object is required to be known (in order to, for example, diagnose undefined behavior in casts), the restriction is unnecessary and artificial.

This argument will probably propagate to all corners of the language were it applies, because that only makes sense.

Quote:
I don't know if I should be elated or terrified for what they've done to C++

Elated.

While not every (if any?) compiler implementation currently provide full C++ 20 support, things are improving.

Compile-time expression evaluation and meta-template programming are immensely useful, but until now you could only do useful stuff in ways that were hard to understand, requiring all sorts of template trickery.

With C++ 20 I can do meta-template programming more easily, and even more important: easily explain what I do to other people.

With constexpr functions, the need for most of the template trickery that has evolved over the last decades goes away, and once that door was opened people started to ask reasonable questions, such as:
I know that the compiler knows which implementation of a virtual function will be called at runtime, and if that is the case, it would be awfully nice if I could use that function in a constant evaluated context, so how about we put that into the standard?

And, now that we have ranges, I guess many C++ developers will do pretty sophisticated meta-template programming without even realizing it - and suddenly it will not be scary anymore, because we are all doing it.
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


modified 13-Mar-21 19:30pm.

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 
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 

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.