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

Резултати

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

Пребарај: #airisk

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

@ai_and_law · Post #789 · 20.03.2026 г., 08:04

❗️AI Becomes #2 Global Business Risk in Allianz Risk Barometer 2026 According to the 2026 report by Allianz, artificial intelligence has risen to #2 among global business risks, up from #10 in 2025. This is the largest increase recorded in the ranking’s history. AI is now ranked #2 in the Americas, Asia Pacific, and Africa and the Middle East, and #3 in Europe, placing it among the top three risks for companies of all sizes. The report links this rapid rise to both the risks associated with AI systems and their broader societal, political, and economic implications. Since the launch of ChatGPT in 2022, AI deployment and automation have expanded significantly, with further applications in development. AI risk is also closely connected to other major categories, including cybersecurity (the top-ranked risk) as well as political risks, macroeconomic developments, and regulatory changes. #AIrisk#AIGovernance#AIRegulation#Cybersecurity#TechPolicy#RiskManagement

AI & Law

@ai_and_law · Post #734 · 30.12.2025 г., 08:04

🇺🇸OpenAI Seeks New Head of Preparedness to Address Emerging AI Risks OpenAI has opened a search for a Head of Preparedness, a senior executive role tasked with studying and managing emerging risks linked to advanced AI systems. According to CEO Sam Altman, these risks now include models that can meaningfully affect mental health and systems that are becoming capable of identifying critical computer security vulnerabilities. The role is framed around anticipating and mitigating severe harms as frontier AI capabilities evolve. The position will be responsible for executing OpenAI’s preparedness framework, which sets out how the company tracks, evaluates, and prepares for high-impact risks arising from powerful AI models. Altman highlighted challenges such as enabling cybersecurity defenders without empowering attackers, managing the release of sensitive capabilities (including biological ones), and gaining confidence in the safety of systems that may be able to self-improve. The job listing underscores that preparedness is being treated as a core governance function rather than a peripheral safety task. Compensation for the role is listed at USD 555,000 plus equity, signaling the strategic importance OpenAI places on institutional risk oversight as AI capabilities continue to advance. #AIПovernance#AIsafety#AIrisk#TechPolicy#ResponsibleAI