Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #5634
| From | Nobody <nobody@nowhere.com> |
|---|---|
| Subject | Re: Why C++ is vastly superior to C |
| Date | 2011-05-26 18:28 +0100 |
| Message-Id | <pan.2011.05.26.17.27.36.516000@nowhere.com> |
| Newsgroups | comp.lang.c++ |
| References | (12 earlier) <functions-20110524181258@ram.dialup.fu-berlin.de> <FsqdnaCYEPQHR0bQnZ2dnUVZ8sednZ2d@giganews.com> <optimization-20110525144822@ram.dialup.fu-berlin.de> <4ddd0b6a$0$24154$a729d347@news.telepac.pt> <premature-20110526023855@ram.dialup.fu-berlin.de> |
| Organization | Zen Internet |
On Thu, 26 May 2011 00:39:59 +0000, Stefan Ram wrote: >>>The whole point of C++ is premature optimization >>Why do you believe that "the whole point of C++ is premature >>optimization"? > > Design decision in C++ are usually decided in favor of > run-time efficiency. > Since this optimization is /always/ done, by pure /choice of > the language/, it can be called premature. Only if you're really desperate to make a "premature optimisation" argument. The alternative, i.e. to use a higher-level but less efficient language, results in the optimisation never being performed at all, even in the finished product. Some optimisations must inherently be performed at the outset, if they are to be performed at all. If you adopt an approach which is structurally inefficient, then the only way to get rid of the inefficiency is to start over with a more efficient structure. That doesn't make such optimisations "premature". Premature optimisation means performing "optimisations" before you have sufficient knowledge to determine what is actually optimal. This is primarily a problem with "code first, design later" development, where you don't really know what you should be doing until you have a working prototype (either because the problem isn't amenable to structured development, or the programmer isn't). OTOH, if you have a good understanding of the problem, it's entirely possible (and reasonable) to make optimisation decisions long before you start writing code.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-20 23:43 -0500
Re: Why C++ is vastly superior to C Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-21 00:47 -0700
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-21 08:41 -0500
Re: Why C++ is vastly superior to C Juha Nieminen <nospam@thanks.invalid> - 2011-05-21 08:22 +0000
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-21 08:44 -0500
Re: Why C++ is vastly superior to C "Balog Pal" <pasa@lib.hu> - 2011-05-21 18:34 +0200
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-21 23:37 -0500
Re: Why C++ is vastly superior to C Juha Nieminen <nospam@thanks.invalid> - 2011-05-22 05:57 +0000
Re: Why C++ is vastly superior to C Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-22 01:22 -0700
Re: Why C++ is vastly superior to C Juha Nieminen <nospam@thanks.invalid> - 2011-05-24 15:54 +0000
Re: Why C++ is vastly superior to C Juha Nieminen <nospam@thanks.invalid> - 2011-05-24 15:58 +0000
Re: Why C++ is vastly superior to C Leigh Johnston <leigh@i42.co.uk> - 2011-05-24 17:19 +0100
Re: Why C++ is vastly superior to C Leigh Johnston <leigh@i42.co.uk> - 2011-05-25 14:09 +0100
Re: Why C++ is vastly superior to C Rui Maciel <rui.maciel@gmail.com> - 2011-05-25 15:00 +0100
Re: Why C++ is vastly superior to C Rune Allnor <allnor@tele.ntnu.no> - 2011-05-26 00:02 -0700
Re: Why C++ is vastly superior to C "Balog Pal" <pasa@lib.hu> - 2011-05-26 09:12 +0200
Re: Why C++ is vastly superior to C gwowen <gwowen@gmail.com> - 2011-05-26 00:31 -0700
Re: Why C++ is vastly superior to C hanukas <jukka@liimatta.org> - 2011-05-26 04:53 -0700
Re: Why C++ is vastly superior to C gwowen <gwowen@gmail.com> - 2011-05-26 05:24 -0700
Re: Why C++ is vastly superior to C hanukas <jukka@liimatta.org> - 2011-05-26 23:32 -0700
Re: Why C++ is vastly superior to C hanukas <jukka@liimatta.org> - 2011-05-26 23:40 -0700
Re: Why C++ is vastly superior to C Nobody <nobody@nowhere.com> - 2011-05-26 18:05 +0100
Re: Why C++ is vastly superior to C "Balog Pal" <pasa@lib.hu> - 2011-05-26 19:10 +0200
Re: Why C++ is vastly superior to C Nobody <nobody@nowhere.com> - 2011-05-27 00:15 +0100
Re: Why C++ is vastly superior to C Öö Tiib <ootiib@hot.ee> - 2011-05-26 16:29 -0700
Re: Why C++ is vastly superior to C Rui Maciel <rui.maciel@gmail.com> - 2011-05-27 00:57 +0100
Re: Why C++ is vastly superior to C Nobody <nobody@nowhere.com> - 2011-05-27 07:56 +0100
Re: Why C++ is vastly superior to C "Balog Pal" <pasa@lib.hu> - 2011-05-27 09:41 +0200
Re: Why C++ is vastly superior to C gwowen <gwowen@gmail.com> - 2011-05-27 01:20 -0700
Re: Why C++ is vastly superior to C gwowen <gwowen@gmail.com> - 2011-05-27 01:51 -0700
Re: Why C++ is vastly superior to C "Balog Pal" <pasa@lib.hu> - 2011-05-27 11:01 +0200
Re: Why C++ is vastly superior to C Juha Nieminen <nospam@thanks.invalid> - 2011-05-28 11:35 +0000
Re: Why C++ is vastly superior to C "Alf P. Steinbach /Usenet" <alf.p.steinbach+usenet@gmail.com> - 2011-05-28 14:41 +0200
Re: Why C++ is vastly superior to C Ebenezer <woodbrian77@gmail.com> - 2011-05-28 15:42 -0700
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 23:30 -0500
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 23:27 -0500
Re: Why C++ is vastly superior to C Öö Tiib <ootiib@hot.ee> - 2011-05-28 07:55 -0700
Re: Why C++ is vastly superior to C "Balog Pal" <pasa@lib.hu> - 2011-05-28 19:19 +0200
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 22:46 -0500
Re: Why C++ is vastly superior to C gwowen <gwowen@gmail.com> - 2011-05-26 23:27 -0700
Re: Why C++ is vastly superior to C hanukas <jukka@liimatta.org> - 2011-05-27 01:12 -0700
Re: Why C++ is vastly superior to C "Balog Pal" <pasa@lib.hu> - 2011-05-27 10:24 +0200
Re: Why C++ is vastly superior to C gwowen <gwowen@gmail.com> - 2011-05-27 01:44 -0700
Re: Why C++ is vastly superior to C Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-26 10:28 -0700
Re: Why C++ is vastly superior to C Michael Doubez <michael.doubez@free.fr> - 2011-05-26 00:34 -0700
Re: Why C++ is vastly superior to C "Balog Pal" <pasa@lib.hu> - 2011-05-26 10:22 +0200
Re: Why C++ is vastly superior to C Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-26 00:42 -0700
Re: Why C++ is vastly superior to C Rui Maciel <rui.maciel@gmail.com> - 2011-05-27 00:49 +0100
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 22:57 -0500
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 22:50 -0500
Re: Why C++ is vastly superior to C Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-05-26 08:53 +0000
Re: Why C++ is vastly superior to C Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-26 02:16 -0700
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 23:05 -0500
Re: Why C++ is vastly superior to C Keith H Duggar <duggar@alum.mit.edu> - 2011-05-26 06:01 -0700
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 23:11 -0500
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 23:05 -0500
Re: Why C++ is vastly superior to C Nobody <nobody@nowhere.com> - 2011-05-26 18:28 +0100
Re: Why C++ is vastly superior to C Rui Maciel <rui.maciel@gmail.com> - 2011-05-27 00:42 +0100
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 23:13 -0500
Re: Why C++ is vastly superior to C Rui Maciel <rui.maciel@gmail.com> - 2011-05-27 00:30 +0100
Re: Why C++ is vastly superior to C gwowen <gwowen@gmail.com> - 2011-05-25 07:20 -0700
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 23:14 -0500
Re: Why C++ is vastly superior to C Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 23:39 -0700
Re: Why C++ is vastly superior to C Michael Doubez <michael.doubez@free.fr> - 2011-05-26 00:58 -0700
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 23:19 -0500
Re: Why C++ is vastly superior to C Rui Maciel <rui.maciel@gmail.com> - 2011-05-24 17:42 +0100
Re: Why C++ is vastly superior to C hanukas <jukka@liimatta.org> - 2011-05-24 23:38 -0700
Re: Why C++ is vastly superior to C Rui Maciel <rui.maciel@gmail.com> - 2011-05-25 11:15 +0100
Re: Why C++ is vastly superior to C jacob navia <jacob@spamsink.net> - 2011-05-25 13:07 +0200
Re: Why C++ is vastly superior to C gwowen <gwowen@gmail.com> - 2011-05-25 05:12 -0700
Re: Why C++ is vastly superior to C Rui Maciel <rui.maciel@gmail.com> - 2011-05-25 15:31 +0100
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 23:33 -0500
Re: Why C++ is vastly superior to C hanukas <jukka@liimatta.org> - 2011-05-25 23:21 -0700
Re: Why C++ is vastly superior to C "MikeP" <mp011011@some.org> - 2011-05-30 22:44 -0500
csiph-web