Если запустить REPL с модулем asyncio, то вы входите в особый асинхронный REPL.
user@host:~$ python -m asyncio
asyncio REPL 3.12.7 ...
Use "await" directly instead of "asyncio.run()".
>>> import asyncio
>>>
В этом режиме
- создаётся и настраивается event loop
- уже импортирован asyncio
- работает await на верхнем уровне
То есть такая команда сработает без ошибок!
await asyncio.sleep(3)
Удобно для тестирования асинхронных функций без создания ивентлупов и остальной обвязки.
Работает в: 3.8+
#tricks#async
OptiCore Raises $5M for AI Chips
OptiCore has secured $5M in funding to enhance its photonic chips, promising 100x energy efficiency and computing density for AI applications. This innovation aims to transform high-performance data center computing.
#OptiCore#Funding#AI#Chips#DataCenter#Efficiency#Photonics#Computing#Revolution#Performance
AI Startup Anthropic Expands Features
🚀 Anthropic to launch a two-way voice mode for Claude chatbot and enhance memory features for better user interaction, announced CEO Dario Amodei. Google has invested an additional $1 billion, totaling $3 billion, to support the company's operations.
📈 Expect smarter models in the coming months as Anthropic scales up to meet growing AI demand.
🔗 Read more: Forklog
#AI#Investments#Google#Tech#Startup#Claude#VoiceTechnology#MachineLearning#Innovation#Funding#Chatbots#DarioAmodei#AIModels#Scalability#UserExperience#NeuralNetworks#Computing#AIIndustry#AIExpansion#FutureTech#VC