Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What makes C and C++ a "good" language? Pin
jschell22-Sep-12 8:42
jschell22-Sep-12 8:42 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti22-Sep-12 16:03
pasztorpisti22-Sep-12 16:03 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini19-Sep-12 8:33
mveCPallini19-Sep-12 8:33 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti19-Sep-12 12:09
pasztorpisti19-Sep-12 12:09 
GeneralRe: What makes C and C++ a "good" language? PinPopular
CPallini19-Sep-12 21:30
mveCPallini19-Sep-12 21:30 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti19-Sep-12 22:32
pasztorpisti19-Sep-12 22:32 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini19-Sep-12 22:46
mveCPallini19-Sep-12 22:46 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti19-Sep-12 22:56
pasztorpisti19-Sep-12 22:56 
CPallini wrote:
I can't believe that (comparing with C language).

Anyway your quickly compiled project would suck in performance, compared to a similar C/C++ one.

The time you win in another language comes from the fact that there is no header hell, and the parsing of the language is much simpler. For example delphi uses unit files that contains ready-made data for the compiler (the same is true for a lot of other languages), in C/C++ you have to read in and parse and compile the same header files a dozen times. This becomes even worse if the headers contain a lot of inlining and/or templates. The parsing and compiling of C++ is also much more complex for the compiler frontend than the same for some other languages like pascal/delphi.
This has nothing to do with optimization. Anyway, any other language can use the exact same optimizations as C++ (see llvm).
CPallini wrote:
This is a nonsense. The 'underlying compiler architecture' depends on the language. Almost all other programming languages are outperformed by C++. That's a fact.

@See llvm.
CPallini wrote:
We were not talking about that. We were talking instead about backward compatibility with C.

I was talking about C++'s compatibility with C++. But the same is almost true for C's compatibility with C but this isn't so big problem because C is much simpler. With some modifications (like eliminating header files and some more type safety) C could be a nice simple language.
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini19-Sep-12 23:07
mveCPallini19-Sep-12 23:07 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti19-Sep-12 23:52
pasztorpisti19-Sep-12 23:52 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini19-Sep-12 23:59
mveCPallini19-Sep-12 23:59 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti20-Sep-12 1:54
pasztorpisti20-Sep-12 1:54 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini20-Sep-12 2:01
mveCPallini20-Sep-12 2:01 
JokeRe: What makes C and C++ a "good" language? Pin
pasztorpisti20-Sep-12 2:06
pasztorpisti20-Sep-12 2:06 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini20-Sep-12 2:18
mveCPallini20-Sep-12 2:18 
GeneralRe: What makes C and C++ a "good" language? Pin
jschell20-Sep-12 8:45
jschell20-Sep-12 8:45 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti20-Sep-12 11:22
pasztorpisti20-Sep-12 11:22 
GeneralRe: What makes C and C++ a "good" language? Pin
jschell21-Sep-12 10:27
jschell21-Sep-12 10:27 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti21-Sep-12 10:57
pasztorpisti21-Sep-12 10:57 
GeneralRe: What makes C and C++ a "good" language? Pin
jschell22-Sep-12 8:12
jschell22-Sep-12 8:12 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti22-Sep-12 11:55
pasztorpisti22-Sep-12 11:55 
GeneralRe: What makes C and C++ a "good" language? Pin
jschell19-Sep-12 9:27
jschell19-Sep-12 9:27 
GeneralRe: What makes C and C++ a "good" language? Pin
pasztorpisti19-Sep-12 12:04
pasztorpisti19-Sep-12 12:04 
GeneralRe: What makes C and C++ a "good" language? Pin
jschell20-Sep-12 8:21
jschell20-Sep-12 8:21 
GeneralRe: What makes C and C++ a "good" language? Pin
Pete O'Hanlon25-Sep-12 1:24
mvePete O'Hanlon25-Sep-12 1:24 

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.