Path: csiph.com!weretis.net!feeder8.news.weretis.net!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: Sat, 18 Dec 2021 07:45:16 -0800
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <86v8zl29yr.fsf@linuxsc.com>
References: <861r2c4k8w.fsf@linuxsc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="6f266d79a765f44bdb30d571740e8aec"; logging-data="3187"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/iEcqN75zTpqNb5ES7VjEVTFDg/H4LPAA="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:8TDRBr6df+Ph9j7pyaMiTX2pX/o= sha1:E4hfiFYNxo4JOqaBiyP1Zh3zVBw=
Xref: csiph.com comp.lang.c++:82681
Juha Nieminen writes:
> Tim Rentsch wrote:
>
>> 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.
>
> What systems had so little memory that they couldn't even run a C++
> compiler, yet had an operating system that offered a memory manager
> with GC? And, ostensibly, was a multitasking OS (given that you are
> arguing the programs had an overall smaller memory footprint).
There was no operating system in the conventional sense of the
term. Garbage collection was part of the VM underlying the
OOP environment. Multitasking was done in and by the OOP
environment itself, with "stack frames" being objects, and so
could be queued for later resumption, switched between, etc.