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

Резултати

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

Пребарај: #fifthamendment

当前筛选 #fifthamendment清除筛选
Crypto M - Crypto News

@CryptoM · Post #64863 · 10.04.2026 г., 05:15

🚀 Elon Musk's xAI Challenges Colorado's AI Regulations in Court Elon Musk's artificial intelligence company, xAI, has initiated legal proceedings against the state of Colorado, aiming to prevent the enforcement of new AI regulations that limit speech from AI chatbots like Grok. According to Cointelegraph, the lawsuit targets Colorado's Senate Bill 24-205, which is designed to safeguard AI users from 'algorithmic discrimination' in sectors such as employment, housing, and finance. In a recent filing to a U.S. district court in Colorado, xAI contended that the state cannot modify the company's message merely to promote its own perspectives on contentious issues like fairness and equity. The company further argued that the legislation, scheduled to be implemented on June 30, is paradoxical as it advocates 'differential treatment' to enhance diversity or address historical discrimination. xAI emphasized that altering Grok would disrupt its objective of being 'maximally truth seeking.' This is not the first instance of xAI challenging state-level AI regulations. In December, the company filed a lawsuit against California concerning its Generative AI Training Data Transparency Act, asserting that the act's disclosure requirements infringe upon the First and Fifth Amendments by compelling speech and exposing trade secrets. Both the Colorado and California laws emerged following allegations that Grok had previously made racist, sexist, and antisemitic remarks. David Sacks, appointed as co-chair of the President's Council of Advisors on Science and Technology, has advocated for federal oversight of AI regulations, arguing against a fragmented approach by individual states. Sacks highlighted the complexity faced by innovators due to the diverse regulatory frameworks across 50 states, emphasizing the need for a unified federal standard. His appointment aims to address these regulatory challenges and streamline AI governance at the national level. #ElonMusk#xAI#AIregulations#Colorado#lawsuit#Grok#ArtificialIntelligence#algorithmicdiscrimination#GenerativeAI#California#FirstAmendment#FifthAmendment#AIgovernance#federaloversight#technologypolicy