Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.advocacy > #349442

Ignorant comments about C++ and C

Message-ID <570C4F98.3020000@smartchat.net.au> (permalink)
Date 2016-04-12 11:30 +1000
From Ron House <rhouse@smartchat.net.au>
Newsgroups comp.os.linux.advocacy
Subject Ignorant comments about C++ and C
References <552110c7-01e2-402c-8814-3a0a18d26646@googlegroups.com> <nefv0o$5da$1@dont-email.me> <ljfstc-2j3.ln1@user-1842.linux.individual.net> <d4354eba-b977-47ce-bf3f-76b159679464@googlegroups.com>

Show all headers | View raw


On 11/04/16 23:22, John Gohde wrote:

> Anybody who has ever studied the issue knows that OOPs programming
> eats up tons of computer resources under the theory that programmer
> time is more valuable than hardware.

So wrong. Some OO languages such as Smalltalk use lookup tables, which 
are inherently slow. But C++ uses indexed despatch tables, called 
virtual tables, to find addresses of polymorphic functions with a single 
addition operation. The tables themselves are of trivial size, since 
only one table exists per class, not per object, although each object 
contains exactly one pointer to the appropriate VT. The time overhead is 
O(1), and trivial, compared to the massive productivity boost. In fact, 
anyone trying to "roll your own" with C is much more likely to waste 
even more time and space by using less optimal (or wrong!) one-off 
methods compared to the finely honed algorithms in the C++ library.

Where C++ is not the right choice is where you MUST know exactly what 
structures your program uses and how it uses them. This applies to 
almost no application programs, from window managers to browsers to 
office suites. The one place it does apply is in the controller for the 
whole show: the operating system kernel. And Torvalds has made the right 
choice in using C, not C++, for the linux kernel.

-- 
Ron House
Building Peace: http://peacelegacy.org
Australian Birds: http://wingedhearts.org
Principle of Goodness academic site: http://principleofgoodness.net

Back to comp.os.linux.advocacy | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

KDE is both bloated & Sucks because it written with C++ rather than C John Gohde <john.h.gohde@gmail.com> - 2016-04-10 19:02 -0700
  Re: KDE is both bloated & Sucks because it written with C++ rather than C Melzzzzz <mel@zzzzz.com> - 2016-04-11 04:23 +0200
    KDE is bloated cause it is compiled with C++ rather than C John Gohde <john.h.gohde@gmail.com> - 2016-04-10 19:57 -0700
      Re: KDE is bloated cause it is compiled with C++ rather than C Melzzzzz <mel@zzzzz.com> - 2016-04-11 07:24 +0200
        OOPs is Bloated, Poops! John Gohde <john.h.gohde@gmail.com> - 2016-04-11 03:07 -0700
        Re: KDE is bloated cause it is compiled with C++ rather than C Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-04-11 08:00 -0400
          Re: KDE is bloated cause it is compiled with C++ rather than C Takuya Saitoh <taka0038@gmail.com> - 2016-04-11 05:26 -0700
            Re: KDE is bloated cause it is compiled with C++ rather than C John Gohde <john.h.gohde@gmail.com> - 2016-04-11 06:19 -0700
            Re: KDE is bloated cause it is compiled with C++ rather than C Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-04-11 09:38 -0400
          Re: KDE is bloated cause it is compiled with C++ rather than C John Gohde <john.h.gohde@gmail.com> - 2016-04-11 06:16 -0700
          Re: KDE is bloated cause it is compiled with C++ rather than C Melzzzzz <mel@zzzzz.com> - 2016-04-11 17:04 +0200
            Re: KDE is bloated cause it is compiled with C++ rather than C Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-04-11 11:59 -0400
      Re: KDE is bloated cause it is compiled with C++ rather than C Takuya Saitoh <taka0038@gmail.com> - 2016-04-10 22:27 -0700
        Re: KDE is bloated cause it is compiled with C++ rather than C Melzzzzz <mel@zzzzz.com> - 2016-04-11 07:45 +0200
          Re: KDE is bloated cause it is compiled with C++ rather than C Takuya Saitoh <taka0038@gmail.com> - 2016-04-10 23:15 -0700
        Bow down when you speak to your Moi. I am now a noted Linux Publisher. John Gohde <john.h.gohde@gmail.com> - 2016-04-11 03:08 -0700
  Re: KDE is both bloated & Sucks because it written with C++ rather than C DFS <nospam@dfs.com> - 2016-04-10 22:24 -0400
    DFS and Two horny muscle armies secretly pounding some ass DFS <nospam@dfs.cum> - 2016-04-11 00:24 -0500
  Re: KDE is both bloated & Sucks because it written with C++ rather than C Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-04-11 12:44 +0200
    Re: KDE is both bloated & Sucks because it written with C++ rather than C John Gohde <john.h.gohde@gmail.com> - 2016-04-11 03:53 -0700
    Re: KDE is both bloated & Sucks because it written with C++ rather than C William Poaster <wp@dev.null> - 2016-04-11 12:49 +0100
      Re: KDE is both bloated & Sucks because it written with C++ rather than C John Gohde <john.h.gohde@gmail.com> - 2016-04-11 06:22 -0700
        Re: KDE is both bloated & Sucks because it written with C++ rather than C Takuya Saitoh <taka0038@gmail.com> - 2016-04-11 08:09 -0700
          Re: KDE is both bloated & Sucks because it written with C++ rather than C Melzzzzz <mel@zzzzz.com> - 2016-04-11 17:12 +0200
            Re: KDE is both bloated & Sucks because it written with C++ rather than C DFS <nospam@dfs.com> - 2016-04-11 13:01 -0400
              Re: KDE is both bloated & Sucks because it written with C++ rather than C Omar <omarsayeed@linuxmail.org> - 2016-04-11 13:07 -0400
              OOPs is Bloated, Poops! John Gohde <john.h.gohde@gmail.com> - 2016-04-11 11:34 -0700
                Re: OOPs is Bloated, Poops! Takuya Saitoh <taka0038@gmail.com> - 2016-04-11 18:14 -0700
                Re: OOPs is Bloated, Poops! John Gohde <john.h.gohde@gmail.com> - 2016-04-11 18:42 -0700
        Ignorant comments about C++ and C Ron House <rhouse@smartchat.net.au> - 2016-04-12 11:30 +1000
          Re: Ignorant comments about C++ and C Omar <omarsayeed@linuxmail.org> - 2016-04-11 21:39 -0400
          Re: Ignorant comments about C++ and C John Gohde <john.h.gohde@gmail.com> - 2016-04-11 18:47 -0700
            Re: Ignorant comments about C++ and C Ron House <rhouse@smartchat.net.au> - 2016-04-12 12:23 +1000
              OOP is as good an explanation as to why KDE is bloated, as any John Gohde <john.h.gohde@gmail.com> - 2016-04-11 19:50 -0700
                Re: Ignorant comments about C++ and C Ron House <rhouse@smartchat.net.au> - 2016-04-13 12:02 +1000
                Re: Ignorant comments about C++ and C Melzzzzz <mel@zzzzz.com> - 2016-04-13 04:19 +0200
                Re: Ignorant comments about C++ and C Takuya Saitoh <taka0038@gmail.com> - 2016-04-13 00:57 -0700
                Re: Ignorant comments about C++ and C Ron House <rhouse@smartchat.net.au> - 2016-04-13 19:48 +1000
                Re: Ignorant comments about C++ and C John Gohde <john.h.gohde@gmail.com> - 2016-04-13 04:41 -0700
              Re: Ignorant comments about C++ and C vallor <vallor@cultnix.org> - 2016-04-12 04:48 +0000
              Re: Ignorant comments about C++ and C chrisv <chrisv@nospam.invalid> - 2016-04-12 07:00 -0500
              Re: Ignorant comments about C++ and C DFS <nospam@dfs.com> - 2016-04-12 13:33 -0400
                Re: Ignorant comments about C++ and C Omar <omarsayeed@linuxmail.org> - 2016-04-12 13:39 -0400
                Re: Ignorant comments about C++ and C Ron House <rhouse@smartchat.net.au> - 2016-04-13 12:29 +1000
                Re: Ignorant comments about C++ and C DFS <nospam@dfs.com> - 2016-04-12 22:43 -0400
                Re: Ignorant comments about C++ and C Ron House <rhouse@smartchat.net.au> - 2016-04-13 19:57 +1000
                Re: Ignorant comments about C++ and C Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-04-13 08:58 -0400
                Re: Ignorant comments about C++ and C DFS <nospam@dfs.com> - 2016-04-13 11:17 -0400
                Re: Ignorant comments about C++ and C Silver Slimer <linux@sucks.balls> - 2016-04-13 11:22 -0400
                Re: Ignorant comments about C++ and C vallor <vallor@cultnix.org> - 2016-04-14 05:44 +0000
                Re: Ignorant comments about C++ and C Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-04-13 05:47 -0400
                Re: Ignorant comments about C++ and C Ron House <rhouse@smartchat.net.au> - 2016-04-13 20:01 +1000
                Re: Ignorant comments about C++ and C chrisv <chrisv@nospam.invalid> - 2016-04-13 08:44 -0500
                Re: Ignorant comments about C++ and C Silver Slimer <linux@sucks.balls> - 2016-04-13 09:58 -0400
                Re: Ignorant comments about C++ and C DFS <nospam@dfs.com> - 2016-04-13 11:15 -0400
                Re: Ignorant comments about C++ and C chrisv <chrisv@nospam.invalid> - 2016-04-13 12:43 -0500
                Re: Ignorant comments about C++ and C Silver Slimer <linux@sucks.balls> - 2016-04-13 14:11 -0400
                Re: Ignorant comments about C++ and C DFS <nospam@dfs.com> - 2016-04-13 17:14 -0400
                Re: Ignorant comments about C++ and C Ron House <rhouse@smartchat.net.au> - 2016-04-14 11:49 +1000

csiph-web