On 08/03/2024 13:41, Paavo Helde wrote:
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).
Yes, that is my understanding too. (I could be wrong here, so don't
rely on anything I write!) But the way it is used is still a type of
garbage collection. When an object no longer has any "live" references,
it is put in a list, and on the next GC it will get cleared up (and call
the asynchronous destructor, __del__, for the object).
A similar method is sometimes used in C++ for objects that are
time-consuming to destruct. You have a "tidy up later" container that
holds shared pointers. Each time you make a new object that will have asynchronous destruction, you use a shared_ptr for the access and put a
copy of that pointer in the tidy-up container. A low priority
background thread checks this list on occasion - any pointers with only
one reference can be cleared up in the context of this separate thread.
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.
On 06/03/2024 20:50, Kaz Kylheku wrote:
On 2024-03-06, James Kuyper <jameskuyper@alumni.caltech.edu> wrote:
On 3/6/24 09:18, Michael S wrote:
On Wed, 6 Mar 2024 13:50:16 +0000...
bart <bc@freeuk.com> wrote:
Whoever wrote this short Wikipedia article on it got confused too as >>>>> it uses both Ada and ADA:
https://simple.wikipedia.org/wiki/Ada_(programming_language)
(The example program also includes 'Ada' as some package name. Since >>>>> it is case-insensitive, 'ADA' would also work.)
Your link is to "simple Wikipedia". I don't know what it is
exactly, but it does not appear as authoritative as real Wikipedia
Notice that in your following link, "en" appears at the beginning to
indicate the use of English. "simple" at the beginning of the above link >>> serves the same purpose. "Simple English" is it's own language, closely
related to standard English.
Where is Simple English spoken? Is there some geographic area where
native speakers concentrate?
It is meant to be simpler text, written in simpler language. The target audience will include younger people, people with dyslexia or other
reading difficulties, learners of English, people with lower levels of education, people with limited intelligence or learning impediments, or simply people whose eyes glaze over when faced with long texts on the
main Wikipedia pages.
What I'd like to know about is who keeps dialing the "harmonization"
efforts, which really must give grouse to the "harmonisation"
spellers ...
On Fri, 8 Mar 2024 21:36:14 -0800, Ross Finlayson wrote:
What I'd like to know about is who keeps dialing the "harmonization"
efforts, which really must give grouse to the "harmonisation"
spellers ...
Some words came from French and had rCL-izerCY, others did not and had rCL-iserCY.
Some folks in Britain decided to change the former to the latter.
rCLTeleviserCY, rCLmerchandiserCY, rCLadvertiserCY -- never any rCL-izerCY form.
rCLSynchronizerCY, rCLharmonizerCY, rCLapologizerCY -- rCL-izerCY originally.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 63 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 492946:14:28 |
| Calls: | 840 |
| Files: | 1,300 |
| D/L today: |
5 files (1,241K bytes) |
| Messages: | 260,694 |