Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103445

Re: [Python-ideas] How the heck does async/await work in Python 3.5

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Tem Pl <rtempl31@gmail.com>
Newsgroups comp.lang.python
Subject Re: [Python-ideas] How the heck does async/await work in Python 3.5
Date Wed, 24 Feb 2016 06:39:29 -0800 (PST)
Lines 82
Message-ID <mailman.95.1456326057.20994.python-list@python.org> (permalink)
References <mailman.224.1455746935.22075.python-list@python.org> <56c7d145$0$1597$c3e8da3$5496439d@news.astraweb.com> <na92c0$n65$1@dont-email.me> <56CCC98C.5060504@mail.de> <CAH0mxTQE9xn3OZJ8s-oj13LtQOYGGW2Y1uC9xM3YpzAtY8pqJQ@mail.gmail.com> <CAMpsgwbO1v7318u9VZCTrPHOERAAQiEAHJ9ChWCVqYP-7aqskw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de oDwNwDr/MX6fpPkyuvjkRw0mi7Py4agR0Ifr09JQth+A==
Return-Path <rtempl31@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.03; 'subject:Python': 0.05; 'doug': 0.05; 'tries': 0.05; 'hellmann': 0.07; 'url:msdn': 0.07; 'wednesday,': 0.07; 'cc:addr:python-list': 0.09; 'subject:How': 0.09; 'url:psf': 0.09; 'brett': 0.09; 'docs.': 0.09; 'python:': 0.09; 'url:github': 0.09; 'thread': 0.10; 'python': 0.10; 'language,': 0.11; 'syntax': 0.13; 'discussions': 0.15; 'languages.': 0.15; '"python': 0.16; '2016': 0.16; '24,': 0.16; 'bueno': 0.16; 'concurrency': 0.16; 'index.html': 0.16; 'insights': 0.16; 'programmers.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:ideas': 0.16; 'wrote:': 0.16; 'basically': 0.18; '&gt;': 0.18; 'subject:] ': 0.19; 'developer': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**2': 0.20; 'suggested': 0.20; 'meant': 0.22; 'url:02': 0.22; 'appears': 0.23; 'fit': 0.23; 'finished': 0.23; 'cc:addr:gmail.com': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'helpful': 0.27; 'collecting': 0.27; 'skip:2 30': 0.29; 'thread,': 0.29; 'to:name :python-ideas': 0.29; 'subject:/': 0.30; 'url:mailman': 0.30; 'code': 0.30; 'putting': 0.30; 'somebody': 0.30; 'post': 0.31; 'another': 0.32; 'table': 0.32; 'older': 0.32; 'point': 0.33; 'url:python': 0.33; 'reference,': 0.33; 'skip:h 40': 0.33; 'open': 0.33; 'similar': 0.33; 'url:listinfo': 0.34; 'list': 0.34; 'skip:& 20': 0.35; 'received:google.com': 0.35; 'best,': 0.35; 'could': 0.35; 'direction': 0.35; 'url:%3a': 0.35; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'skip:_ 40': 0.36; 'email addr:python.org': 0.36; 'modules': 0.36; 'subject:work': 0.36; 'skip:& 10': 0.37; 'skip:s 50': 0.37; 'wanted': 0.37; 'version': 0.38; 'received:209': 0.38; 'christian': 0.38; 'wrong': 0.38; 'mailing': 0.38; 'subject:the': 0.39; 'subject:-': 0.39; 'url:mail': 0.40; 'well.': 0.40; 'some': 0.40; 'url:3': 0.60; 'valuable': 0.61; 'hope': 0.61; 'header :Message-Id:1': 0.61; 'back': 0.62; '2015.': 0.63; 'air': 0.65; 'today': 0.65; 'here': 0.66; 'results': 0.66; 'url:index': 0.67; 'to:addr:python-ideas': 0.69; 'subject': 0.70; 'finally': 0.70; 'covers': 0.72; 'useful.': 0.72; 'overall': 0.72; 'article': 0.77; 'articles:': 0.84; 'concept,': 0.84; 'gollwitzer': 0.84; 'macbook': 0.84; 'message-id:@googlegroups.com': 0.84; 'url:2016': 0.84; 'victor': 0.84; 'video:': 0.84; 'glad': 0.87; 'cc:no real name:2**2': 0.91; 'essence': 0.91; 'url:url': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type; bh=zWwrMb/AJcc5Z52yxqRV68MRRAC7b1nXNzSav/Hr7cM=; b=rKK7PPSgvLvD9hbYm/ueeisJQCSFK9Hx6DnNfgTa9c/i1QA3LjsX7bHwKG1i1oTVyi iD1AZMQE0ySWiV5C4OAWj06kQz1uTakKbbFbPoE3OpU34ojE9M+l99O+HDfKTUTzY/b4 hjum8WZs4pkGZrfO6MR4E13DOzEgTBAORUqEUZnvOxuKvB6L4iYx8IApUg5q8Dz71q2x ywPO5Jm651TjtZxqeRY9kI57CKZhfxCzB8F1An3bQmP9hIQHqrb4bAK28yPRgqlvxErC WvWMZ3DPDc0Fi/KzsU5qBYMgrkSqCgb64ay6ld0WpEHRMpUCBpC8X6pauSg8MmFbY558 +oCw==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-type; bh=zWwrMb/AJcc5Z52yxqRV68MRRAC7b1nXNzSav/Hr7cM=; b=IVGIisB6kp6tXKPAFBLKRrLRw1Uzi1P4a2kIc9CMJn8kAYtDLV/Ot1BVWwAZ8REOdV xxHuAw6l7JiM+glE7Hg44opTC3sTc8rRYo9RXLbhPl9RtKwlOvB9VWOOe19T65EifLOR 4UG2QQtKmvUiS6VjIn6Pt6+th5FvomX9hcJ5Fdi2PDFvyCsGh7nAVkcdvcj9UMpp9PoW RB9N/+Iot59SfUfgt8CmqPdhy4ByJeH5d2NzWIRB5GN/noLbwVSVrDRhFnOSICRV28Va yDHlzCS3QiXR0LkNeaRnZzk1jOKPMPWkKldUfhpqNHzbbGSckfYQ1Kx6yYQegrIoYgaX XDKQ==
X-Gm-Message-State AG10YOSaacU3KDi/rDhLP/PvZWQqjZgNid6rSmJ5JlFymb3reROweI2jDlLgd0V5qxsMLXZj37Re
X-Received by 10.140.28.136 with SMTP id 8mr759070qgz.15.1456324769915; Wed, 24 Feb 2016 06:39:29 -0800 (PST)
X-Google-Already-Archived Yes
X-Google-Already-Archived-Group-Id 462dfa29a5
X-Google-Doc-Id 390fda4dc776d
X-Google-Thread-Id 3ed78e0bf65e07a8
X-Google-Message-Url http://groups.google.com/group/python-ideas/msg/390fda4dc776d
X-Google-Thread-Url http://groups.google.com/group/python-ideas/t/3ed78e0bf65e07a8
X-Google-Web-Client true
In-Reply-To <CAMpsgwbO1v7318u9VZCTrPHOERAAQiEAHJ9ChWCVqYP-7aqskw@mail.gmail.com>
X-Google-IP 100.15.97.16
X-Mailman-Approved-At Wed, 24 Feb 2016 10:00:56 -0500
X-Content-Filtered-By Mailman/MimeDel 2.1.21rc2
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:103445

Show key headers only | View raw


Here are some concurrency benchmarks for python vs other languages. 

https://github.com/atemerev/skynet/pull/53

Is there something wrong with this implementation?

"Hope I suck at coroutines, because the results are abysmal.

I get around 63s on my i5 MacBook Air Early 2015. For reference, the go 
version got around 700ms with GOMAXPROCS=4 and 1.7s with GOMAXPROCS=1 on 
this same machine."

On Wednesday, February 24, 2016 at 5:02:16 AM UTC-5, Victor Stinner wrote:
>
> See also Doug Hellmann article on asyncio, from its serie of "Python 3 
> Module of the Week" articles: 
> https://pymotw.com/3/asyncio/index.html 
>
> Victor 
>
> 2016-02-23 22:25 GMT+01:00 Joao S. O. Bueno <jsb...@python.org.br 
> <javascript:>>: 
> > Today I also stumbled on this helpful "essay" from Brett Cannon about 
> > the same subject 
> > 
> > http://www.snarky.ca/how-the-heck-does-async-await-work-in-python-3-5 
> > 
> > On 23 February 2016 at 18:05, Sven R. Kunze <srk...@mail.de 
> <javascript:>> wrote: 
> >> On 20.02.2016 07:53, Christian Gollwitzer wrote: 
> >> 
> >> If you have difficulties wit hthe overall concept, and if you are open 
> to 
> >> discussions in another language, take a look at this video: 
> >> 
> >> 
> https://channel9.msdn.com/Shows/C9-GoingNative/GoingNative-39-await-co-routines 
> >> 
> >> MS has added coroutine support with very similar syntax to VC++ 
> recently, 
> >> and the developer tries to explain it to the "stackful" programmers. 
> >> 
> >> 
> >> Because of this thread, I finally finished an older post collecting 
> valuable 
> >> insights from last year discussions regarding concurrency modules 
> available 
> >> in Python: 
> http://srkunze.blogspot.com/2016/02/concurrency-in-python.html It 
> >> appears to me that it would fit here well. 
> >> 
> >> @python-ideas 
> >> Back then, the old thread ("Concurrency Modules") was like basically 
> meant 
> >> to result in something useful. I hope the post covers the essence of 
> the 
> >> discussion. 
> >> Some even suggested putting the table into the Python docs. I am 
> unaware of 
> >> the formal procedure here but I would be glad if somebody could point 
> be at 
> >> the right direction if that the survey table is wanted in the docs. 
> >> 
> >> Best, 
> >> Sven 
> >> 
> >> _______________________________________________ 
> >> Python-ideas mailing list 
> >> Python...@python.org <javascript:> 
> >> https://mail.python.org/mailman/listinfo/python-ideas 
> >> Code of Conduct: http://python.org/psf/codeofconduct/ 
> > _______________________________________________ 
> > Python-ideas mailing list 
> > Python...@python.org <javascript:> 
> > https://mail.python.org/mailman/listinfo/python-ideas 
> > Code of Conduct: http://python.org/psf/codeofconduct/ 
> _______________________________________________ 
> Python-ideas mailing list 
> Python...@python.org <javascript:> 
> https://mail.python.org/mailman/listinfo/python-ideas 
> Code of Conduct: http://python.org/psf/codeofconduct/ 
>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How the heck does async/await work in Python 3.5 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-02-17 22:08 +0000
  Re: How the heck does async/await work in Python 3.5 Steven D'Aprano <steve@pearwood.info> - 2016-02-20 13:36 +1100
    Re: How the heck does async/await work in Python 3.5 Rustom Mody <rustompmody@gmail.com> - 2016-02-19 21:24 -0800
      Re: How the heck does async/await work in Python 3.5 Rustom Mody <rustompmody@gmail.com> - 2016-02-19 21:34 -0800
        Re: How the heck does async/await work in Python 3.5 Paul Rubin <no.email@nospam.invalid> - 2016-02-19 22:44 -0800
          Re: How the heck does async/await work in Python 3.5 Steven D'Aprano <steve@pearwood.info> - 2016-02-21 18:17 +1100
            Re: How the heck does async/await work in Python 3.5 Paul Rubin <no.email@nospam.invalid> - 2016-02-20 23:34 -0800
      Re: How the heck does async/await work in Python 3.5 Ian Kelly <ian.g.kelly@gmail.com> - 2016-02-20 00:48 -0700
      Re: How the heck does async/await work in Python 3.5 Chris Angelico <rosuav@gmail.com> - 2016-02-20 18:57 +1100
      Re: How the heck does async/await work in Python 3.5 Ian Kelly <ian.g.kelly@gmail.com> - 2016-02-20 01:14 -0700
      Re: How the heck does async/await work in Python 3.5 Chris Angelico <rosuav@gmail.com> - 2016-02-20 19:49 +1100
      Re: How the heck does async/await work in Python 3.5 Ian Kelly <ian.g.kelly@gmail.com> - 2016-02-20 02:11 -0700
      Re: How the heck does async/await work in Python 3.5 Ian Kelly <ian.g.kelly@gmail.com> - 2016-02-20 02:21 -0700
    Re: How the heck does async/await work in Python 3.5 Christian Gollwitzer <auriocus@gmx.de> - 2016-02-20 07:53 +0100
      Re: How the heck does async/await work in Python 3.5 "Sven R. Kunze" <srkunze@mail.de> - 2016-02-22 23:16 +0100
      Re: How the heck does async/await work in Python 3.5 Ian Kelly <ian.g.kelly@gmail.com> - 2016-02-22 17:48 -0700
      Re: How the heck does async/await work in Python 3.5 "Sven R. Kunze" <srkunze@mail.de> - 2016-02-23 17:50 +0100
      Re: How the heck does async/await work in Python 3.5 Ian Kelly <ian.g.kelly@gmail.com> - 2016-02-23 10:37 -0700
      Re: How the heck does async/await work in Python 3.5 "Sven R. Kunze" <srkunze@mail.de> - 2016-02-23 20:42 +0100
      Re: How the heck does async/await work in Python 3.5 "Sven R. Kunze" <srkunze@mail.de> - 2016-02-23 22:05 +0100
      Re: [Python-ideas] How the heck does async/await work in Python 3.5 "Joao S. O. Bueno" <jsbueno@python.org.br> - 2016-02-23 18:25 -0300
      Re: [Python-ideas] How the heck does async/await work in Python 3.5 Paul Moore <p.f.moore@gmail.com> - 2016-02-24 09:59 +0000
      Re: [Python-ideas] How the heck does async/await work in Python 3.5 Victor Stinner <victor.stinner@gmail.com> - 2016-02-24 11:01 +0100
      Re: [Python-ideas] How the heck does async/await work in Python 3.5 王珺 <wjun77@gmail.com> - 2016-02-24 18:40 +0800
        Re: [Python-ideas] How the heck does async/await work in Python 3.5 Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-02-25 10:00 +1300
          Re: [Python-ideas] How the heck does async/await work in Python 3.5 王珺 <wjun77@gmail.com> - 2016-02-25 08:40 +0800
          Re: [Python-ideas] How the heck does async/await work in Python 3.5 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-02-24 20:37 -0500
      Re: [Python-ideas] How the heck does async/await work in Python 3.5 Tem Pl <rtempl31@gmail.com> - 2016-02-24 06:39 -0800
        Re: [Python-ideas] How the heck does async/await work in Python 3.5 Marko Rauhamaa <marko@pacujo.net> - 2016-02-24 17:23 +0200
          Re: [Python-ideas] How the heck does async/await work in Python 3.5 Ian Kelly <ian.g.kelly@gmail.com> - 2016-02-24 08:41 -0700
            Re: [Python-ideas] How the heck does async/await work in Python 3.5 Marko Rauhamaa <marko@pacujo.net> - 2016-02-24 18:13 +0200
              Re: [Python-ideas] How the heck does async/await work in Python 3.5 Ian Kelly <ian.g.kelly@gmail.com> - 2016-02-24 09:47 -0700

csiph-web