asyncio: what's next | Yury Selivanov @ PyBay2018

preview_player
Показать описание


Abstract

There are some new advanced features in asyncio 3.7 that are worth mentioning: new buffered protocol, start TLS, sendfile, and many other enhancements. The new buffered protocol is especially interesting as it allows to implement protocols with better performance than if was possible before, with less code.

With PEP 567 we now have a new Context API in Python and asyncio. It allows to implement advanced tracing (zipkin, statsd, etc) and error reporting in your application, monitoring everything from costs of high-level application logic code to the very low-level IO performance.

In Python 3.8 we want to focus on asyncio usability and the robustness of async/await. Particularly, the cancellation logic and timeouts mechanisms need to be redesigned from scratch. Hopefully, closer to August, I'll have a better idea of what we'll be adding to asyncio to make cancellation and timeouts easier to implement and handle correctly.

Speaker Bio

This and other PyBay2018 videos are brought to you by our Gold Sponsor Cisco!
Рекомендации по теме
Комментарии
Автор

Learning how to use asyncio well, is like learning all new programming language. Good talk btw.

mwont
Автор

We poor Python developers. We want to re-implement Erlang features inside Python.

TheRodmena
Автор

17:57 Yury confirms that Trio is better in several concepts

williantuness
Автор

What is the non-transport/non-protocol way to create a UDP server in 3.7?

carcass
Автор

sounds that the actor model would be a good fit for a lot of the problems mentioned here.

willguxy
Автор

If you see Trio and compare with asyncio, man... You're gonna loose your hair.

williantuness