Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: C++ more ef...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 44432 of 47977
Post > Topic >>

Re: C++ more efficient than C?

by bc1891@[EMAIL PROTECTED] Apr 6, 2008 at 12:24 AM

On Apr 6, 7:55=A0am, "copx" <c...@[EMAIL PROTECTED]
> wrote:
> "Richard Heathfield" <r...@[EMAIL PROTECTED]
> schrieb im
Newsbeitragnews:NKO=
dnfOFf_8s8WXanZ2dnUVZ8vKdnZ2d@[EMAIL PROTECTED]
>
> > copx said:
> >> Are their any counter-arguments against Stroustroups claim?
>
> > My favourite example is a 450-line C++ program I was shown, about
eight
> > years ago, which had taken four man-years to write and took about 10
> > minutes to process a fairly trivial amount of data. I rewrote it from
sp=
ec
> > (because I saw no point in rewriting it from the code) in a single
day, =
in
> > C. My version took considerably less than a second to process the same
> > amount of data. There is more to efficiency than mere language choice.
>
> Of course, a bad programmer will write worse code in any language
compared=

> to a good programmer. However, the question here is - assuming
programmers=

> of equal skill - who would produce more efficient code if one used C and
t=
he
> other used C++. So far the answer seems to be the C++ guy would win

Assuming two programmers of equal skill, on the whole the one writing
in C will write far nicer code than the one in C++ (nicer in terms of
ease of readibility, maintainability, and lack of bugs). And he will
write it quicker.

Assuming the resulting C++ program actually works as intended, it will
run at pretty much the same speed as the C one.

Assumming a team of C++ programmers, the useful subset of the bloated
nightmare of C++ that they know in common is called C.

C++ is a virus. There will come a day when it is wiped from the Earth.
 




 6 Posts in Topic:
Re: C++ more efficient than C?
bc1891@[EMAIL PROTECTED]   2008-04-06 00:24:06 
Re: C++ more efficient than C?
arnuld <arnVuld@[EMAIL  2008-04-06 13:30:22 
Re: C++ more efficient than C?
arnuld <arnVuld@[EMAIL  2008-04-06 13:34:13 
Re: C++ more efficient than C?
Lloyd Bonafide <nospam  2008-04-06 13:03:08 
Re: C++ more efficient than C?
Juha Nieminen <nospam@  2008-04-06 12:59:26 
Re: C++ more efficient than C?
arnuld <arnVuld@[EMAIL  2008-04-06 16:21:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 8:29:47 CDT 2008.