A first look at a faster, no-GIL Python

  Рет қаралды 7,758

InfoWorld

InfoWorld

Күн бұрын

Пікірлер: 29
@SouravBasuRoy
@SouravBasuRoy Жыл бұрын
this will make python #1 permanently, in the list of top programming languages
@yarmgl1613
@yarmgl1613 11 ай бұрын
the interpreter is still slow, and it's weakly typed
@DhruvRed
@DhruvRed 9 ай бұрын
@@yarmgl1613 That is no longer the issue with language but with the programmer, as types are available in python and programmer can and should mention types with variables and function return types
@atomicgray
@atomicgray 6 ай бұрын
What lol python is strongly typed, what you are looking for is dynamically typed
@chintssats12
@chintssats12 5 ай бұрын
I second that @SouravBasuRoy. With the faster python project no doubt Python will hold the throne.
@niks660097
@niks660097 4 ай бұрын
@@yarmgl1613 technically C is also weakly typed, since you can use pointers to keep any type of data, Dynamic type vs static type is different than weakly vs strongly typed, RUST is strongly typed, C/C++/Java/Golang/C# all are weakly typed but static typed.
@Oodle-ox2vf
@Oodle-ox2vf 5 ай бұрын
Sounds promising, will need to introduced carefully. Can't wait to try it.
@christopherprobst-ranly6357
@christopherprobst-ranly6357 Жыл бұрын
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.
@maciejurbanski6146
@maciejurbanski6146 11 ай бұрын
except asyncio loop has to run in single thread, and most asyncio stuff is marked as not-thread-safe
@christopherprobst-ranly6357
@christopherprobst-ranly6357 11 ай бұрын
@@maciejurbanski6146nah, you would run one event Loop per thread.
@nickthewilde7080
@nickthewilde7080 11 ай бұрын
If you're talking about asyncio, unless the core developers explicitly state they have plans for supporting asyncio, chances are they wont adapt that library. Going from context-switching to paralellism will break most asynchronous programs
@christopherprobst-ranly6357
@christopherprobst-ranly6357 11 ай бұрын
@@nickthewilde7080you Don‘t Need Support. Create a new eventloop per thread/subinterpreter. You will get Speed up.
@CharlesMacKay88
@CharlesMacKay88 10 ай бұрын
@@nickthewilde7080 asyncio is part of the standard python library. what do you mean the core developers wont support it?
@vihaanthora8089
@vihaanthora8089 11 ай бұрын
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!
@InfoWorld
@InfoWorld 11 ай бұрын
Yes, I plan to do a good deal more video material about the changes in no-gil as they get rolled out in official Python releases. -Serdar
@ciberman
@ciberman 4 ай бұрын
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.
@yash1152
@yash1152 Жыл бұрын
0:51 > _"use threads to wait on network io or user io"_ good 4:15 approach used by the new no-GIL
@ApexArtistX
@ApexArtistX 10 ай бұрын
Need this soon. For custom Gym and RL agents
@DanielCardenas1
@DanielCardenas1 11 ай бұрын
Thanks Serdar! That was very informative! :)
@ThankYouESM
@ThankYouESM 10 ай бұрын
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.
@mattstroker3742
@mattstroker3742 2 ай бұрын
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.
@InfoWorld
@InfoWorld Ай бұрын
I don't know if he's actually working on the underlying code but he is certainly part of the process that's shepherding "free-threaded Python" (as it's now known) to full release. -Serdar
@pietraderdetective8953
@pietraderdetective8953 Жыл бұрын
What kind of performance improvement can we expect? This coupled with Cython should be a speed demon?
@InfoWorld
@InfoWorld Жыл бұрын
The performance increases are going to depend entirely on the workload in question, but it's clear one of the big benefits is being able to cleanly parallelize workloads across CPU cores using the existing threading interfaces. -Serdar
@olejrgenbrnner4708
@olejrgenbrnner4708 8 ай бұрын
Yes, AFAIK regular single-threaded code will become *slower*
@gvozdyara9563
@gvozdyara9563 4 ай бұрын
Calling Cython or other c-library releases the GIL, if I’m not mistaken. So calling cython makes Python code multicore-running.
@robertlawson4295
@robertlawson4295 11 ай бұрын
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.
@shaurz
@shaurz 9 ай бұрын
But without gills, how will pythons breathe underwater?
@wishabhilash
@wishabhilash 4 ай бұрын
Through its skin.
python is removing the GIL! (PEP 703) (advanced) anthony explains #550
24:04
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 150 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 2,4 МЛН
Python is NOT Single Threaded (and how to bypass the GIL)
10:23
Jack of Some
Рет қаралды 109 М.
The Value of Source Code
17:46
Philomatics
Рет қаралды 77 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 89 М.
How Much FASTER Is Python 3.13 Without the GIL?
10:00
ArjanCodes
Рет қаралды 161 М.
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
Cython 3.0: Compiling Python to C, the next generation
8:17
InfoWorld
Рет қаралды 7 М.
Keynote: The big leap of Python 3.13 - Łukasz Langa
30:56
PyCon Thailand
Рет қаралды 12 М.
New Features You Need To Know In Python 3.12
12:04
ArjanCodes
Рет қаралды 181 М.