home.social

#cython — Public Fediverse posts

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

  1. @bascule "Made you look". Comparative FFI study this AM. I had reason to examine #PyCA #cryptography after reading @filippo and seeing it used #CFFI, not #Cython, and Rust-ified its underlying #OpenSSL API exposure with #C linkage using #Rust #unsafe blocks. Go figure. I just use #libsodium for most things because it ROCKS.

  2. @bascule "Made you look". Comparative FFI study this AM. I had reason to examine #PyCA #cryptography after reading @filippo and seeing it used #CFFI, not #Cython, and Rust-ified its underlying #OpenSSL API exposure with #C linkage using #Rust #unsafe blocks. Go figure. I just use #libsodium for most things because it ROCKS.

  3. @bascule "Made you look". Comparative FFI study this AM. I had reason to examine #PyCA #cryptography after reading @filippo and seeing it used #CFFI, not #Cython, and Rust-ified its underlying #OpenSSL API exposure with #C linkage using #Rust #unsafe blocks. Go figure. I just use #libsodium for most things because it ROCKS.

  4. @bascule "Made you look". Comparative FFI study this AM. I had reason to examine #PyCA #cryptography after reading @filippo and seeing it used #CFFI, not #Cython, and Rust-ified its underlying #OpenSSL API exposure with #C linkage using #Rust #unsafe blocks. Go figure. I just use #libsodium for most things because it ROCKS.

  5. @bascule "Made you look". Comparative FFI study this AM. I had reason to examine #PyCA #cryptography after reading @filippo and seeing it used #CFFI, not #Cython, and Rust-ified its underlying #OpenSSL API exposure with #C linkage using #Rust #unsafe blocks. Go figure. I just use #libsodium for most things because it ROCKS.

  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. 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

  10. 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.

  11. 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

  12. 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

  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. 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

  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 такой медленный? И вот что об этом думают эксперты

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

    habr.com/ru/articles/948858/

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

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

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

    habr.com/ru/articles/948858/

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

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

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

    habr.com/ru/articles/948858/

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

  21. 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

  22. 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

  23. 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

  24. 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

  25. 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

  26. 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)

  27. 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

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

  29. 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.

  30. @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

  31. @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

  32. @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

  33. @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

  34. @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

  35. 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/

  36. 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/