Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python': 0.08; 'annotations': 0.09; 'content-type:multipart/signed': 0.09; 'filename:fname piece:signature': 0.09; 'folks,': 0.09; 'subject:python': 0.10; 'c++': 0.12; 'typing': 0.15; 'content- type:application/pgp-signature': 0.16; 'filename:fname piece:asc': 0.16; 'filename:fname:signature.asc': 0.16; 'lisp': 0.16; 'subject:question': 0.17; 'wrote:': 0.18; 'convert': 0.19; 'written': 0.20; "haven't": 0.20; 'mechanism': 0.21; 'stuff': 0.22; 'header:In-Reply-To:1': 0.22; 'optional': 0.23; 'though.': 0.23; "i'm": 0.26; 'coding': 0.28; 'compile': 0.29; 'sean': 0.29; 'compiling': 0.30; 'quite': 0.32; 'sufficient': 0.32; 'header :User-Agent:1': 0.33; 'to:addr:python-list': 0.34; 'restrict': 0.34; 'ourselves': 0.35; 'subject:skip:p 10': 0.37; 'but': 0.37; 'received:128': 0.37; 'using': 0.38; 'received:10.0.0': 0.38; 'somewhat': 0.38; 'getting': 0.38; 'option': 0.39; 'being': 0.39; 'strong': 0.39; 'to:addr:python.org': 0.40; 'more': 0.61; 'type': 0.61; 'helping': 0.62; 'high': 0.67; 'gain': 0.75 Date: Tue, 03 Jan 2012 14:51:27 -0500 From: Evan Driscoll User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: python philosophical question - strong vs duck typing References: In-Reply-To: X-Enigmail-Version: 1.3.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0A14D98F4AB513C538776648" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325620313 news.xs4all.nl 6856 [2001:888:2000:d::a6]:34411 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18444 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0A14D98F4AB513C538776648 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 1/3/2012 13:13, Sean Wolfe wrote: > What I am driving at is, if we are coding in python but looking for > more performance, what if we had an option to 1) restrict ourselves > somewhat by using strong typing to 2) make it easy to compile or > convert down to C++ and thereby gain more performance. I'm not sure it helps with compiling to C or C++ (that is neither necessary nor sufficient for being a high performance language), but it has the potential for helping quite a lot with performance. If you read stuff written by evangelical Common Lisp folks, they tout CL's optional type annotations as providing a mechanism for getting near-C-like performance. I haven't tested that myself though. Evan --------------enig0A14D98F4AB513C538776648 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPA1xFAAoJEAOzoR8eZTzgAMsH/2G7YVQRMm6MY6gG053fm+l1 zkbSnEfPewvZCBtAfgLjkIbOkdLIVL71j8aS0ppoGWz5uRz0J9H1kRETLzcJ92ya 5kkyKVsE07p1q8knyBc7VznWPGxLgcJGeV/mWYjglTUvAZkHt274bBFl30br8s4S rgEQHPN/lBb2qDqwCHouMn2GRAvwLNwunjwTPrOO2vORPv2LQH+ALDw/emIriPnX 8lxxBXFoAE2sLVUSK/tKVkHCVO1FQbBW7rzJOTP1CU3nmhSNg+yMzelW7BVe/tJN XjfBiBUntimjU7jhvOpwwIWEyZpmfbVTZRPvSMholw42ugIPwJ415izCfjSsIF4= =S76z -----END PGP SIGNATURE----- --------------enig0A14D98F4AB513C538776648--