很多 Python 加速的方法

Gea-Suan Lin's BLOG

With CPython now actively merging "AI" slop in the form of co-authored commits from Anthropic Claude… I'm leery about starting new projects atop the reference #Python implementation.

My projects remain slop-free at this point in time, and it is my intention that they stay that way. I can't afford the legal risk that comes with them: a machine cannot represent itself in court, therefore a machine cannot be held accountable for infractions of copyright law. This means the buck stops with the humans.

Cursory glance at Pypy, it is compatible with Python 3.11 and, on the surface, does not show any co-authored commits. I've used it in the past and found it to be mostly compatible.

Is it good enough for a fork? Did I miss something?

https://github.com/pypy/pypy

#Pypy #Pypy3 #NoAI

GitHub - pypy/pypy: PyPy is a very fast and compliant implementation of the Python language.

PyPy is a very fast and compliant implementation of the Python language. - pypy/pypy

GitHub

Python Standard Library для спортивного программирования

Стандартная библиотека Python содержит множество инструментов, которые значительно упрощают решение задач спортивного программирования, но многие из них остаются незамеченными начинающими участниками. В статье собран краткий конспект по наиболее полезным модулям и функциям стандартной библиотеки с небольшими примерами.

https://habr.com/ru/articles/1010290/

#спортивное_программирование #питон #python #pypy #standard_library #стандартная_библиотека #стандартная_библиотека_python #icpc #codeforces #topcoder

Python Standard Library для спортивного программирования

Документация по Python Standard Library sys Документация по модулю sys Ввод через input() относительно медленный. Причина - операции обработки, преобразования и проверка окончания строки. В задачах с...

Хабр

Even a decade back, when #PyPy was showing promising performance benefits of 4x speedup or even more, it was of little benefit to an increasingly compiled scientific stack. PyPy was only useful in a Pure Python environment, so I am not surprised with its removal from #NumPy

https://github.com/numpy/numpy/issues/30416

However I am genuinely surprised to hear that PyPy as a project is "no longer under active development, and has not released a Python3.12 version." I think the emphasis is on the latter, that it takes time for PyPy to catch up to Python 3.12 and due to NEP29 they should only support Python 3.12+.

https://numpy.org/neps/nep-0029-deprecation_policy.html

I haven't seen an official announcement of PyPy being discontinued and would refuse to believe that until I see one.

🚨 Oh no, #PyPy might be unmaintained! Quick, someone alert the world before it collapses into chaos! 😂 Meanwhile, #GitHub wants you to think #AI will save us all, but just needs your firstborn in exchange for a few lines of "better" code. 🤖
https://github.com/astral-sh/uv/pull/17643 #Unmaintained #Chaos #TechNews #HackerNews #ngated
Warn about PyPy being unmaintained by konstin · Pull Request #17643 · astral-sh/uv

It seems that PyPy is not being actively developed anymore and is phased out even by numpy (numpy/numpy#30416). There's no official statement from the project, but the numpy issue is from a PyP...

GitHub

https://github.com/numpy/numpy/issues/30416#issue-3718116466

This is the saddest news I’ve heard recently: #PyPy is no longer under active development.

It is so bad to know that [they originally did not intend to go beyond 3.10](https://github.com/orgs/pypy/discussions/5145#discussioncomment-13121917).

#Python

MAINT: drop support for PyPy · Issue #30416 · numpy/numpy

PyPy is no longer under active development, and has not released a Python3.12 version. Other than the submodule pythoncapi_compat.h, we maintain code that checks IS_PYPY implementation-specific det...

GitHub
PyClean v3.5.0 released last week! Adds Complexipy debris removal. Try it with #conda or #uv now! `uvx pyclean`. https://pypi.org/project/pyclean/ #python #bytecode #debris #cleanup #development #python3 #cpython #pypy #Linux #macOS #Windows #complexipy
pyclean

Pure Python cross-platform pyclean. Clean up your Python bytecode.

PyPI
In the #Python programming language, the new #REPL from Python 3.13 (2024) has added colorization in the #interpreter in #interactive Python, similar to the interface seen in later versions of #PyPy. Python 3.14 (2025) and Python 3.15 (2026) continue along with the improved REPL with the colorization of the Python #syntax itself.

just used #PyPy to accelerate an Amaranth simulation from 35s to 17s (no code changes)

it's pretty good

#Sphinx joined the list of packages dropping #Python 3.11 (and therefore #PyPy) support. Of course, we could just go through the effort of dropping it from respective packages in #Gentoo, given it's not technically that common… but honestly, at this point I have zero motivation to put the extra effort for this, just to learn that next month some core package starts requiring Python 3.12.

So, would anyone really mind if I removed Python 3.11 and PyPy support completely from Gentoo packages?