Thanks for putting this presentation together. I really enjoyed it. The gradual build up to asyncio, the code examples (with refactor/adding complexity), the use of colour for different emphasis, and the introduction of different concepts all worked well together.
It seems like every python talk is full of comments saying, "this is the greatest talk ever!" But this one really is one of the clearest demonstrations of concurrency and asyncio I've seen on RUclips.
really good explanation. finally i understand the underlying mechanisms and boy... asyncio reinventing the wheel again. A CPU kernel running the OS running the tasks running python running the script running an asyncio loop that schedules your single threaded "task". Shout out to asyncio devs who introduced the N+1 way of running coop code and thus forcing lib developers to create a subprocess, threading, or asyncio based libraries. Now if there is one lib using asyncio all needs to use it. The moment you import one library that is based on asyncio your work will be 99% figuring out how the rest of the libraries can be fit in this concept. Have fun developing a project on those libs based on the various methods.
I guess In 38:35 in this example, the search function should look like: async def search(iterable, predicate): for item in iterable: if await predicate(item): return item raise ValueError('Item not found')
Yes, if the predicate is itself awaitable that would work. If the predicate is just a regular callable you can use the form of search you see at ruclips.net/video/M-UcUs7IMIM/видео.htmlm25s
Great lecture, I don't understand the point about ensure_future() being more idempotent than create_task(). Both will only add one task to the scheduler when the same coro_obj is passed repeatedly to either of these two methods
Hi Robert, what are your thoughts on David Beazley's approach of avoiding asyncio altogether? I've seen his talks here on RUclips and they were quite eye opening. I've looked at the code of his curio project and it's brilliant! What's your take on it?
One of the clearest intros to asyncio I've seen, and I've seen a lot of 'em.
Thanks for putting this presentation together. I really enjoyed it. The gradual build up to asyncio, the code examples (with refactor/adding complexity), the use of colour for different emphasis, and the introduction of different concepts all worked well together.
Finally something that left me less confused at the end than when I started watching. Thanks for the great introduction!
It seems like every python talk is full of comments saying, "this is the greatest talk ever!" But this one really is one of the clearest demonstrations of concurrency and asyncio I've seen on RUclips.
so far, one if the best, if not the best, talk about asyncio
Excellent presentation!
Wow! One of the best videos on asyncio that I have come across! Thank you for all the amazing examples and explanations😀
One of the best talks i have came across on youtube.
Thank you so much.
the very only asyncio video one ever need
That was an excellent talk, well presented.
yep!
Awesome talk!
Gives a great understanding of asyncio, this video is a must for everyone who is interested in using asyncio.
really good explanation. finally i understand the underlying mechanisms and boy... asyncio reinventing the wheel again.
A CPU kernel running the OS running the tasks running python running the script running an asyncio loop that schedules your single threaded "task".
Shout out to asyncio devs who introduced the N+1 way of running coop code and thus forcing lib developers to create a subprocess, threading, or asyncio based libraries.
Now if there is one lib using asyncio all needs to use it. The moment you import one library that is based on asyncio your work will be 99% figuring out how the rest of the libraries can be fit in this concept.
Have fun developing a project on those libs based on the various methods.
Awesome presentation !!! For now I can understand how Asunción works under the hood.
Thank you Robert. Great presentation! I'll going to check your other talks
This was a very interesting presentation. My overall impression having followed it is that concurrent programming in Python is needlessly complicated.
Awesome job. Very well explained and presented.
build the case from the ground. easily understood the foundation of running the coroutine and asyncio.
Great presentation!
I guess In 38:35 in this example, the search function should look like:
async def search(iterable, predicate):
for item in iterable:
if await predicate(item):
return item
raise ValueError('Item not found')
Yes, if the predicate is itself awaitable that would work. If the predicate is just a regular callable you can use the form of search you see at ruclips.net/video/M-UcUs7IMIM/видео.htmlm25s
It's a very wonderful speech~Thanks a lot :)
Awesome talk! Really well done
Great lecture, I don't understand the point about ensure_future() being more idempotent than create_task(). Both will only add one task to the scheduler when the same coro_obj is passed repeatedly to either of these two methods
Very well presented
Hi Robert, what are your thoughts on David Beazley's approach of avoiding asyncio altogether? I've seen his talks here on RUclips and they were quite eye opening. I've looked at the code of his curio project and it's brilliant! What's your take on it?
Great presentation. Python documentation at this subject still sucks :/
Is it possible to download examples?
Where can I download the slides of this talk?
For future watchers: I replicated the asyncio chatroom example in this github repo github.com/claytonblythe/asynchat-cli
Hi there! Anyone know where to download his example codes? That would be really nice! Thanks for the info...
would love that too!
Where can I find slides/code examples for this talk ?
Thank you!
Lol at a not too subtle (but well deserved, IMHO) swipe at python design @41:29
"coroutine object"? I'm calling it a coroutinerator