¿ªÔÆÌåÓý

Re: Decline, was Re: [HP-Agilent-Keysight-equipment] new File called App notes


 

On Fri, Apr 24, 2020 at 07:58 PM, David C. Partridge wrote:


The major culprit in bloat is OOP. Tables of pointers to tables of pointers
to tables of pointers. In feature rich classes, all those tables of pointers
take up a huge amount of memory.
Not necessarily so - well designed class structures in C++ can and often will
result in a smaller memory footprint than a traditional C application - stress
being on well designed!
TANSTAFL

The best case for optimized C++ would be to be no larger than the same functionality in C. The version of xclock(1) running on my system takes more memory than I could install in my Sun 3/60. All it does is display the time and date. Same functionality, but over 100x more resources.

Now, it takes 4 GB of DRAM to run a web browser and a 1 GB download to install a printer driver!

What OOP does is allow people who don't understand what they are doing to pretend they are programmers. Mel Kaye would not use OOP.

Join [email protected] to automatically receive all group messages.