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

Резултати

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

Пребарај: #transparencyinai

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

@ai_and_law · Post #417 · 11.10.2024 г., 07:04

AI Copyright Lawsuit: A New Era of Dataset Transparency? In a groundbreaking move for AI copyright disputes, a judge has permitted authors' representatives to inspect OpenAI's confidential training dataset under strict conditions. This decision could set a precedent for how training data is scrutinized in future legal battles over AI-generated content. The inspection is to be conducted in a highly controlled environment—either at OpenAI’s San Francisco office or a secure location within a 25-mile radius. A secured, internet-free computer will be provided, containing a README file with a directory of the data. The inspection room bans recording devices, although a note-taking computer can be provided under supervision, ensuring that sensitive data remains protected. Only individuals qualified under the protective order can access the data, emphasizing the heightened confidentiality. This level of transparency and rigor in examining training data might become a standard in AI litigation. As AI technology continues to reshape industries, balancing innovation with intellectual property rights will require similar measures to ensure fairness and accountability. #AICopyright#TransparencyInAI#AIRegulation

AI & Law

@ai_and_law · Post #197 · 22.12.2023 г., 08:04

CAI Unveils Public "Zero Draft" for AI Framework Convention Greetings AI & Law community! The European Committee on Artificial Intelligence (CAI) has announced the public release of the revised "Zero Draft" Framework Convention on Artificial Intelligence, Human Rights, Democracy, and the Rule of Law. Key Points: 1️⃣ The "Zero Draft" serves as the foundational document for drafting the Framework Convention and is not the final outcome of CAI negotiations. 2️⃣ A Consolidated Working Draft has been prepared based on the first reading of the revised Zero Draft, containing preliminary agreements and proposals for further negotiations. 3️⃣ The text which is not in brackets and in red font is considered to be preliminarily agreed. 4️⃣ The CAI Bureau has decided to make this document public, providing transparency into the ongoing process. The recently released Draft Framework Convention, based on outcomes from the second reading, will be the focal point for the upcoming 9th Plenary meeting. Notably, provisions under negotiation include the Scope, Risk and impact management framework, and the Conference of the Parties. #AIlaw#CAI#AIregulation#FrameworkConvention#TransparencyInAI