Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: [Python-ideas] How the heck does async/await work in Python 3.5 Date: Wed, 24 Feb 2016 18:13:40 +0200 Organization: A noiseless patient Spider Lines: 25 Message-ID: <87r3g2jdcb.fsf@elektro.pacujo.net> References: <56c7d145$0$1597$c3e8da3$5496439d@news.astraweb.com> <56CCC98C.5060504@mail.de> <87vb5ejfnv.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="b7cb1518d23ec19d482dcc9c31d30fdd"; logging-data="12340"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197s1XB8tgMAzvJcvK6nGLY" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:OPFWfhKX1nwzYGjxavdgiaz94M4= sha1:48BVAqjM1OkX196y8crNWgo0pow= Xref: csiph.com comp.lang.python:103453 Ian Kelly : > On Wed, Feb 24, 2016 at 8:23 AM, Marko Rauhamaa wrote: >> Tem Pl : >>> Is there something wrong with this implementation? >> >> It's a "fork bomb". > > Isn't that the point of the benchmark? I don't quite see the point of the program as it doesn't resemble anything I'd ever have an urge to write. As for benchmarks, Python is not supposed to be fast nor small. Python is actually quite slow and the objects have a large footprint. However, Python's strength is in its powerful expressivity. Still, it may be that coroutines end up being especially slow; that's how they played out in my head when I first was imagining what all those nested generators must be doing to produce their magic. Also, I'm afraid the expressivity part suffers a blow with the whole coroutine paradigm -- without having the otherworldly appeal of Scheme's continuations. Marko