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

Резултати

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

Пребарај: #exoplanet

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

@cosmomyst · Post #20 · 29.07.2025 г., 22:51

🪐 Nearly 400 light-years from Earth, the bizarre exoplanet HD 189733b endures violent weather, with winds reaching up to 8,700 kilometers per hour. Its atmosphere contains silicate particles, causing glass rain that whips sideways at supersonic speeds, giving the planet an eerie, cobalt-blue hue. ✨ #exoplanet⚡#weather⚡#glass 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #30 · 30.07.2025 г., 03:51

🪐 The peculiar exoplanet GJ 1214b, orbiting a red dwarf 48 light-years away in the constellation Ophiuchus, is shrouded in a thick, steamy atmosphere dominated by water vapor. Observations suggest that this "mini-Neptune" may possess a vast, deep ocean beneath its clouds, making it a striking example of a possible water-world beyond our solar system. ✨ #exoplanet⚡#waterworld⚡#atmosphere 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #180 · 24.08.2025 г., 00:11

🪐 Exoplanet WASP-12b, about 1,400 light-years away in the constellation Auriga, is a giant planet so close to its star that its atmosphere is being stripped away, creating a glowing, comet-like tail. This tidal distortion makes WASP-12b egg-shaped rather than round, showing how extreme gravity can reshape giant planets when they orbit near their stars. ✨ #giantplanets⚡#exoplanet⚡#gravity⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #71 · 02.08.2025 г., 20:11

🪐 The exoplanet KELT-9b, orbiting a star about 670 light-years away in Cygnus, is one of the most extreme worlds ever found—its dayside temperatures soar above 4,000°C, hotter than some stars. Metal atoms like iron and titanium are vaporized in its atmosphere, creating a blistering, glowing layer of gas that defies what we imagine for planets outside our solar system. ✨ #exoplanet⚡#extremes⚡#heat⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #87 · 06.08.2025 г., 00:11

🪐 Far from Earth, the exoplanet COROT-7b endures some of the most extreme conditions known: it orbits its star so closely that its surface reaches about 2,000°C, hot enough to melt rock. Scientists believe this heat turns the planet’s rocky crust into a vast, bubbling “lava ocean,” creating a world where rock vaporizes into the atmosphere and rains down as pebbles. ✨ #exoplanet⚡#extremes⚡#lava⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #52 · 31.07.2025 г., 16:11

🪐 Orbiting the red dwarf LHS 3844, the exoplanet LHS 3844b is a rocky world with no detectable atmosphere and a surface thought to resemble volcanic basalt, much like the Moon’s dark maria. The planet's dayside bakes at over 770°C while its nightside plunges into perpetual darkness, creating a world divided between scorching light and endless night. ✨ #exoplanet⚡#extremes⚡#basalt⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #159 · 20.08.2025 г., 00:11

🪐 Scientists have identified the exoplanet Gliese 581d, orbiting a red dwarf star about 20 light-years away, as one of the earliest potentially habitable worlds outside our solar system. Gliese 581d lies within its star's habitable zone, where temperatures might allow liquid water to exist, making it a key target in the search for life beyond Earth. ✨ #exoplanet⚡#habitability⚡#water⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #133 · 14.08.2025 г., 20:11

🪐 Deep in the constellation Scorpius, the star KELT-9 stands out as the hottest known main-sequence star with a planet, blazing at over 10,000°C on its surface. Its intense ultraviolet radiation is so strong that it causes the atmosphere of its planet, KELT-9b, to evaporate away, carving one of the most dramatic examples of a planet literally being stripped by its parent star. ✨ #unusualstars⚡#scorpio⚡#exoplanet⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #65 · 02.08.2025 г., 13:12

🪐 Just 39 light-years away, the exoplanet TRAPPIST-1e circles its cool red dwarf star in the habitable zone, where temperatures might allow liquid water. Scientists have found that TRAPPIST-1e has a rocky surface and, unlike some of its neighbors, could have the right conditions for life as we know it. ✨ #exoplanet⚡#habitability⚡#TRAPPIST1e⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #51 · 31.07.2025 г., 13:11

🪐 The white dwarf WD 1145+017 in the constellation Virgo is surrounded by a cloud of dust and debris from a disintegrating minor planet. As the remains slowly spiral in, transit observations reveal dips in starlight—evidence of a cosmic demolition that offers a real-time look at how planetary systems can be torn apart at the end of a star's life. ✨ #whiteDwarf⚡#exoplanet⚡#debris⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #58 · 01.08.2025 г., 20:11

🪐 Gliese 436b, a Neptune-sized exoplanet in the constellation Leo, is wrapped in a scorching atmosphere where temperatures soar above 800°C. Strangely, its elongated, comet-like tail of evaporating hydrogen trails tens of millions of kilometers behind, evidence of atmospheric escape driven by its star’s relentless heat and radiation. ✨ #exoplanet⚡#evaporation⚡#Leo⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #459 · 26.10.2025 г., 22:21

🪐 The James Webb Space Telescope has detected carbon dioxide on the exoplanet HD 189733b, a giant world 64 light-years away in the constellation Vulpecula. This is the first time carbon dioxide—a common gas on Earth—has been firmly identified in the atmosphere of an exoplanet, using Webb’s powerful infrared instruments to reveal details about the planet’s chemistry and hint at how its formation differs from giant planets in our own solar system. ✨ #webb⚡#exoplanet⚡#atmospheres⚡#discoveries⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​