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 слични објави

Пребарај: #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