Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c++ Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott Date: Thu, 16 Dec 2021 07:55:43 -0800 Organization: A noiseless patient Spider Lines: 16 Message-ID: <861r2c4k8w.fsf@linuxsc.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="e672fb9610cb67396dff88ffd2617ec0"; logging-data="8285"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AuQcQvFlj6NUQx/c+dBXZVNwaz9QeEfE=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:QeKH9VahRK6gz3VTM/ZyygmcoNs= sha1:cm93Duanq+kRf3ud89EhSow1iBo= Xref: csiph.com comp.lang.c++:82660 Juha Nieminen writes: > [...] Most object-oriented languages don't really care about, > especially, memory consumption. Especially garbage-collected OO > languages don't give a flying F about memory consumption. [...] A humorous statement, considering that there were OOP systems, including garbage collection, running years before even the predecessor to C++, "C with Classes", existed. And these systems ran on hardware platforms that don't have enough memory to run probably any C++ compiler of the last 20+ years. Note by the way that using garbage collection very likely reduced the overall memory footprint, because all the places where there would have been code to free memory no code is needed, replaced by a single piece of code in the memory manager.