A technical look at the "Python moves to remove the GIL". Some coding & some source checking

Поділитися
Вставка
  • Опубліковано 7 жов 2024

КОМЕНТАРІ • 16

  • @ZergD
    @ZergD Рік тому +1

    Thank you! It is always a blast to learn with your videos!

  • @Gordonfreems
    @Gordonfreems Рік тому +1

    Thank you, very complete and interesting exploration of the Gil!
    I would assume the "nogil" would be a flag during install/compile, but looking at how complex the threading implementation is I now doubt it!

    • @Gordonfreems
      @Gordonfreems Рік тому +1

      Actually nevermind, reading the PEP they do propose a --disable-gil flag, and not using it would in theory keep your I/O bound programs as fast as they were

    • @geekingjadi
      @geekingjadi  Рік тому +1

      right. its a flag. but one of the arguments against is "its complex and not very clear"

  • @saeedmirshams8533
    @saeedmirshams8533 Рік тому

    احسنت، یکی از معدود کسانی هستید که مدعی هستند و تعریف زبان برنامه نویسی و کامپایلر را به خوبی درک و بیان کرده اند..

  • @AbcdefghijklmnopqrstuvwxyzLUL

    Amazing explanation thanks for this Jadi

  • @aliemami2949
    @aliemami2949 Рік тому

    Amazing Jadi....

  • @devanshkanda9618
    @devanshkanda9618 8 місяців тому

    Way to indepth. Thanks for this information.

  • @torkashvand
    @torkashvand Рік тому

    Great job ❤

  • @amirh6712
    @amirh6712 Рік тому

    Fantastic video.
    I'm not a Python Programmer but I wonder why CPython doesn't handle this like other programming languages that support concurrency out of the box.
    I mean why don't they remove the GIL and then add new keywords to the language that can be used to provide atomicity and sequential consistency? Something like Java/.Net volatile.
    Are they worried about backwards compatibility?

    • @geekingjadi
      @geekingjadi  Рік тому +1

      GIL is not that uncommon, If I'm not mistaked, the Ruby uses GIL too. and they are not completely removing it, they are adding a switch to the interpreter.

  • @atajahangiri5861
    @atajahangiri5861 Рік тому

    VERY very GOOD video

  • @k1tajfar714
    @k1tajfar714 Рік тому

    Jadi would you please tell me your nvim vscode-like plugins? If there is any specific link or documentation you use. Thanks.

    • @geekingjadi
      @geekingjadi  Рік тому

      I'll share that soon. but its technically the LazyVIM config

  • @funtech9
    @funtech9 Рік тому

    Thanks to nogil now we know more about the dark side of Python. Thank you Jadi. Great video.