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

Резултати

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

Пребарај: #cocaoboom

当前筛选 #cocaoboom清除筛选

☕🍫 ETHIOPIA'S GOLDEN OPPORTUNITY The Coffee Paradox and the Cocoa Revolution That Never Happened 🌍COFFEE WORTH ITS WEIGHT IN GOLD Ethiopian coffee is not just a beverage. It's liquid history. Hand-picked at dawn, processed by generations of knowledge, grown in the birthplace of coffee itself — the highlands where the first beans were discovered over 1,000 years ago. This coffee should cost like gold. Because it IS gold. Specialty Ethiopian coffee: \$40-100 per kilogram. Single-origin Yirgacheffe, Sidamo, Harrar — these names are revered in specialty coffee circles worldwide. Roasters in Tokyo, London, New York pay premium prices for these beans. ይህ ቡና ወርቅ ነው። በእጅ የተሰበሰበ፣ በትውፊት የተቀነባበረ፣ በወርቅ ዋጋ መሸጥ አለበት። (This coffee is gold. Hand-picked, traditionally processed, it should sell at gold's price.) But here's the brutal truth: In the mass market — supermarkets, chain cafés, everyday consumption — Ethiopia struggles to compete with Brazil, Colombia, Vietnam. Not because our coffee is inferior. But because Western producers mastered marketing decades ago. They built brands. Created stories. Dominated distribution. Эфиопский кофе проигрывает не по качеству, а по маркетингу. (Ethiopian coffee doesn't lose on quality, but on marketing.) --- 🍫THE COCOA BOOM THAT PASSED US BY While Ethiopia focused on coffee, something extraordinary happened in West Africa. The global cocoa market exploded. 2024 cocoa prices: \$10,000+ per ton — a historic record. Demand is surging. Chocolate consumption in Asia, artisan chocolate movement in the West, premium dark chocolate market — the world cannot get enough cocoa. Who's winning? Côte d'Ivoire, Ghana, Cameroon. They produce 70% of the world's cocoa. African nations dominate the market. Production is expanding. Farmers are profiting. Economies are growing. የአፍሪካ አገሮች የአለምን ካካኦ 70% ያመርታሉ። ዋጋው እየጨመረ ነው። ግን ኢትዮጵያ የት ነች? (African countries produce 70% of world's cocoa. Prices are rising. But where is Ethiopia?) Ethiopia's cocoa production? Virtually zero. Давайте повторим: практически ноль. (Let's repeat: practically zero.) --- 🌱THE MADNESS OF MISSED OPPORTUNITY Here's what makes this absurd: Ethiopia has PERFECT conditions for cocoa cultivation. Southwestern Ethiopia — regions like Bench Maji, Kaffa (yes, the birthplace of coffee!), and Gambella — share the exact same climate as Ghana and Côte d'Ivoire: - Tropical highland climate - Rich volcanic soil - Consistent rainfall - Temperature range 18-32°C We have everything: - ✅ The land - ✅ The farmers with agricultural expertise - ✅ The climate - ✅ The infrastructure potential ኢትዮጵያ ለካካኦ ምርት ፍፁም ሁኔታ አላት። አፈር፣ የአየር ሁኔታ፣ ገበሬዎች። ሁሉም ነገር ዝግጁ ነው። (Ethiopia has perfect conditions for cocoa production. Soil, climate, farmers. Everything is ready.) What we DON'T have: Production scale. Market presence. Investment in cocoa farming. --- 💎THE DUAL STRATEGY: LUXURY + OPPORTUNITY The solution isn't abandoning coffee. It's strategic diversification. COFFEE: Position Ethiopia as the ultra-premium, luxury origin. Not mass market — leave that to Brazil. Ethiopian coffee should be what Champagne is to wine. What Kobe beef is to meat. Exclusive. Prestigious. Worth the price. COCOA: Seize the African cocoa boom. West Africa showed the way — now it's Ethiopia's turn. Start cocoa cultivation in suitable regions. Partner with international chocolate makers. Create Ethiopian chocolate brands. Эфиопия может быть и родиной кофе, и новым лидером по какао. Две золотые культуры. (Ethiopia can be both the birthplace of coffee and a new cocoa leader. Two golden crops.) --- Ethiopia: birthplace of coffee, future of African cocoa. ወርቅ እና ቸኮሌት። (Gold and chocolate.) #EthiopianCoffee#CocaoOpportunity#AfricanAgriculture#Ethiopia#CoffeeCulture#CocaoBoom#Agribusiness🌍☕🍫