#cython — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cython, aggregated by home.social.
-
New update for my #python #multipart #parser #benchmark:
https://defnull.de/2026/python-multipart-benchmark/
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.
-
New update for my #python #multipart #parser #benchmark:
https://defnull.de/2026/python-multipart-benchmark/
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.
-
#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.
https://github.com/cemrehancavdar/faster-python-bench/blob/main/docs/cython-minefield.md -
#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.
https://github.com/cemrehancavdar/faster-python-bench/blob/main/docs/cython-minefield.md -
#borgbackup 2.0.0b20 was just released!
There is quite some new stuff and also some fixes, please help with testing the betas!
https://github.com/borgbackup/borg/releases/tag/2.0.0b20
#backup #linux #bsd #macOS #openindiana #haiku #python #cython #borg
-
#borgbackup 2.0.0b20 was just released!
There is quite some new stuff and also some fixes, please help with testing the betas!
https://github.com/borgbackup/borg/releases/tag/2.0.0b20
#backup #linux #bsd #macOS #openindiana #haiku #python #cython #borg
-
🐍👨💻 #PythoC — це новий проєкт, який дозволяє використовувати Python як генератор C-коду, пропонуючи більше можливостей і гнучкості, ніж #Cython. Це перший огляд нового інструмента генерації C-коду з #Python, орієнтованого передусім на створення самостійних C-програм.
🔗 https://proit.ua/pythoc-novi-mozhlivosti-ghienieratsiyi-c-kodu/
🔗 https://www.infoworld.com/article/4101101/pythoc-a-new-way-to-generate-c-code-from-python.html -
🐍👨💻 #PythoC — це новий проєкт, який дозволяє використовувати Python як генератор C-коду, пропонуючи більше можливостей і гнучкості, ніж #Cython. Це перший огляд нового інструмента генерації C-коду з #Python, орієнтованого передусім на створення самостійних C-програм.
🔗 https://proit.ua/pythoc-novi-mozhlivosti-ghienieratsiyi-c-kodu/
🔗 https://www.infoworld.com/article/4101101/pythoc-a-new-way-to-generate-c-code-from-python.html -
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
-
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
-
I have officially started working as the training coordinator at #MimerAIF (https://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!
https://scicomp.aalto.fi/training/scip/python-for-scicomp-2025/
I will be covering the episodes on #Cython and #Packaging.
-
Fuzzing pyhacl (https://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: https://github.com/cython/cython/issues/7263
Fix: https://github.com/cython/cython/pull/7264
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.
-
Fuzzing pyhacl (https://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: https://github.com/cython/cython/issues/7263
Fix: https://github.com/cython/cython/pull/7264
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.
-
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 🚀😂.
https://fnands.com/blog/2025/sklearn-mojo-dbscan-inner/ #Python #Speed #HackerNews #ngated -
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 🚀😂.
https://fnands.com/blog/2025/sklearn-mojo-dbscan-inner/ #Python #Speed #HackerNews #ngated -
Translating Cython to Mojo, a first attempt
https://fnands.com/blog/2025/sklearn-mojo-dbscan-inner/
#HackerNews #Translating #Cython #to #Mojo #MojoProgramming #CythonTranslation #TechInnovation #SoftwareDevelopment
-
Translating Cython to Mojo, a first attempt
https://fnands.com/blog/2025/sklearn-mojo-dbscan-inner/
#HackerNews #Translating #Cython #to #Mojo #MojoProgramming #CythonTranslation #TechInnovation #SoftwareDevelopment
-
[Перевод] Почему Python такой медленный? И вот что об этом думают эксперты
Команда Python for Devs подготовила перевод статьи о том, почему Python так медленный и что сообщество делает, чтобы это исправить. PyCon 2024 показал: Python ждут субинтерпретаторы, immortal objects, JIT-компиляция и другие технологии, которые могут ускорить его в разы.
https://habr.com/ru/articles/948858/
#python #производительность #gil #субинтерпретаторы #cython #jit #типизация #оптимизация #многопоточность #pycon
-
If you're seeing your #NEST simulator builds fail recently, it's because of a new #Cython release:
https://github.com/nest/nest-simulator/issues/3495
Workaround: fix `cython<3.1.0` for the moment (until new NEST releases with the fix are made)
#ComputationalNeuroscience #ComputationalModelling #Neuroscience #AcademicChatter
-
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.
https://us.pycon.org/2025/schedule/presentation/56/
Looking forward to seeing everyone at the conference!
-
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.
https://us.pycon.org/2025/schedule/presentation/56/
Looking forward to seeing everyone at the conference!
-
I'm happy to announce a new version of our #pycraf #Python package:
https://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.
-
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.
-
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.
-
Как реализовать быструю реентерабельную блокировку на Python и почему она работает
В стандартной библиотеке языка Python имеется базовый примитив синхронизации — реентерабельная блокировка. Она позволяет одному и тому же потоку, несколько раз захватить блокировку. Стандартная реализация может использовать для блокировки мьютекс или семафор, и их захват всегда приводит к вызову функции из ядра ОС. Используя GIL (Global Interpreter Lock - Глобальная блокировка интерпретатора) и особенности реализации Threading.Lock.release можно создать более быстрый вариант. Давайте попробуем разобраться
-
#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: чтобы страдать. -
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)
-
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)
-
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: https://github.com/eliotwrobson/CyNetDiff
💜 Apply today: https://bit.ly/pyOSReviewer#OpenSource #OpenScience #Python #pyOpenSci #Volunteer #Cython #NetworkDiffusion
-
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!
-
Le nouveau billet de #veille du SED de l'Inria Saclay est en ligne:
→ https://sed.saclay.inria.fr/posts/Veille/2024-05-30.html
#capitalisme #écologie #histoire #optimisation #python #cython #numpy #google #intelligence_artificielle #computer_graphics #web
-
#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.
-
#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.
-
#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.
-
#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.
-
#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.
-
Honestly, about 10% of my commits are immediately followed by another one with the message, “Oops! …”
-
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 🙄]
-
🚀 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! -
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!