Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <usf11f$1mk5l$1@dont-email.me>
Deutsch   English   Français   Italiano  
<usf11f$1mk5l$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Paavo Helde <eesnimi@osa.pri.ee>
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
 Risks"
Date: Fri, 8 Mar 2024 14:41:16 +0200
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <usf11f$1mk5l$1@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
 <us2lfh$2ltj3$5@dont-email.me> <us2s96$2n6h3$6@dont-email.me>
 <us3155$2of1i$3@dont-email.me> <us4c66$346tp$3@dont-email.me>
 <us5d6f$3besu$3@dont-email.me> <20240305005948.00002697@yahoo.com>
 <us5u16$3eidj$2@dont-email.me> <20240305111103.00003081@yahoo.com>
 <us8821$90p$4@dont-email.me> <20240306140214.0000449c@yahoo.com>
 <us9nib$dski$1@dont-email.me> <20240307000008.00003544@yahoo.com>
 <usc58s$10cls$1@dont-email.me> <20240307134401.00007aa2@yahoo.com>
 <uscmub$149j3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Mar 2024 12:41:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4f1ef4d6f86fc9f6bae183de53f6d847";
	logging-data="1790133"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1++puQyEIm9b4q686aYPjSl4DpBoKjvakE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:EHft7jqADT9v9PBrKDUNjBe41e4=
In-Reply-To: <uscmub$149j3$1@dont-email.me>
Content-Language: en-US
Bytes: 2209

07.03.2024 17:36 David Brown kirjutas:
> 
> CPython does use garbage collection, as far as I know.
> 

AFAIK CPython uses reference counting, i.e. basically the same as C++ 
std::shared_ptr (except that it does not need to be thread-safe).

With reference counting one only knows how many pointers there are to a 
given heap block, but not where they are, so heap compaction would not 
be straightforward.

Python also has zillions of extensions written in C or C++ (all of AI 
related work for example), so having e.g. heap compaction of Python 
objects only might not be worth of it.