Click here to Skip to main content
14,577,943 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.
 
AnswerRe: The future of (Modern) C++ (17) Pin
afigegoznaet20-Mar-18 20:30
professionalafigegoznaet20-Mar-18 20:30 
GeneralRe: The future of (Modern) C++ (17) Pin
Super Lloyd20-Mar-18 20:51
MemberSuper Lloyd20-Mar-18 20:51 
GeneralRe: The future of (Modern) C++ (17) Pin
afigegoznaet20-Mar-18 22:05
professionalafigegoznaet20-Mar-18 22:05 
GeneralRe: The future of (Modern) C++ (17) Pin
jschell24-Mar-18 5:05
Memberjschell24-Mar-18 5:05 
AnswerRe: The future of (Modern) C++ (17) Pin
Member 798912220-Mar-18 23:38
MemberMember 798912220-Mar-18 23:38 
AnswerRe: The future of (Modern) C++ (17) Pin
Super Lloyd20-Mar-18 23:59
MemberSuper Lloyd20-Mar-18 23:59 
GeneralRe: The future of (Modern) C++ (17) Pin
André Pereira21-Mar-18 1:10
MemberAndré Pereira21-Mar-18 1:10 
GeneralRe: The future of (Modern) C++ (17) Pin
Member 798912221-Mar-18 2:03
MemberMember 798912221-Mar-18 2:03 
Most of my C# coding has been GUI and file system related. Timing comparisons are relevant only on selected parts with no user interaction. For file system operations, disc waiting time may easily be ten times the processing time - and that waiting is roughly programming language independent, unless the language libraries use different buffering strategies (and then you are comparing buffering strategies, not languages).

So, for a long time I had overlooked the "Optimize code" chekcbutton in the VC project properties: For the GUI/disk related projects it really didn't matter. When I checked it, CPU bound code became approximately 4 times as fast(!) (but cannot be properly debugged). Now I would certainly like to rewrite some of that CPU bound code in C++ to see if there is anything to gain. I guess that it will be very little!

(By the way: There is no noticable speed difference between x64 code produced directly by the C# compiler, compared to CIL generated by the compiler with final code generated by dotNet to x64 on the first run. I didn't expect there to be - but lots of people believe that the just-in-time code generating imposes a heavy perfomance penalty.)

As you say: C++ (or just plain C) has its place as a CPU independent (high level) assembly language, e.g. for interfacing to hardware. In the old days, libraries were written in assembly, nowadays in C/C++. They make the interface available to e.g. C#, but you won't get completely away from assembly/C to create the interface library.
GeneralRe: The future of (Modern) C++ (17) Pin
jschell24-Mar-18 5:13
Memberjschell24-Mar-18 5:13 
GeneralRe: The future of (Modern) C++ (17) Pin
Member 798912225-Mar-18 20:50
MemberMember 798912225-Mar-18 20:50 
AnswerRe: The future of (Modern) C++ (17) Pin
tom144321-Mar-18 2:23
Membertom144321-Mar-18 2:23 
GeneralRe: The future of (Modern) C++ (17) Pin
Super Lloyd21-Mar-18 2:44
MemberSuper Lloyd21-Mar-18 2:44 
GeneralRe: The future of (Modern) C++ (17) Pin
sasadler21-Mar-18 4:08
Membersasadler21-Mar-18 4:08 
GeneralRe: The future of (Modern) C++ (17) Pin
afigegoznaet21-Mar-18 20:24
professionalafigegoznaet21-Mar-18 20:24 
GeneralRe: The future of (Modern) C++ (17) Pin
Member 798912222-Mar-18 1:12
MemberMember 798912222-Mar-18 1:12 
GeneralRe: The future of (Modern) C++ (17) Pin
afigegoznaet22-Mar-18 1:18
professionalafigegoznaet22-Mar-18 1:18 
GeneralRe: The future of (Modern) C++ (17) Pin
sasadler21-Mar-18 3:59
Membersasadler21-Mar-18 3:59 
AnswerRe: The future of (Modern) C++ (17) Pin
Ed5921-Mar-18 4:06
MemberEd5921-Mar-18 4:06 
AnswerRe: The future of (Modern) C++ (17) Pin
Fernando A. Gomez F.21-Mar-18 8:49
MemberFernando A. Gomez F.21-Mar-18 8:49 
GeneralRe: The future of (Modern) C++ (17) Pin
afigegoznaet21-Mar-18 20:20
professionalafigegoznaet21-Mar-18 20:20 
AnswerRe: The future of (Modern) C++ (17) Pin
jschell24-Mar-18 5:03
Memberjschell24-Mar-18 5:03 
PraiseDoing my Ethics and Code of Conduct Annual Training Now Pin
Slacker00719-Mar-18 12:07
professionalSlacker00719-Mar-18 12:07 
GeneralRe: Doing my Ethics and Code of Conduct Annual Training Now Pin
CodeWraith19-Mar-18 12:44
MemberCodeWraith19-Mar-18 12:44 
GeneralRe: Doing my Ethics and Code of Conduct Annual Training Now Pin
Ehsan Sajjad19-Mar-18 20:02
professionalEhsan Sajjad19-Mar-18 20:02 
GeneralRe: Doing my Ethics and Code of Conduct Annual Training Now Pin
GuyThiebaut19-Mar-18 22:11
professionalGuyThiebaut19-Mar-18 22:11 

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.