A first look at a faster, no-GIL Python

preview_player
Показать описание
CPython's Global Interpreter Lock, or GIL, has long prevented it from being a truly parallel, multicore language. A new proposal, PEP 703, describes a roadmap to a new design for CPython that can use multithreading to properly unlock parallelism. Watch in this video as we use a prototype build of the "no-GIL" edition of Python to demonstrate how much faster code can be if this proposal takes off.

------------------------------­----
Рекомендации по теме
Комментарии
Автор

this will make python #1 permanently, in the list of top programming languages

SouravBasuRoy
Автор

It has no negative effect on async, its something entirely different. Even better, async will benefit as we can finally have truly multicore servers without using multiple processes.

christopherprobst-ranly
Автор

Sounds promising, will need to introduced carefully. Can't wait to try it.

Oodle-oxvf
Автор

0:51 > _"use threads to wait on network io or user io"_ good
4:15 approach used by the new no-GIL

yash
Автор

Thanks for the video, it summarized the no-gil version really well! I would love to see a video that would dive deeper in how the reference counting has changed in this version and why it is thread safe.
Cheers!

vihaanthora
Автор

I am a C# guy. I used Python for my degree thesis and my only concern with the language was the lack of a built in way of using class events (EventDispatcher or similar) and the GIL limitation for multithreading math heavy computation. I don't normally use python, but I am really glad that the GIL is being refactored.

ciberman
Автор

During 2010, a friend of mine implemented a workaround way for Python to piggy-back on C to get the best of both worlds. He hated having to write in C, but... loved writing in Python... then years later created a way to get Python to write C. Sadly enough... he never shared that code with anybody.

ThankYouESM
Автор

Thanks Serdar! That was very informative! :)

DanielCardenas
Автор

Need this soon. For custom Gym and RL agents

ApexArtistX
Автор

Is Guido van Rossum also working on no-gil? Then I'm sure it'll be fine rather quickly. As soon as it's stable and out, I'm sure it'll be adopted really fast.

mattstroker
Автор

What kind of performance improvement can we expect? This coupled with Cython should be a speed demon?

pietraderdetective
Автор

But then, gliding over the horizon ... oh no, it's Mojo (a superset of Python) to the rescue. Dum Dum (ominous musical notes). To be continued ... maybe.

robertlawson
Автор

But without gills, how will pythons breathe underwater?

shaurz