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


Groups > comp.lang.python > #18444

Re: python philosophical question - strong vs duck typing

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 <edriscoll@wisc.edu>
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 <edriscoll@wisc.edu>
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 <CAOFf2a0dG1tR1-2sJnqCCGqVXocqvzGScGeDJXeXwKdfdvuT-Q@mail.gmail.com>
In-Reply-To <CAOFf2a0dG1tR1-2sJnqCCGqVXocqvzGScGeDJXeXwKdfdvuT-Q@mail.gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4377.1325620313.27778.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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


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


Thread

Re: python philosophical question - strong vs duck typing Evan Driscoll <edriscoll@wisc.edu> - 2012-01-03 14:51 -0500

csiph-web