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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #421 · 23 мар.

Мы используем Makefile думая, что нет альтернатив, что это стандарт и всё такое. Но make это не запускалка команд, а система сборки. Мы фактически используем его не по назначению. И на самом деле альтернатива есть! Некоторое время назад я открыл для себя прекрасный инструмент - just. Он решает все проблемы make. just - это не система сборки как make, это именно исполнитель команд! Больше никаких Phony Targets и табуляций, привет нормальный синтаксис и передача аргументов!!! 😎 ⭐️Что умеет just: ✅ Автодокументирование команд Не нужно делать отдельную команду с докой, просто добавь комментарий # команда сборки build: ... $ just --list Available recipes: build # команда сборки Команда с именем default запускается по умолчанию если не указано другое, так что я обычно делаю так: default: just --list Теперь просто выполняем just и получаем доку из текущего файла. ✅ Удобная работа с переменными окружения # загрузить из .env set dotenv-load # глобальная переменная export PYTHONPATH := "./src" # переменная для команды test $TESTUNG="true": pytest ✅ Передача аргументов build target: @echo 'Build {{target}}...' команда запуска $ just build dev # Build dev... ✅ Выбор интерпретатора прямо в команде Пример с инлайн-скриптом на python: system: #!/usr/bin/env python3 import platform print(platform.system()) Эта же функция позволит выполнить скрипт как одну команду вместо перезапуска шела для каждой строки foo: #!/usr/bin/env sh for file in ls .; do echo $file done ✅ Выполнение команды в определенной директории. Можно указать как релятивный путь так и абсолютный [working-directory: 'backend'] build: docker compose build Также можно задать рабочую директорию глобально Там еще много интересного: - поддержка функций - автокомплиты и интеграции - экспрешены - алиасы команд - группировка команд - альтернативы команды под разные ОС - импорт других just-файлов - цветной вывод - ... и другие штуковины! Так что вперёд - ➡️ читать доку! Репозиторий: ➡️https://github.com/casey/just Статья: ➡️https://www.chicks.net/reference/file_formats/just/ ЗЫ. Кажется, на Makefile я уже не вернусь) #tools

Hashtags

Резултати

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

Пребарај: #aiimpact

当前筛选 #aiimpact清除筛选
AI & Law

@ai_and_law · Post #405 · 26.09.2024 г., 07:04

The Environmental Impact of AI: What Does It Take to Write an Email with ChatGPT? As AI becomes more integrated into our daily lives, understanding its environmental impact is crucial. According to estimates reported by The Washington Post, generating an email using AI tools like ChatGPT requires about as much water as a single-use plastic bottle holds, and the energy consumption is equivalent to running 14 LED light bulbs for an hour. These figures shed light on the significant resources needed to operate data centers that power AI systems. As AI continues to evolve, addressing its environmental footprint will be essential for sustainable innovation. *#AIImpact#Sustainability#DataCenters#AIEthics

Crypto M - Crypto News

@CryptoM · Post #65438 · 13.04.2026 г., 08:02

🚀 Carson Block Warns of Potential U.S. Stock Market Turbulence Carson Block, founder of Muddy Waters and a globally recognized short seller, has issued a stark warning about the U.S. stock market. According to Jin10, Block suggests that the market could experience volatility surpassing that of the 2008 financial crisis. He attributes this potential upheaval to the disruptive impact of AI technologies on the market. Block advises short sellers to prepare for opportunities, indicating that betting against the U.S. stock market might be favorable in the current environment. #CarsonBlock#USStockMarket#StockMarketTurbulence#AIImpact#ShortSelling#FinancialCrisis#Volatility#MarketWarning#MuddyWaters#ShortSellers#MarketOpportunities

Crypto M - Crypto News

@CryptoM · Post #64792 · 10.04.2026 г., 00:06

🚀 Global Economic Concerns Amid Middle East Tensions According to Jin10, a report by China International Capital Corporation (CICC) highlights that since March, concerns over conflicts involving the U.S., Israel, and Iran, along with potential blockages in the Strait of Hormuz, have triggered a market-wide risk aversion. This has led to declines in most asset classes, excluding oil and agricultural products, raising fears of stagflation. CICC acknowledges the undeniable impact of supply shocks, which could potentially slow overall economic growth. However, if the Strait of Hormuz gradually reopens, the geopolitical risks might exacerbate the K-shaped economic divergence, leading to increased investment activity while cooling consumption and employment. In the context of accelerated AI substitution and an inherently cooling labor market, inflation in resource and capital goods is unlikely to create a 'wage-inflation' spiral. From this perspective, CICC suggests that the mainstream narrative of global stagflation might be overstated. The report reiterates the view held since the beginning of the year that, amid an intensified K-shaped economy, liquidity recovery from its trough, and sustained fiscal expansion, the global nominal economic cycle driven by investment is expected to resume its upward trend. This will likely lead to continued rebalancing of global funds across sectors, asset classes, and regions, benefiting a range of physical assets and emerging markets. #GlobalEconomy#MiddleEastTensions#GeopoliticalRisk#Stagflation#SupplyShock#EconomicGrowth#KShapedRecovery#Investment#AIImpact#LaborMarket#Inflation#LiquidityRecovery#FiscalExpansion#EmergingMarkets#AssetAllocation