News for hackers. Stuff that matters.
Re:Global Interpreter Lock, or how to kill it by cma on Wednesday June 29, 2011 @03:36PM (#2710886)
Fork doesn't work for much in python; for example if you want to create a bunch of data and then fork a bunch of processes to calculate stuff using the data (say the data is a bunch of word count indexes or something), you can't even read the data from the python processes without triggering copy-on-write. This is because all these little reference counts are scattered throughout the data and they get changed just by reading.
Re:Global Interpreter Lock, or how to kill it by fijall on Wednesday June 29, 2011 @04:19PM (#2711082)
This doesn't quite apply to PyPy (which doesn't have refcounting), but the point stands. In case of PyPy this is GC flags and moving GC.