Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?) Date: Tue, 15 Mar 2016 23:20:28 +1100 Lines: 17 Message-ID: References: <87h9gcxkd3.fsf@elektro.pacujo.net> <87shzvgbhq.fsf@elektro.pacujo.net> <56e44a4e$0$1614$c3e8da3$5496439d@news.astraweb.com> <56e5354c$0$1593$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de +uFnSe0Fi6jS77ijACgwow1Iu5SdfFas/4uOx1oVsb5w== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'works.': 0.07; 'api': 0.09; 'cc:addr:python-list': 0.09; 'stating': 0.09; 'subject:which': 0.09; 'python': 0.10; 'things.': 0.15; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sources.': 0.16; 'subject:?)': 0.16; 'wrote:': 0.16; 'implementing': 0.18; 'language': 0.19; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'saying': 0.22; 'trying': 0.22; 'code,': 0.23; 'header:In-Reply-To:1': 0.24; "i've": 0.25; 'figure': 0.27; 'least': 0.27; 'message-id:@mail.gmail.com': 0.27; 'function': 0.28; 'behaviour': 0.29; "i'm": 0.30; 'comments': 0.30; '15,': 0.30; 'window': 0.30; 'especially': 0.32; 'implement': 0.32; 'source': 0.33; 'case,': 0.34; 'tue,': 0.34; 'that,': 0.34; 'received:google.com': 0.35; 'behind': 0.35; 'done': 0.35; 'basis.': 0.35; 'comment': 0.35; 'there': 0.36; 'received:209.85': 0.36; '(and': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'goes': 0.39; 'sure': 0.39; 'some': 0.40; 'subject:The': 0.61; 'more': 0.63; 'times': 0.63; 'mar': 0.65; '11:02': 0.84; 'chrisa': 0.84; 'observed': 0.84; 'to:none': 0.91; 'wine': 0.91; 'browsing': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=Pq6WC+OR9EniKIPCsBn3TeFkkq/uaEjcfxsG7Kyd2C4=; b=1FINSlTpyWMcZR+m3UHfiQmvUMcym0i2Te6YdS2nAkOmDNk9ZlJfyrw7diJmg2lMHn TcdWkyMfSdBMoqbytWFeX4WtDTSIsIuA/BULOvIpSKq209dKDzsPj0psowr1oZkPBytz 8BJ9xJPulcE3bZCUeI40OpgOMqhTcoRknEYFuvUz/yS+hY1Idv+t1Pf1oPrjb+dJTWpk FCTNXusWIP9adlCQaEQGfYZXrASf+ijcrX3VVkxEPZ6mxS8tY7dwm0z7BYlXeLJaj2Rk UsmeoteIb3JG5ob6Q1Z33fi9Zz8HgTWELly2nsFYJN0LwkYb0Crp67t4j0mI+WuQlOqr xlZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=Pq6WC+OR9EniKIPCsBn3TeFkkq/uaEjcfxsG7Kyd2C4=; b=NfkrXpoxjp6ya05nzSu+8OERElQvfgC9HqJkBltJFqObMPj+V0jyLGvnakrSriNkp1 ydwECz7kuM7iW3AE3MaJQvS/BX/nmbxNJniaK5I6g6LzqqzDAfpYnNBL2zI9H63ZGz44 QO5eWOX9rFaA4I5r6md9MANc+DgZOfXeaI4EFBoRjOgEI+1rOJrZGO/fgSsNun5tsTK5 Vp4Z1KRwveyK/Evlck6BK6GIqyiouHHvsZ+PVIIk407SRS1Pk3Nqpoudb+5ixUdwDcZg 0AGaCRDMmy57n0VwnEvYWhR532cPfGzBd33+2R+O79MNN3/wJD6qLkcz/INeDnJS1bUg +4Lg== X-Gm-Message-State: AD7BkJItMUvlnSYc3R3m5rI8vUvoe94yxMwIdLhNgtHRBCoK6eM2OfJMzujQBWxICEI0J1T3Pi0Y2PFjzGnz5g== X-Received: by 10.50.138.233 with SMTP id qt9mr8486691igb.13.1458044429170; Tue, 15 Mar 2016 05:20:29 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104938 On Tue, Mar 15, 2016 at 11:02 PM, BartC wrote: > Anyway, what I'm saying is, trying to implement a language is also a good > way of learning it, especially of finding out how it works. Same goes for a lot of things. Want to know how Windows ticks? Try reimplementing it - or read the comments left behind by people who've done that, by browsing the Wine sources. There have been times when I've been trying to figure out how to use a particular Windows API function or window message, and couldn't understand some edge case based solely on the docs, so I dug into the Wine source code, found how they did it (and in at least one case, found a comment stating that observed behaviour differed from the docs!), and was able to deploy to Windows on that basis. I'm sure implementing Python is a lot more fun than reimplementing Windows APIs! ChrisA