home.social

#cython — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cython, aggregated by home.social.

  1. Does the #GDB extension for #Cython really require me to build GDB with #Python 2 in the year 2026?

  2. Does the #GDB extension for #Cython really require me to build GDB with #Python 2 in the year 2026?

  3. New update for my #python #multipart #parser #benchmark:

    defnull.de/2026/python-multipa

    The benchmark tests and compares the most commonly used Python parsers for multipart/form-data (HTML5 forms) in different scenarios, including a #rust parser and a #cython parser. The results may surprise you :awesome:

    Disclaimer: I'm the author of the 'multipart' library.

  4. New update for my #python #multipart #parser #benchmark:

    defnull.de/2026/python-multipa

    The benchmark tests and compares the most commonly used Python parsers for multipart/form-data (HTML5 forms) in different scenarios, including a #rust parser and a #cython parser. The results may surprise you :awesome:

    Disclaimer: I'm the author of the 'multipart' library.

  5. #Cython promises to make "writing #C extensions for Python as easy as #Python itself." The reality is: learn C's mental model, express it in Python syntax, and use a separate diagnostic tool to verify.
    github.com/cemrehancavdar/fast

  6. #Cython promises to make "writing #C extensions for Python as easy as #Python itself." The reality is: learn C's mental model, express it in Python syntax, and use a separate diagnostic tool to verify.
    github.com/cemrehancavdar/fast

  7. 2.0.0b20 was just released!

    There is quite some new stuff and also some fixes, please help with testing the betas!

    github.com/borgbackup/borg/rel

  8. 🐍👨‍💻 #PythoC — це новий проєкт, який дозволяє використовувати Python як генератор C-коду, пропонуючи більше можливостей і гнучкості, ніж #Cython. Це перший огляд нового інструмента генерації C-коду з #Python, орієнтованого передусім на створення самостійних C-програм.

    🔗 proit.ua/pythoc-novi-mozhlivos
    🔗 infoworld.com/article/4101101/

  9. 🐍👨‍💻 #PythoC — це новий проєкт, який дозволяє використовувати Python як генератор C-коду, пропонуючи більше можливостей і гнучкості, ніж #Cython. Це перший огляд нового інструмента генерації C-коду з #Python, орієнтованого передусім на створення самостійних C-програм.

    🔗 proit.ua/pythoc-novi-mozhlivos
    🔗 infoworld.com/article/4101101/

  10. Does anyone know of a good overview how much overhead using ctypes to call functions from a dynamic library adds to code instead of building a native extension e.g via or ?

    A blog post with some statistics would be perfect but just ballpark figures from anyone who knows what they are talking about is fine

  11. Does anyone know of a good overview how much overhead using ctypes to call functions from a dynamic library adds to #python code instead of building a native extension e.g via #cython #pybind11 or #nanobind ?

    A blog post with some statistics would be perfect but just ballpark figures from anyone who knows what they are talking about is fine

  12. I have officially started working as the training coordinator at #MimerAIF (mimer-ai.eu/). What better way to kick things off than a course?! These days I am teaching parts of the #PythonForScicomp course in partnership with @coderefinery and @SciCompAalto.

    Tomorrow is the last day of the course, but you can still join!

    scicomp.aalto.fi/training/scip

    I will be covering the episodes on #Cython and #Packaging.

  13. Fuzzing pyhacl (codeberg.org/drlazor8/pyhacl), a package of Cython bindings for HACL* (the High Assurance Cryptographic Library), with fusil we only found one crash.

    It turned out to actually be a silly bug in #Cython:

    Issue: github.com/cython/cython/issue

    Fix: github.com/cython/cython/pull/

    Goes to show how fuzzing a C-extension can uncover crashes in many different layers.

    Thanks @drlazor8 for taking up the call for C-extensions maintainers to fuzz their code.

    #fusil #Python #pyhacl #hacl #fuzzing #fuzzer

  14. Fuzzing pyhacl (codeberg.org/drlazor8/pyhacl), a package of Cython bindings for HACL* (the High Assurance Cryptographic Library), with fusil we only found one crash.

    It turned out to actually be a silly bug in #Cython:

    Issue: github.com/cython/cython/issue

    Fix: github.com/cython/cython/pull/

    Goes to show how fuzzing a C-extension can uncover crashes in many different layers.

    Thanks @drlazor8 for taking up the call for C-extensions maintainers to fuzz their code.

    #fusil #Python #pyhacl #hacl #fuzzing #fuzzer

  15. Ah, the timeless quest for speed: From #Cython to #Mojo, because obviously what we all need is yet another layer of #complexity to solve the crippling issue of Python's infamous sloth 🐢🔥. Nothing says "a productive day" like translating code from one esoteric dialect to another while dreaming of the #performance gains that never quite materialize 🚀😂.
    fnands.com/blog/2025/sklearn-m #Python #Speed #HackerNews #ngated

  16. Ah, the timeless quest for speed: From #Cython to #Mojo, because obviously what we all need is yet another layer of #complexity to solve the crippling issue of Python's infamous sloth 🐢🔥. Nothing says "a productive day" like translating code from one esoteric dialect to another while dreaming of the #performance gains that never quite materialize 🚀😂.
    fnands.com/blog/2025/sklearn-m #Python #Speed #HackerNews #ngated

  17. [Перевод] Почему Python такой медленный? И вот что об этом думают эксперты

    Команда Python for Devs подготовила перевод статьи о том, почему Python так медленный и что сообщество делает, чтобы это исправить. PyCon 2024 показал: Python ждут субинтерпретаторы, immortal objects, JIT-компиляция и другие технологии, которые могут ускорить его в разы.

    habr.com/ru/articles/948858/

    #python #производительность #gil #субинтерпретаторы #cython #jit #типизация #оптимизация #многопоточность #pycon

  18. Python: Schneller als man denkt

    Beginn einer Artikelserie zum Thema schneller Python Code. Eine Einführung mit einer Auflistung verschiedener Strategien die verglichen werden.

    #Python #Cython #Numpy #Numba #Linux

    gnulinux.ch/python-schneller-a

  19. Python: Schneller als man denkt

    Beginn einer Artikelserie zum Thema schneller Python Code. Eine Einführung mit einer Auflistung verschiedener Strategien die verglichen werden.

    #Python #Cython #Numpy #Numba #Linux

    gnulinux.ch/python-schneller-a

  20. If you're seeing your simulator builds fail recently, it's because of a new release:

    github.com/nest/nest-simulator

    Workaround: fix `cython<3.1.0` for the moment (until new NEST releases with the fix are made)

  21. En route to @pycon after a brief stopover in NYC for part of Never Graduate week!

    I’ll be talking about debugging in #cython (both at runtime and for memory management) on Saturday just after lunch.

    us.pycon.org/2025/schedule/pre

    Looking forward to seeing everyone at the conference!

    #pycon25 #pyconus

  22. En route to @pycon after a brief stopover in NYC for part of Never Graduate week!

    I’ll be talking about debugging in #cython (both at runtime and for memory management) on Saturday just after lunch.

    us.pycon.org/2025/schedule/pre

    Looking forward to seeing everyone at the conference!

    #pycon25 #pyconus

  23. а что если #cython 3.1 отличается от cython 3.0 настолько...
    ...что
    #sagemath перестанет собираться? ​:meowscream:​

  24. I'm happy to announce a new version of our #pycraf #Python package:

    github.com/bwinkel/pycraf

    The only change is that it now runs with numpy v2. Doesn't sound like much, but it was some effort, as pycraf uses a lot of #Cython (i.e., compiled code) under the hood.

    I was extremely happy when I realized that with numpy 2 one doesn't need to pin certain versions for ABI compatibility anymore. If you don't know what that means, don't worry - it's developer/package maintainer stuff. Apparently, even if you build the binary packages with numpy v2, it should still run under numpy v1. Magic. Will safe me hours of maintenance time, which can be better spent on new features.

  25. @nen while still on Python, have you tried scientific computation speed up things like #Numba ? Also, I once saw a #Cython talk and I was almost convinced to give it a go (but I'm too lazy) :D

  26. @nen while still on Python, have you tried scientific computation speed up things like #Numba ? Also, I once saw a #Cython talk and I was almost convinced to give it a go (but I'm too lazy) :D

  27. Just published #mashumaro 3.15 with the #JSONSchema plugin system! 🎉 I guess the next thing will be plugins for serialization and deserialization. Who knows, maybe this will be my ticket to strict validation and speeding up with #cython. On a side note, I believe I’m among the last developers to discontinue support for #python 3.8.

    github.com/Fatal1ty/mashumaro/

  28. Just published #mashumaro 3.15 with the #JSONSchema plugin system! 🎉 I guess the next thing will be plugins for serialization and deserialization. Who knows, maybe this will be my ticket to strict validation and speeding up with #cython. On a side note, I believe I’m among the last developers to discontinue support for #python 3.8.

    github.com/Fatal1ty/mashumaro/

  29. Как реализовать быструю реентерабельную блокировку на Python и почему она работает

    В стандартной библиотеке языка Python имеется базовый примитив синхронизации — реентерабельная блокировка. Она позволяет одному и тому же потоку, несколько раз захватить блокировку. Стандартная реализация может использовать для блокировки мьютекс или семафор, и их захват всегда приводит к вызову функции из ядра ОС. Используя GIL (Global Interpreter Lock - Глобальная блокировка интерпретатора) и особенности реализации Threading.Lock.release можно создать более быстрый вариант. Давайте попробуем разобраться

    habr.com/ru/articles/855728/

    #python #cython #locks

  30. #cython из main branch не понимает long
    поэтому
    #sagemath не собирается.

    Если хочется обновить sagemath
    от Volker Braun, следует
    1) пересобрать
    cython-3.0.11 без python3_13t без 3.0.11-1...master.diff
    2) обновить sagemath
    3) обратно пересобрать
    cython с python3_13t с 3.0.11-1...master.diff

    Ну.... для того ж мы и ставили
    ​:gentoo:​ чтобы страдать.

  31. My Q4 goal (or whatever, end of year) is to make at least one open source contribution to a major library (preferably for #Python)

    I think #hacktoberfest is less of a thing?

    So far I’ve noticed that on the major Python libraries, (core CPython, #numpy) they don’t really do “good first issue” tags anymore.

    Also want to read everything I can about free threading. Maybe improve some of the #cython docs based on my past work.

    (Very happy to be corrected on these assertions if I’m wrong)

  32. My Q4 goal (or whatever, end of year) is to make at least one open source contribution to a major library (preferably for #Python)

    I think #hacktoberfest is less of a thing?

    So far I’ve noticed that on the major Python libraries, (core CPython, #numpy) they don’t really do “good first issue” tags anymore.

    Also want to read everything I can about free threading. Maybe improve some of the #cython docs based on my past work.

    (Very happy to be corrected on these assertions if I’m wrong)

  33. Do you love Cython? Are you passionate about open source? Consider volunteering with pyOpenSci! We’re looking for a volunteer reviewer with Cython expertise and an interest in network diffusion processes to help review the CyNetDiff Python package.

    🫶 New to reviewing? We offer mentorship!

    💻 Learn more about CyNetDiff: github.com/eliotwrobson/CyNetD
    💜 Apply today: bit.ly/pyOSReviewer

    #OpenSource #OpenScience #Python #pyOpenSci #Volunteer #Cython #NetworkDiffusion

  34. I’ve had an unfortunate trend lately of always presenting on the last day at conferences 😅

    That being said, just finished presenting “Sleuthing in Cython” on my debugging and memory profiling adventures at #pyconjp2024

    The talk was recorded and will be available later, but the slides and underlying repo are already up!

    pretalx.com/media/pyconjp2024/

    github.com/m-clare/cytriangle

    #cython @ThePSF #oss #python

  35. #ThisMonthInFluiddyn - Feb 2024 edition

    A big one, where many #FluidDyn packages starts rolling on wheels 🚗 🏁 !

    🔹FluidFFT, your user-friendly parallelized FFT package, is now so easy to install! Try:

    pip install fluidfft pyfftw

    🔹The #Pythran extensions comes pre-compiled!

    🔹FluidFFT v0.4.x has plugins now (one each for different MPI enabled Cython backends: FFTW, P3DFFT, PFFT ...) which requires #Cython compilation. This used to be part of FluidFFT in older versions.

    fluidfft.readthedocs.io/en/lat

  36. #ThisMonthInFluiddyn - Feb 2024 edition

    A big one, where many #FluidDyn packages starts rolling on wheels 🚗 🏁 !

    🔹FluidFFT, your user-friendly parallelized FFT package, is now so easy to install! Try:

    pip install fluidfft pyfftw

    🔹The #Pythran extensions comes pre-compiled!

    🔹FluidFFT v0.4.x has plugins now (one each for different MPI enabled Cython backends: FFTW, P3DFFT, PFFT ...) which requires #Cython compilation. This used to be part of FluidFFT in older versions.

    fluidfft.readthedocs.io/en/lat

  37. #ThisMonthInFluiddyn - Feb 2024 edition

    A big one, where many #FluidDyn packages starts rolling on wheels 🚗 🏁 !

    🔹FluidFFT, your user-friendly parallelized FFT package, is now so easy to install! Try:

    pip install fluidfft pyfftw

    🔹The #Pythran extensions comes pre-compiled!

    🔹FluidFFT v0.4.x has plugins now (one each for different MPI enabled Cython backends: FFTW, P3DFFT, PFFT ...) which requires #Cython compilation. This used to be part of FluidFFT in older versions.

    fluidfft.readthedocs.io/en/lat

  38. - Feb 2024 edition

    A big one, where many packages starts rolling on wheels 🚗 🏁 !

    🔹FluidFFT, your user-friendly parallelized FFT package, is now so easy to install! Try:

    pip install fluidfft pyfftw

    🔹The extensions comes pre-compiled!

    🔹FluidFFT v0.4.x has plugins now (one each for different MPI enabled Cython backends: FFTW, P3DFFT, PFFT ...) which requires compilation. This used to be part of FluidFFT in older versions.

    fluidfft.readthedocs.io/en/lat

  39. #ThisMonthInFluiddyn - Feb 2024 edition

    A big one, where many #FluidDyn packages starts rolling on wheels 🚗 🏁 !

    🔹FluidFFT, your user-friendly parallelized FFT package, is now so easy to install! Try:

    pip install fluidfft pyfftw

    🔹The #Pythran extensions comes pre-compiled!

    🔹FluidFFT v0.4.x has plugins now (one each for different MPI enabled Cython backends: FFTW, P3DFFT, PFFT ...) which requires #Cython compilation. This used to be part of FluidFFT in older versions.

    fluidfft.readthedocs.io/en/lat

  40. Honestly, about 10% of my commits are immediately followed by another one with the message, “Oops! …”

    #FlitterLang #Python #Cython #Software #Dev

  41. Why has it taken me until yesterday to set up a git commit hook that runs the linter and stops me checking in *obviously broken code*…

    [Edit: of course, I meant *pre-commit* hook 🙄]

    #FlitterLang #Python #Cython #Software #Dev

  42. 🚀 Ready to supercharge your #Python skills? Join us at the next MadPy meetup in just one week!
    :python: @djhoese will be diving into "Python at the Speed of C," exploring the power of #Cython and the Python C API.
    🍕 Plus, we'll have free pizza and beverages for everyone!
    📍 We'll be at #Madison's Central Library. Newcomers and python beginners welcome
    📆 It’s just 1 week away. Mark your calendar!

    meetup.com/madison-python/even

    #MadisonWI #UWMadison

  43. 2024 New Years Resolution: attend more MadPy meetups!

    Don't miss our first one of the year. @djhoese will discuss #Cython and using #Python with other languages. (He may even demo a performance comparison against #Rust)

    The event is free and open to the public, hosted at #Madison's Central Library. All are welcome, including experts and newcomers alike. (Working on finding a sponsor for food & beverage 🤞 TBD)

    Looking forward to seeing you!

    meetup.com/madison-python/even

    #MadisonWI #UWMadison