Python के लिए No-GIL मोड का आगमन
(lwn.net)- CPython के Global Interpreter Lock(GIL) को optional बनाने की दिशा में बढ़ने के साथ, Python के parallel execution model में बड़ा बदलाव आने वाला है
- Python Steering Council ने PEP 703 को स्वीकार करने की मंशा जताई है, और शुरुआती support Python 3.13 में शामिल हो सकता है
- मुख्य मुद्दा यह है कि no-GIL build और मौजूदा with-GIL build third-party code changes को साथ में अपना सकते हैं या नहीं
- Steering Council “एक और Python 3 स्थिति” से बचना चाहता है, और backward compatibility तथा ABI compatibility requirements की सावधानी से समीक्षा कर रहा है
- no-GIL की शुरुआत Python 4 transition नहीं है, इसलिए पुराने Python versions के साथ compatibility issues को अलग से हल करना होगा
PEP 703 स्वीकार करने की मंशा
- Python Steering Council ने PEP 703: Making the Global Interpreter Lock Optional in CPython को स्वीकार करने की मंशा जताई
- PEP 703, CPython में Global Interpreter Lock को optional बनाने का प्रस्ताव है
- शुरुआती support Python 3.13 release में शामिल हो सकता है
Compatibility और migration के मुद्दे
- Steering Council no-GIL transition में backward compatibility को बहुत सावधानी से संभालना चाहता है
- no-GIL build के अनुरूप बनाने के लिए जरूरी third-party code changes with-GIL build में भी वैसे ही काम करने चाहिए
- हालांकि, और पुराने Python versions के साथ backward compatibility को अलग से हल करना होगा
- इस बात पर जोर दिया गया है कि यह बदलाव Python 4 नहीं है
- दोनों builds के बीच ABI compatibility requirements और backward compatibility पर उनके असर की समीक्षा अभी जारी है
1 टिप्पणियां
Hacker News की राय