eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

216
active users

#pypy

0 posts0 participants0 posts today
mgorny-nyan (on) :autism:🙀🚂🐧<p>Jakiś&nbsp;czas temu, zainspirowany <a href="https://pol.social/tags/Fedor%C4%85" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Fedorą</span></a>, wyodrębniłem paczki .whl z Pythonowego ensurepip w <a href="https://pol.social/tags/Gentoo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gentoo</span></a> (właśnie sprawdziłem — "jakiś&nbsp;czas" to 3 lata). Umożliwiło to nam aktualizowanie ich razem z paczkami pip i setuptools, dzięki czemu nowe środowiska wirtualne otrzymują najnowszą dostępną&nbsp;wersję, a nie tę, którą&nbsp;włączono w dane wydanie CPythona.</p><p>Myślałem wówczas, by budować je z naszych systemowych paczek, ale już wówczas usuwaliśmy zagnieżdżone zależności, więc otrzymalibyśmy niepełne paczki. Zamiast tego po prostu zgarnialiśmy gotowe paczki z PyPI. A dlaczego nie budować ich na nowo ze źródeł? Pomijając fakt, że wydawało się to zbędne (wszak paczki na PyPI nie zawierają&nbsp;żadnego skompilowanego kodu), nie mieliśmy do tego dobrej infrastruktury w eclass.</p><p>Za inspiracją&nbsp;<span class="h-card" translate="no"><a href="https://floss.social/@hroncok" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>hroncok</span></a></span>, dziś przygotowałem nowe wersje paczek ensurepip, które budują wszystko ze źródeł. Co się&nbsp;zmieniło, i dlaczego warto dziś&nbsp;budować&nbsp;ze źródeł? Po pierwsze, nasz kod budowania PEP517 dorobił się możliwości wydobycia poprzednich paczek .whl. Po drugie, skoro usuwamy zagnieżdżone zależności z pipa i setuptools, to właściwie testujemy inny kod niż ten, który trafia do ensurepip — a myślę,&nbsp;że miałoby sens testowanie obydwu wariantów. Po trzecie, budowanie ze źródeł ułatwi nakładanie łatek, a w szczególności umożliwi użytkownikom łatwe dodawanie lokalnych łatek.</p><p>A skoro już się&nbsp;za to wziąłem, to przy okazji zaktualizowałem stan testów we wszystkich trzech paczkach (pip, setuptools i wheel — tego ostatniego potrzebujemy ze względu na testy). No i oczywiście, że trafiłem na padające testy w wersjach z zagnieżdżonymi zależnościami, i przypadkiem odkryłem błąd w <a href="https://pol.social/tags/PyPy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyPy</span></a>.</p><p><a href="https://github.com/gentoo/gentoo/pull/42882" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/gentoo/gentoo/pull/</span><span class="invisible">42882</span></a> (tak, nadal tam jesteśmy)<br><a href="https://github.com/pypy/pypy/issues/5306" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/pypy/pypy/issues/53</span><span class="invisible">06</span></a></p><p><a href="https://pol.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a></p>
danzin<p>Do you maintain or contribute to a <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> package that includes a C extension? Would you like to run a fuzzer against it?</p><p>If so, let me know and I will run it, or help you to get it running. </p><p>The fuzzer is <a href="https://mastodon.social/tags/fusil" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fusil</span></a>, which generates random code calling into your functions and methods. It's useful to check for crashes on invalid inputs or unexpected call patterns.</p><p>It has found about 50 crashes in <a href="https://mastodon.social/tags/CPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CPython</span></a>, 20 in <a href="https://mastodon.social/tags/PyPy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyPy</span></a>, 6 in <a href="https://mastodon.social/tags/Numpy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Numpy</span></a> etc.</p><p><a href="https://mastodon.social/tags/fuzzing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fuzzing</span></a> <a href="https://mastodon.social/tags/fuzzer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fuzzer</span></a> <a href="https://mastodon.social/tags/testing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>testing</span></a><br>See here:<br><a href="https://github.com/devdanzin/fusil/issues/37" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/devdanzin/fusil/iss</span><span class="invisible">ues/37</span></a></p>
holga<p>Dear <span class="h-card" translate="no"><a href="https://fosstodon.org/@ThePSF" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ThePSF</span></a></span> ...</p><p>having been engaged with <a href="https://chaos.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> through co-creating <a href="https://chaos.social/tags/pytest" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pytest</span></a> <a href="https://chaos.social/tags/pypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pypy</span></a>, giving talks and trainings i appreciate that the PSF has long been a champion of diversity and inclusion! Are you aware that these days many non-USians are canceling their US travels? The German foreign ministry warns about travel to the US if you are pregnant or don't have your passport carrying a birth gender marker, then this: <a href="https://www.kpbs.org/news/border-immigration/2025/02/28/german-tourist-held-indefinitely-in-san-diego-area-immigrant-detention-facility" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">kpbs.org/news/border-immigrati</span><span class="invisible">on/2025/02/28/german-tourist-held-indefinitely-in-san-diego-area-immigrant-detention-facility</span></a> </p><p>Maybe better update the <a href="https://chaos.social/tags/Pycon" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Pycon</span></a> webpage accordingly?</p>
mgorny-nyan (on) :autism:🙀🚂🐧<p>Właśnie dodałem wybór wersji Pythona pypy3_11 do <a href="https://pol.social/tags/Gentoo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gentoo</span></a>!</p><p>Oznacza to, że:</p><p>• Wariant "pypy3" nie będzie już odnosił się do nowszych gałęzi <a href="https://pol.social/tags/PyPy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyPy</span></a>, i zamiast tego do momentu usunięcia będzie oznaczać "PyPy3.10".<br>• Nowe gałęzie PyPy otrzymywać będą własne warianty "pypy3_x".<br>• W trakcie okresów przejściowych, będzie można aktywować dwa warianty jednocześnie, co powinno ułatwić aktualizacje.<br>• Nowe warianty PyPy będą odwoływać się bezpośrednio do binarek "pypy3.x", a nie przez dowiązanie symboliczne "pypy3".<br>• Po wyłączeniu wariantu "pypy3", tym samym będzie można ustawić "pypy3", bo odwoływało się do dowolnej wersji. Najpewniej przestawimy je na użycie python-exec, tak jak teraz działa "python3".</p><p>To powiedziawszy, dopiero zacząłem testować paczki na PyPy3.11, więc potrwa chwilę, zanim będzie można w 100% przełączyć system. Zacząłem też dyskusję na temat momentu usunięcia wariantów <a href="https://pol.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> 3.10:</p><p><a href="https://archives.gentoo.org/gentoo-dev/e6ca9f1f4ababb79ab2a3d005c39b483c3ecef6e.camel@gentoo.org/T/#u" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">archives.gentoo.org/gentoo-dev</span><span class="invisible">/e6ca9f1f4ababb79ab2a3d005c39b483c3ecef6e.camel@gentoo.org/T/#u</span></a></p>
Cal Alaera :HeartNonbinary:<p>Today I learned about PyPy: an optimising compiler for Python.</p><p>Running a script through PyPy instead of Python improved the speed of that script from 140 milliseconds per iteration to the low 80s, with no code changes.</p><p><a href="https://kind.social/tags/PyPy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyPy</span></a> <a href="https://kind.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://kind.social/tags/TodayILearned" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TodayILearned</span></a></p>
danzin<p>I have just republished @vstinner's fuzzing tool fusil:<br><a href="https://github.com/devdanzin/fusil" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/devdanzin/fusil</span><span class="invisible"></span></a></p><p>It's a library for creating fuzzers. I've been using it to find crashers in <a href="https://mastodon.social/tags/CPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CPython</span></a> (23 found so far) and <a href="https://mastodon.social/tags/PyPy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyPy</span></a> (15 found so far).</p><p>The <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/fuzzer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fuzzer</span></a> works by generating random code with function/method calls using random arbitrary (and interesting) values, then recording code execution and matching specific error messages.</p><p>I'm only <a href="https://mastodon.social/tags/fuzzing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fuzzing</span></a> Python, feel free to use it for whatever you want ;)</p><p>cc <span class="h-card" translate="no"><a href="https://mastodon.social/@cfbolz" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>cfbolz</span></a></span></p>