Click here to Skip to main content
15,898,010 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
Super 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
jschell24-Mar-18 5:05 
AnswerRe: The future of (Modern) C++ (17) Pin
kalberts20-Mar-18 23:38
kalberts20-Mar-18 23:38 
AnswerRe: The future of (Modern) C++ (17) Pin
Super Lloyd20-Mar-18 23:59
Super Lloyd20-Mar-18 23:59 
GeneralRe: The future of (Modern) C++ (17) Pin
André Pereira21-Mar-18 1:10
André Pereira21-Mar-18 1:10 
GeneralRe: The future of (Modern) C++ (17) Pin
kalberts21-Mar-18 2:03
kalberts21-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
jschell24-Mar-18 5:13 
GeneralRe: The future of (Modern) C++ (17) Pin
kalberts25-Mar-18 20:50
kalberts25-Mar-18 20:50 
AnswerRe: The future of (Modern) C++ (17) Pin
tom144321-Mar-18 2:23
tom144321-Mar-18 2:23 
GeneralRe: The future of (Modern) C++ (17) Pin
Super Lloyd21-Mar-18 2:44
Super Lloyd21-Mar-18 2:44 
GeneralRe: The future of (Modern) C++ (17) Pin
sasadler21-Mar-18 4:08
sasadler21-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
kalberts22-Mar-18 1:12
kalberts22-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
sasadler21-Mar-18 3:59 
AnswerRe: The future of (Modern) C++ (17) Pin
Ed5921-Mar-18 4:06
Ed5921-Mar-18 4:06 
AnswerRe: The future of (Modern) C++ (17) Pin
Fernando A. Gomez F.21-Mar-18 8:49
Fernando 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
jschell24-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
CodeWraith19-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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   359 votes