PythonHub
2.53K subscribers
2.35K photos
50.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Fast Mesh Booleans in Python

Learn how to perform fast mesh boolean operations in Python. Union, intersection, and difference at interactive speed on million-polygon meshes. One pip install, NumPy arrays in and out.

https://polydera.com/tutorials/fast-mesh-booleans-in-python
Boosting multimodal inference performance by >10% with a single Python dictionary

Multimodal models are promising, but inference engines haven't been optimized for them yet. We profiled SGLang’s scheduler on a multimodal workload and identified an opportunity to replace expensive book-keeping around shared GPU memory with a simple cache lookup. Throughput and latency both improved over 10% on our target workload.

https://modal.com/blog/boosting-multimodal-inference-performance-by-greater-than-10-with-a-single-python-dictionary
Mastering Python Logging Format: A Complete Guide for Developers

Set up Python logging format strings, custom formatters, and structured JSON output with copy-paste code examples for every major use case.

https://middleware.io/blog/python-logging-format/
I've been teaching intro Python for 3 years i notice the same weaknesses in almost every student. Am i missing something in how I'm explaining it?

https://www.reddit.com/r/learnpython/comments/1tbtrtv/ive_been_teaching_intro_python_for_3_years_i/
How we accelerated transpilation by compiling SQLGlot with mypyc

Fivetran accelerated SQLGlot, a pure Python SQL parser/transpiler, by 5x through compiling 100+ modules into C extensions with mypyc, without rewriting it in Rust. Key optimizations included sentinel tokens, native i64 integers, dispatch tables, and upstream mypyc primitives for string operations, resulting in 3.9 to 5x speedups across the tokenizer, parser, and generator.

https://www.fivetran.com/blog/how-we-accelerated-transpilation-by-compiling-sqlglot-with-mypyc
ProgramBench

Can Language Models Rebuild Programs From Scratch? Given only a compiled binary and its documentation, AI agents must architect and implement a complete codebase that reproduces the original program's behavior.

https://programbench.com/
Create a 90s GeoCities style website in seconds (Python)

https://pypi.org/project/create-geocities-app/