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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #424 · 13 апр.

Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами. Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как: - trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки. - curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками. - anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов. anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного. В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах) Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно. #libs#async

Hashtags

Резултати

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

Пребарај: #federaloversight

当前筛选 #federaloversight清除筛选
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