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

Резултати

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

Пребарај: #aidevelopment

当前筛选 #aidevelopment清除筛选

Raqamli texnologiyalar va sun’iy intellektni rivojlantirish ilmiy tadqiqot instituti bilan hamkorlik masalalari muhokama etildi. 🇺🇿 UZB Обсуждены вопросы развития сотрудничества с Научно-исследовательским институтом развития цифровых технологий и искусственного интеллекта. 🇷🇺 RU Discussions on the development of cooperation with the Digital Technologies and Artificial Intelligence Research Institute have taken place. 🇬🇧 ENG #GraduateSchool#DigitalAI#Collaboration#AIDevelopment Web-site | Telegram | Facebook | Instagram

AI & Law

@ai_and_law · Post #367 · 05.08.2024 г., 07:04

NIST Releases Tool for Testing AI Model Risks The National Institute of Standards and Technology (NIST) has re-released Dioptra, a modular, open-source tool designed to assess and mitigate risks associated with AI models. Originally launched in 2022, Dioptra focuses on evaluating how malicious attacks, especially those that "poison" AI training data, can degrade an AI system's performance. This tool is crucial for companies training AI models and provides a common platform for simulating threats and conducting "red-teaming" exercises. NIST's initiative, supported by President Joe Biden’s executive order on AI, aims to help government agencies, small to medium-sized businesses, and the broader community assess AI developers' claims and enhance AI safety standards. Dioptra's release aligns with global efforts, such as the U.K.'s AI Safety Institute’s Inspect tool, to advance AI model testing and ensure responsible AI development. While Dioptra offers significant benefits, it currently works only with models that can be downloaded and used locally, excluding those gated behind APIs like OpenAI’s GPT-4. Despite this limitation, Dioptra represents a vital step towards understanding and mitigating AI risks, promoting a safer AI ecosystem. #AI#AIDevelopment#AISafety#NIST#Cybersecurity

AI & Law

@ai_and_law · Post #71 · 31.07.2023 г., 07:04

Introducing the Frontier Model Forum: Advancing Safe AI Development Hey AI enthusiasts! Four major players in the AI industry, including Google, Microsoft, OpenAI, and Anthropic, have come together to form the Frontier Model Forum. The primary goal of this industry body is to ensure the safe and responsible development of advanced AI models that go beyond the capabilities of current technologies. Brad Smith, President of Microsoft, emphasized the importance of taking responsibility in developing AI technology, making sure it remains secure, safe, and under human control. The Frontier Model Forum has outlined key objectives, including promoting AI safety research, encouraging responsible AI model deployment, discussing trust and safety concerns with policymakers and academics, and leveraging AI for societal benefits, such as addressing climate change and detecting cancer. #AIandLaw#AIdevelopment#FrontierModelForum#AIRegulation#TechNews

AI & Law

@ai_and_law · Post #159 · 08.11.2023 г., 08:04

G7 Leaders Agree on International Guiding Principles for AI Development Hello, everybody! The G7 leaders have reached a consensus on International Guiding Principles and a voluntary Code of Conduct for AI developers under the Hiroshima AI process. The intention is to harmonize international standards with EU regulations to ensure the responsible and trustworthy development of AI. The eleven principles provide a roadmap for the responsible advancement, deployment, and utilization of advanced AI systems, including foundation models and generative AI. These principles encompass commitments to address risks, prevent misuse, promote responsible information sharing, mandate incident reporting, bolster cybersecurity measures, and introduce a labeling system for AI-generated content. #G7Leaders#AI#AIStandards#EURegulations#AIAct#AIDevelopment

Crypto M - Crypto News

@CryptoM · Post #64578 · 09.04.2026 г., 09:10

🚀 AI TRENDS | OpenAI Plans Phased Rollout of New Model OpenAI is preparing to introduce a new model in a phased manner, according to Axios. The company aims to ensure a smooth deployment by gradually releasing the model, allowing for adjustments based on initial feedback and performance. This approach is intended to optimize the model's integration and effectiveness across various applications. OpenAI's strategy reflects its commitment to maintaining high standards in AI development and deployment. #OpenAI#AI#AITrends#ModelDeployment#TechNews#Innovation#AIdevelopment

Crypto M - Crypto News

@CryptoM · Post #65248 · 12.04.2026 г., 09:35

🚀 Tether CEO Advocates for Open AI Development Tether CEO Paolo Ardoino has expressed his views on the development of artificial intelligence, stating that AI should be as open as freedom. According to Odaily, Ardoino criticized the centralized approach to AI development, describing it as a 'dead end.' In contrast to the closed AI systems being developed by major tech companies, Tether is exploring alternative methods through QVAC, which focuses on running AI models on local devices. This approach aims to give users control over their data and computing power, aligning with the crypto industry's core principle of self-custody, where users maintain autonomy over their data and computational resources. #Tether#CEO#AIdevelopment#openAI#freedom#centralizedAI#selfcustody#crypto#localdevices#dataprivacy

Crypto M - Crypto News

@CryptoM · Post #65110 · 11.04.2026 г., 02:24

🚀 AI TRENDS | OpenAI's Sam Altman Addresses AI Development Concerns and Recent Incident OpenAI founder Sam Altman has expressed understanding of societal fears regarding the rapid development of artificial intelligence. According to Odaily, Altman acknowledged that the current period is marked by significant technological change, with associated risks escalating to systemic challenges at the societal level. He emphasized that AI power should not be concentrated in a few institutions and advocated for broader distribution through technological democratization and institutional constraints. Addressing a recent incident where his residence was targeted with a Molotov cocktail, Altman admitted to underestimating the impact of public narratives and emotions amid AI-related anxieties. He also acknowledged mistakes in company governance and conflict management, offering apologies for past actions. Furthermore, Altman reiterated his decision to reject Elon Musk's attempts to control OpenAI, ensuring the company's independent development. Previously, it was reported that the OpenAI founder's residence was attacked with a Molotov cocktail. #AI#OpenAI#SamAltman#AIdevelopment#technologicalchange#AIsociety#democratization#institutionalconstraints#Molotovcocktail#publicnarratives#conflictmanagement#ElonMusk#companygovernance#independence