3 ms·
> Suggesting that you should reference count the world is patently ridiculous. To be fair, Python reference counts the world. And old Python only had referenc
by eru 4y ago
> Suggesting that you should reference count the world is patently ridiculous.
To be fair, Python reference counts the world. And old Python only had reference counting, they added tracing garbage collection later.)
Python is not a fast language, of course. But neither is it a ridiculous language.
- nyanpasu64 4y agoI think one reason Python has a GIL (and can't execute in parallel on multiple threads in a process or interpreter) is to ensure faster non-atomic reference counting doesn't cause data races and memory errors.
- pclmulqdq 4y agoI disagree on the ridiculous part. Python (the language and the interpreter) is generally not considered to be an example of high-quality engineering. Also, when you have a global interpreter lock, you don't have to do anything inside that interpreter with atomics. Reference counting would be blazing fast in most cases where it can be done without atomic ops.