Evan Hahn · @EvanHahn
918 followers · 302 posts · Server bigshoulders.city

@gregorni ? I understand it to be a Python superset that's compiled. (I might be wrong, I've never worked with it!)

#cython

Last updated 2 years ago

Andrew Baldwin · @baldand
219 followers · 551 posts · Server mstdn.thndl.com

Trying to extend my pi3-based with a script for some local data processing & control.

I need CPU & memory use to stay low, so looking at making some C extension functions for the heavier bits.

I often do those with the Python C API, but this time trying out again.

Last time I used it was 10 years ago. Now I noticed it recently released v3.0.0 with a new pure python syntax based on type annotations and decorators - quite interesting

cython.readthedocs.io/en/lates

#homeassistant #python #cython

Last updated 2 years ago

Michał Górny · @mgorny
162 followers · 661 posts · Server pol.social

Eksperymentuję z nowym testem QA dla ebuildów dla paczek Pythona. Udało mi się zlokalizować kilka paczek, w których nie testowaliśmy zainstalowanych rozszerzeń w języku C, bo katalog źródłowy wpierniczał się, "widział" tylko źródła i testował wersję w czystym Pythonie.

Po poprawieniu tych błędów, okazało się, że dwie paczki były oznaczone jako zgodne z Pythonem 3.12, podczas gdy ich rozszerzenia się sypały. Dwie kolejne miały padające testy przy korzystaniu z rozszerzeń C na wszystkich wersjach Pythona.

Przy okazji, dodałem brakujące ograniczenie do < 3 przy kilkunastu paczkach, a w dwóch uczyniłem rozszerzenia C opcjonalnymi.

Teraz jeszcze muszę poprawić ten test QA, żeby pozbyć się fałszywie dodatnich wyników, które występują wówczas, gdy katalog źródłowy zawiera pliki .c — których oczywiście nie ma w zainstalowanej paczce.

#cython #python #gentoo

Last updated 2 years ago

woїu · @woju
25 followers · 137 posts · Server social.hackerspace.pl

@mgorny
Did I see correctly that maintainer claims 5.4 release "long gone" and at the same time gates the fix on *Windows Python 2.x*?

#pyyaml #cython #python

Last updated 2 years ago

Michał Górny · @mgorny
143 followers · 559 posts · Server pol.social

Miałem pisać o fajnych rzeczach, a zamiast tego ciągniemy temat . Autorzy wciąż odrzucają poprawki zgodności z 3. Jest już dosyć jasne, że dystrybucje będą musiały męczyć się z własnymi łatkami jeszcze przez długi czas. Wzdych.

github.com/yaml/pyyaml/pull/73

#python #cython #pyyaml

Last updated 2 years ago

Michał Górny · @mgorny
126 followers · 508 posts · Server pol.social

Sytuacja z -em jest rozwojowa. Wiara coraz bardziej stara się niezależnie naprawiać swoje zabawki. Najwyraźniej pip pozwala na odgórne ograniczenie akceptowalnych wersji pakietów, ale to również nie rozwiązuje problemu w pełni.

Mam dwie myśli:

1. *W końcu* nie tylko my w mamy problem sprzecznych oczekiwań różnych paczek (czyt. nie tylko nam się wszystko sypie, bo potrzeba dwóch różnych wersji Cythona jednocześnie).

2. Biorąc pod uwagę, że problem znany był półtora roku, i autorzy PyYAML-a nie zrobili nic, żeby go rozwiązać… czy naprawdę sądzicie, że dalsze używanie tej paczki to dobry pomysł? Albo szerzej mówiąc, czy użycie YAML-a to dobry pomysł, Norway?

discuss.python.org/t/no-way-to

#cython #python #gentoo #pyyaml

Last updated 2 years ago

Michał Górny · @mgorny
122 followers · 494 posts · Server pol.social

A pamiętacie jak ignorował problem zgodności z Cythonem 3 przez półtora roku? No więc, 3 wyszedł dzisiaj i zgłoszenie błędu eksplodowało, kiedy pierdyliard potoków zaczęło się sypać.

github.com/yaml/pyyaml/issues/

#python #cython #pyyaml

Last updated 2 years ago

Clément Robert · @neutrinoceros
108 followers · 229 posts · Server fosstodon.org

3.0 is (almost) out !

(binaries are being deployed right now, so it should be available in a couple hours)

github.com/cython/cython/relea

This is exciting news for our ecosystem because it's the first stable version able to *not* generate deprecated C-API code. When it's widely adopted, Numpy devs will finally be able to move forward with performance optimisations that were not possible without breaking everyone's favourite package !

#cython #numpy

Last updated 2 years ago

Arĥimedeς Montegasppα Cacilhας · @cacilhas
8 followers · 233 posts · Server mas.to

People have told me to replace the most critical codes with Cython, and it would increase my app’s performance 12,000 times. I did it, and indeed it increased the performance by about 12,000. times. So I asked myself: What if I replace EVERY SINGLE Python code with Cython? So I did it, and the performance was 35,000 faster than the original code. That’s why I recommend .

#cython #Python

Last updated 2 years ago

Clément Robert · @neutrinoceros
104 followers · 209 posts · Server fosstodon.org

This year is very intensive in terms of migrations for scientific Python maintainers:
- a new (3.12) in October
- a major version of (3.0) announced for this summer
- a major version of (2.0) scheduled for the end of the year

All of which will require careful testing and probably take some time to propagate through the giant mess that are dependency trees in scientific 😵‍💫

#cpython #cython #numpy #python

Last updated 2 years ago

Matt · @psychxr
309 followers · 1126 posts · Server fosstodon.org

Been using for a week at work and it's quite good. Might use it over at some point.

Started using PyCharm when I worked on PsychXR for Oculus, mainly because of the support. Excellent software, but feels like overkill these days TBH.

Side note, takes the prize for my most used IDE. Used it exclusively for software development between 2006-2018, longer than anything else.

#vscode #pycharm #cython #geany #programming #editor

Last updated 2 years ago

Cython is a language that is a superset of Python, and compiles to C, allowing for performance boosts. It can be used to transcend the native limitations of Python without sacrificing its convenience and ease. infoworld.com/article/3250299/

#cython #performanceboost #python

Last updated 3 years ago

JoshB :python: · @joshburnett
76 followers · 199 posts · Server fosstodon.org

Thinking of dipping my toe into the world of today. I need something like a QTimer from Qt/PyQt/PySide, where I can run a function in the background at a set interval.

Need to be able to run a function at up to maybe 300 Hz. I have this case already working w/ a QTimer, but would like to do it without the event loop design constraint (and giant dependency) of Qt.

#cython #python

Last updated 3 years ago

Michael Connor Buchan · @TheFake_VIP
641 followers · 2483 posts · Server linuxrocks.online

You know you're doing something cursed when you're compiling your own version of to get the static libraries because they're removed from the Arch package.

I'm playing with , trying to get it to produce a standalone executable with the --embed option.

Sidenote: Anyone got suggestions for a good build system for a Python game that needs to be compiled to a standalone distribution (single folder or single binary), using either Cython or , that I could get working cross-platform?

#nuitka #cython #python

Last updated 3 years ago

Clément Robert · @neutrinoceros
84 followers · 52 posts · Server fosstodon.org

The basic operation is pretty straightforward, from a mathematical standpoint, but getting this right everywhere, including the edges of the image, was quite challenging.

In order to put this together, I learned a lot !
The hot loops are done in , which was new to me, and designing an extensible framework that I won't need to come back to every time someone (me) comes up with new exotic boundary conditions required careful thinking.

#cython

Last updated 3 years ago

👤 · @RedsAnDev
1 followers · 7 posts · Server mastodon.uno

today and 🤖🤖

#goodmorning #python #cython

Last updated 3 years ago

Sahaj Sarup · @ric96
162 followers · 1411 posts · Server mastodon.online

This might be worse

RT @sahajsarup@twitter.com

What I assumed would look like

🐦🔗: twitter.com/sahajsarup/status/

#cython

Last updated 3 years ago

Sahaj Sarup · @ric96
162 followers · 1411 posts · Server mastodon.online

What I assumed would look like

#cython

Last updated 3 years ago

Maryanne Wachter · @mclare
104 followers · 515 posts · Server recurse.social

My talk at on performance optimization with (including packaging tips and library integration with @Blender@twitter.com) is now on Youtube!

👉youtube.com/watch?v=TE3M3XfwSN

You can also see the the slide deck here:
github.com/m-clare/pymaxion/tr 1/4

#PyConUS2022 #python #cython #pyladies #womenintech

Last updated 3 years ago

Maryanne Wachter · @mclare
104 followers · 515 posts · Server recurse.social

Today’s the day😱! @pycon@twitter.com I’ll be talking at 2:30 about building packages and how to integrate a geometric constraint solver into @Blender@twitter.com. There will also be gifs @pyladies@twitter.com t.co/VAwZPpAJk9

#cython #PyConUS2022 #PyCon2022

Last updated 3 years ago