Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: