Sujet : Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.c++ comp.lang.cDate : 29. Apr 2024, 01:05:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v0mo7t$1arr4$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Fri, 8 Mar 2024 14:41:16 +0200, Paavo Helde wrote:
AFAIK CPython uses reference counting ...
Combination of reference-counting as a first resort, with full garbage
collection to deal with those less common cases where you have reference
cycles. Trying to get the best of both worlds.
The trouble with reference-counting is it impacts multithreading
performance. However, the CPython developers have a scheme to deal with
this, by making the reference counts a little less deterministic (i.e.
there may be a slight delay before they become fully correct). I think
this is a complicated idea, and it may take them some time to get it fully
implemented.