TGViewer
Находки в опенсорсе Находки в опенсорсе @opensource_findings · 12.6K subscribers
Post #541 2.65K
​​How async should have been.

Your sync and async code can be identical, but still, can work differently. It is a matter of right abstractions. In this article, I will show how one can write sync code to run async programs in #python

Basically, I explain how one can use monads to abstract away technical details of your infrastructure. I also share my vision about the future of this approach and what we need to do to make this even cooler. There's a lot of work to be done!

This article also lists new features of dry-python/returns@0.14 which was released today. Try it out, it is trully awesome. With this realease I can say that we have built a nice foundation for functional programming in Python.

Github: https://github.com/dry-python/returns
Docs: https://returns.readthedocs.io
More from @opensource_findings
  1. Oct 9, 2026Post #990
  2. Sep 28, 2026Еще анонсы докладов на бесплатную конференцию 17 октября в НН Регистрация: https://itgorky…
  3. Sep 25, 2026Монадические выражения в Python. Наконец-то! Продолжаем разговор про интересные PEPы. Пого…
  4. Sep 15, 2026PEPы в Python окончательно вышли из-под контроля Давайте посмотрим, что происходит с ПЕПам…
  5. Sep 10, 2026Большая бесплатная конференция в Нижнем Новгороде 17 октября Регистрация: https://itgorky.…
  6. Sep 1, 2026Post #985
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →