TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #396 · 9 окт.

7.09.2025 состоялся релизPithon 3.14! На фоне хайпа про NoGIL всё позабыли про другие фичи. Особенно про Multiple Interpreters, который обещает изоляцию процессов но с эффективностью потоков! На сколько действительно это будет эффективно мы узнаем позже, потому что сейчас это лишь первый релиз с ограничениями и недоработками. Но что там про NoGIL? Теперь этот режим не экспериментальный, а официально поддерживаемый, но опциональный. Чтобы запустить без GIL нужна специальная сборка. И перед стартом нужно объявить переменную PYTHON_GIL=0 Для вас я собрал готовый репозиторий где достаточно запустить скрпит, который всё сделает: ▫️ соберет релизный Python 3.14 в новый Docker-образ ▫️ запустит тесты в контейнере (GIL, NoGIL, MultiInterpreter) ▫️ распечатает результаты Тест очень простой, усложняйте сами) Вот какие результаты у меня: === Running ThreadPoolExecutor GIL ON TOTAL TIME: 45.48 seconds === Running ThreadPoolExecutor GIL OFF TOTAL TIME: 6.14 seconds === Running basic Thread GIL ON TOTAL TIME: 45.54 seconds === Running basic Thread GIL OFF TOTAL TIME: 4.74 seconds === Running with Multi Interpreter TOTAL TIME: 18.30 seconds Если сравнивать GIL и NoGIL, то на мои 32 ядра прирост х7-x10 (почему не х32? 🤷). При этом нам обещают что скорости будут расти с новыми релизами. Режим без GIL похож (визуально) на async, тоже параллельно, тоже не по порядку. Но это не IO! и от того некоторый диссонанс в голове 😵‍💫, нас учили не так! Интересно, что чистый Thread работает быстрей чем ThreadPoolExecutor без GIL. Ну и где-то плачет один адепт мульти-интерпретаторов😭 Теперь нужно искать где они могут пригодиться с такой-то скоростью. Скорее всего своя область применения найдется. Отдельно я затестил память и вот что вышло на 32 потока: ThreadPoolExecutor GIL ON 305.228 MB ThreadPoolExecutor GIL OFF 500.176 MB basic Thread GIL ON 90.668 MB basic Thread GIL OFF 472.444 MB with Multi Interpreter 1267.788 MB Пока не знаю как к этому относиться) В целом - радует направление развития! #release

Hashtags

Резултати

Пронајдени 7 слични објави

Пребарај: #habitablezone

当前筛选 #habitablezone清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #155 · 19.08.2025 г., 03:11

🪐 Just 12 light-years away, the red dwarf star Teegarden’s Star hosts two Earth-sized exoplanets, Teegarden’s Star b and c, both located in the star’s habitable zone. This zone is the area around a star where temperatures could allow liquid water to exist—a key ingredient for life as we know it—making these planets some of the most intriguing nearby candidates in the search for life beyond our solar system. ✨ #exoplanets⚡#habitablezone⚡#astrobiology⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #596 · 02.01.2026 г., 12:21

🪐 The exoplanet K2-18b, located about 120 light-years away in the constellation Leo, has been found to possess water vapor in its atmosphere—making it one of the few known exoplanets within its star’s habitable zone where conditions might allow liquid water. K2-18b is a "mini-Neptune," meaning it’s larger than Earth but smaller than Neptune, and its potential for moderate temperatures and watery clouds raises the possibility that life-friendly environments could exist beyond our solar system. ✨ #exoplanets⚡#life⚡#habitablezone⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #257 · 11.09.2025 г., 16:11

🪐 Deep in the constellation Aquarius, astronomers have discovered exoplanet K2-72e orbiting a cool red dwarf star roughly 227 light-years from Earth. K2-72e is a rocky world located within its star’s habitable zone—the region where temperatures might allow liquid water on the surface—making it another intriguing candidate in the search for planets that could support life beyond our solar system. ✨ #exoplanets⚡#habitablezone⚡#discovery⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #185 · 25.08.2025 г., 00:11

🪐 Astronomers have identified Proxima Centauri b, an Earth-sized exoplanet orbiting the closest star to our Sun, as one of the nearest spots where life could possibly exist. Sitting in its star's "habitable zone"—the region where temperatures might allow liquid water—this world offers a natural laboratory to explore the potential for life beyond our solar system. ✨ #exoplanets⚡#habitablezone⚡#discovery⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #708 · 11.03.2026 г., 22:21

🪐 The exoplanet TOI-700 d, orbiting a small, cool star about 101 light-years away in the constellation Dorado, lies within its star’s “habitable zone,” where temperatures might allow water to exist as a liquid on the surface. This rocky world is similar in size to Earth and is one of the few confirmed planets outside our solar system where scientists believe the conditions could be just right for life as we know it to survive. ✨ #exoplanets⚡#habitablezone⚡#dorado⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #330 · 25.09.2025 г., 22:21

🪐 Over 42 light-years from Earth, the exoplanet Tau Ceti e orbits within the habitable zone of its Sun-like star—meaning it receives just the right amount of energy that could allow liquid water to exist on its surface. While Tau Ceti e is about 60% larger than Earth and its true environment remains a mystery, its location around one of our closest stellar neighbors makes it a real and intriguing candidate in the search for life beyond our solar system. ✨ #exoplanets⚡#habitablezone⚡#lifebeyondearth⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #189 · 25.08.2025 г., 20:11

🪐 Astronomers have identified the exoplanet Wolf 1069 b, located about 31 light-years away in the constellation Cygnus, as a promising place where life could exist. This rocky planet orbits in its star's habitable zone—the region where temperatures may allow liquid water to pool on the surface—making it one of the most intriguing nearby candidates in the search for life beyond our solar system. ✨ #exoplanets⚡#habitablezone⚡#wolf1069b⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​